Optimize errors
-
I have installed Google Site Kit on my blog & all seems to be in order EXCEPT optimize.
I get the 2 errors:
1. Optimize plugin not found
2. Analytics tracking code not foundWhen I look at the source code, the code snippet appears as expected with 1 exception… Here is my source code:
<script type=’text/javascript’>
window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘UA-xxxxxxxx-x’, {“anonymize_ip”:true,”optimize_id”:”GTM-xxxxxxx”} );
</script>The only difference I see is that the optimize_id is in double quotes vs single tics as shown in google documentation (see below):
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());gtag(‘config’, ‘GA_TRACKING_ID’, { ‘optimize_id’: ‘OPT_CONTAINER_ID’});
</script>Since I am using site kit I can’t adjust the code to see that is actually the problem. Please advise.
The page I need help with: [log in to see the link]
- The topic ‘Optimize errors’ is closed to new replies.