Integration for Google Optimize
-
Hi there, is there a way to integrate the plugin with google optimize (here you have to add some simple code to the analytics snippet), see the code below.
Would be great if you could integrate this, hope to hear, thanks in advance!
=======================
Add Optimize to your website
Optimize is installed on your site by adding a single line of code (shown in bold) to your existing Universal Analytics (analytics.js) tracking code. If you don’t have Google Analytics or if you’re using Google Tag Manager, please refer to the Optimize help center.
To install Optimize, do the following on each page you want to test:
Ensure that your Analytics tracking code is as high as possible in the <HEAD> of every page.
Add the line in bold below to your tracking code.
<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-xxxx-1’, ‘auto’);
ga(‘require’, ‘GTM-MT26PR6’);
ga(‘send’, ‘pageview’);
</script>
- The topic ‘Integration for Google Optimize’ is closed to new replies.