For optimal performance, place the Optimize snippet at the top of the
<HEAD> tag on every web page you wish to optimize.
The only items that should appear above the Optimize snippet are:
- Any dataLayer initialization code. Note: the dataLayer variable should never be reassigned after the anti-flicker snippet (when used).
- The optional anti-flicker snippet, when used to mitigate page flicker.
If you use a content security policy, see Optimize security requirements to make sure your content security policy allows for the domain in the snippet on your site (i.e., google-analytics.com or googleoptimize.com).