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?