Title: Window not loading
Last modified: March 29, 2018

---

# Window not loading

 *  Resolved [Søren Sohl](https://wordpress.org/support/users/ssohl/)
 * (@ssohl)
 * [8 years ago](https://wordpress.org/support/topic/window-not-loading/)
 * I can’t get the window to load on the confirmation page – the script looks allright
   though. I just activated the Merchant agreement today so it might take a few 
   hours before it will load? If you want to try a test order be my guest at [https://www.landgarden.se/kassan/](https://www.landgarden.se/kassan/)
   and then choose ‘Banköverföring PlusGiro 786328-5’ as payment method.
 * <script src=”[https://apis.google.com/js/platform.js?onload=renderOptIn&#8221](https://apis.google.com/js/platform.js?onload=renderOptIn&#8221);
   
   async defer></script> <script>window.renderOptIn = function() { window.gapi.load(‘
   surveyoptin’, function() { window.gapi.surveyoptin.render({ “merchant_id”: 102774314,“
   order_id”: “6459”, “email”: “soren@landhave.dk”, “delivery_country”: “SE”, “estimated_delivery_date”:“
   2018-04-08”, “opt_in_style”: “CENTER_DIALOG”,
 *  });
    }); }</script> <script>window.___gcfg = { lang: ‘sv’ };</script>
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwindow-not-loading%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [natekinkead](https://wordpress.org/support/users/natekinkead/)
 * (@natekinkead)
 * [8 years ago](https://wordpress.org/support/topic/window-not-loading/#post-10128557)
 * Can you just give me the link to the thank you (order received) page from one
   of your test orders?
 *  Thread Starter [Søren Sohl](https://wordpress.org/support/users/ssohl/)
 * (@ssohl)
 * [8 years ago](https://wordpress.org/support/topic/window-not-loading/#post-10128759)
 * Hey Nate – thanks for looking into it. Try this order I have just made:
 * [https://www.landgarden.se/kassan/order-received/6463/?key=wc_order_5abd16cbcaa4b&utm_nooverride=1](https://www.landgarden.se/kassan/order-received/6463/?key=wc_order_5abd16cbcaa4b&utm_nooverride=1)
 *  Thread Starter [Søren Sohl](https://wordpress.org/support/users/ssohl/)
 * (@ssohl)
 * [8 years ago](https://wordpress.org/support/topic/window-not-loading/#post-10128846)
 * I’m using Autoptimize – so I’ve tried to disable JS caching but that didn’t seem
   to work..
 *  Thread Starter [Søren Sohl](https://wordpress.org/support/users/ssohl/)
 * (@ssohl)
 * [8 years ago](https://wordpress.org/support/topic/window-not-loading/#post-10128913)
 * I’m also using Varnish cache which might cause concern. I have three sites under
   my Merchant ID in merchant center. How would your plugin know which site is the
   right one?
 * Another question; I have a My business page – do you know how these reviews are
   related to the Merchant ID reviews?
 *  Thread Starter [Søren Sohl](https://wordpress.org/support/users/ssohl/)
 * (@ssohl)
 * [8 years ago](https://wordpress.org/support/topic/window-not-loading/#post-10128958)
 * Here’s another site I have in Danish: [https://www.landhave.dk/kasse/order-received/12366/?key=wc_order_5abd227da7cf1&utm_nooverride=1](https://www.landhave.dk/kasse/order-received/12366/?key=wc_order_5abd227da7cf1&utm_nooverride=1)
 * The code looks fine though:
 * <!– BEGIN GCR Opt-in Module Code –>
    <script src=”[https://apis.google.com/js/platform.js?onload=renderOptIn&#8221](https://apis.google.com/js/platform.js?onload=renderOptIn&#8221);
   async defer> </script>
 * <script>
    window.renderOptIn = function() { window.gapi.load(‘surveyoptin’, function(){
   window.gapi.surveyoptin.render({ “merchant_id”: 102774314, “order_id”: “12366”,“
   email”: “soren@landhave.dk”, “delivery_country”: “DK”, “estimated_delivery_date”:“
   2018-04-08”, “opt_in_style”: “CENTER_DIALOG”,
 *  });
    }); } </script> <!– END GCR Opt-in Module Code –>
 * <!– BEGIN GCR Language Code –>
    <script> window.___gcfg = { lang: ‘da’ }; </script
   > <!– END GCR Language Code –>
 *  Thread Starter [Søren Sohl](https://wordpress.org/support/users/ssohl/)
 * (@ssohl)
 * [8 years ago](https://wordpress.org/support/topic/window-not-loading/#post-10128979)
 * When I look at the [documentation](https://support.google.com/merchants/answer/7106244)
   their code differs from their example:
 * “merchant_id”:”MERCHANT_ID”,
 * “merchant_id”: 42,
 * Should there be ” or not?
 *  Thread Starter [Søren Sohl](https://wordpress.org/support/users/ssohl/)
 * (@ssohl)
 * [8 years ago](https://wordpress.org/support/topic/window-not-loading/#post-10128990)
 * Found out finally 🙂
 * Because I have more sites under Merchant center I have to choose the right site
   ID instead of the root one..
 *  Plugin Contributor [natekinkead](https://wordpress.org/support/users/natekinkead/)
 * (@natekinkead)
 * [8 years ago](https://wordpress.org/support/topic/window-not-loading/#post-10129029)
 * Cool, glad you figured it out so quickly!

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

The topic ‘Window not loading’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ecr-google-customer-reviews_b1cad0.
   svg)
 * [Google Customer Reviews for WooCommerce](https://wordpress.org/plugins/ecr-google-customer-reviews/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ecr-google-customer-reviews/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ecr-google-customer-reviews/)
 * [Active Topics](https://wordpress.org/support/plugin/ecr-google-customer-reviews/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ecr-google-customer-reviews/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ecr-google-customer-reviews/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [natekinkead](https://wordpress.org/support/users/natekinkead/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/window-not-loading/#post-10129029)
 * Status: resolved