Title: Google Optimize integration with the plugin
Last modified: December 19, 2018

---

# Google Optimize integration with the plugin

 *  Resolved [niktuo](https://wordpress.org/support/users/niktuo/)
 * (@niktuo)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/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](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>

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [jessepearson](https://wordpress.org/support/users/jessepearson/)
 * (@jessepearson)
 * Automattic Happiness Engineer
 * [7 years, 5 months ago](https://wordpress.org/support/topic/google-optimize-integration-with-the-plugin/#post-11007295)
 * [@niktuo](https://wordpress.org/support/users/niktuo/) You can add your request/
   suggestion to the ideas board here:
    [http://ideas.woocommerce.com/forums/133476-woocommerce?category_id=337630](http://ideas.woocommerce.com/forums/133476-woocommerce?category_id=337630)
 * If it receives a fair amount of votes it will be considered.
 * Otherwise, you could make a copy of the plugin and add the code you need where
   it is needed.
 *  [con](https://wordpress.org/support/users/conschneider/)
 * (@conschneider)
 * Engineer
 * [7 years, 5 months ago](https://wordpress.org/support/topic/google-optimize-integration-with-the-plugin/#post-11069801)
 * Hi there,
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.
 * Kind regards,
 *  [con](https://wordpress.org/support/users/conschneider/)
 * (@conschneider)
 * Engineer
 * [7 years, 5 months ago](https://wordpress.org/support/topic/google-optimize-integration-with-the-plugin/#post-11069804)
 * Resolving thread

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Google Optimize integration with the plugin’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-google-analytics-integration/assets/icon-256x256.
   png?rev=3234358)
 * [Google Analytics for WooCommerce](https://wordpress.org/plugins/woocommerce-google-analytics-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-google-analytics-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-google-analytics-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-google-analytics-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-google-analytics-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-google-analytics-integration/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [con](https://wordpress.org/support/users/conschneider/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/google-optimize-integration-with-the-plugin/#post-11069804)
 * Status: resolved