how to use google optimize
-
i can’t speak english well. please understand me^^
i want to use google optimize. but they said i need to paste code in analytics track code like that to use it.
<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-48098010-3’, ‘auto’);
ga(‘require’, ‘GTM-56DVL6J’);
ga(‘send’, ‘pageview’);
</script>and they said i need to paste it just before analytics track code.
<style>.async-hide { opacity: 0 !important} </style>
<script>(function(a,s,y,n,c,h,i,d,e){s.className+=’ ‘+y;h.start=1*new Date;
h.end=i=function(){s.className=s.className.replace(RegExp(‘ ?’+y),”)};
(a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c;
})(window,document.documentElement,’async-hide’,’dataLayer’,4000,
{‘GTM-56DVL6J’:true});</script>how can i do it?
- The topic ‘how to use google optimize’ is closed to new replies.