Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

How do I configure this properly in NGINX?

$
0
0
Hi all,

I want to add a Cloudflare-snippet to the end of all pages on a site. I am intending to use sub_filter for this:

sub_filter '</BODY>'
'<script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "aaabbbccc55dd"}'></script>
</BODY>
';

How do I change this so that the various single and double quotes in that statement work properly? Do I escape them somehow, or is there another way to go?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>