Google Optimize integration with the plugin
-
Hi!
I am using this plugin WooCommerce Google Analytics Integration and I have managed to integrate Google Optimize with the instructions that I found here https://www.en.advertisercommunity.com/t5/forums/v3_1/forumtopicpage/board-id/optimize_setup/thread-id/253/page/1
Currently the Google Optimize works fine and I am able to run tests with that. However, I cannot integrate the recommended “page hiding snippet” (see below) with the plugin. This means the page flickers quickly before opening when optimize test is running. Is there a way to integrate this snippet as well with the plugin? Could you add the feature for Google optimize integration?
Thanks for your help.
<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-XXXXXX’:true});</script>
The topic ‘Google Optimize integration with the plugin’ is closed to new replies.