Add Optimize code to analytics snippet
-
Hello Daan,
Thanks for your great plugin. Nice work!
I would like to opt for an option to add the Google Optimize code
ga('require', 'GTM-XXXXXX');
to the analytics code snippet, like so:<script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-XXXXXXX-X', 'auto'); ga('require', 'GTM-XXXXXX'); ga('send', 'pageview'); </script>
Read more on how to deploy Optimize on this Optimize Help page.
With the recently released free version of Google Optimize, I think you have a substantial user base that would like to have this option.
Regards, Henk
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add Optimize code to analytics snippet’ is closed to new replies.