• 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)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    I know, Henk! I reaeally should get around to doing this. People have been requesting it for a few months now, and although I feel really guilty about releasing so few updates, it’s simply a too busy time for me!

    I promise, the next release will have Google Optimize integration.

    Thread Starter Henk Verlinde

    (@ve6304)

    OK, thanks. Looking forward to it then -;)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add Optimize code to analytics snippet’ is closed to new replies.