Code Not Inserting Into Head Section Once Visitor Accepts Cookies
-
I’ve been playing with this all night and even tried the very latest update from tonight (1.0.9?)
I’m trying to add code snippets for analytics software and ad management software into the boxes (under 3rd party cookies and additional cookies) that say: “The below script will be added to the page HEAD section if user enables this cookie” but nothing is inserted on the page once a visitor accepts the cookies. I double check View Source on the page and nothing’s been added. I’ve cleared web cache. Nothing helps.
I’m just copying & pasting the code directly from the programs I’m using, should I be formatting the code differently?
For example:
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXX"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-XXXXX'); </script>
- The topic ‘Code Not Inserting Into Head Section Once Visitor Accepts Cookies’ is closed to new replies.