Rich-text Reply

Shopify Integration "unable to load" - Script shows up in html. Halp

Pom 02-14-15

Shopify Integration "unable to load" - Script shows up in html. Halp

I'm trying to load Optimizely for:  http://skinbypom.com/collections/frontpage/products/5-benzoyl-peroxide-dmso-acne-treatment

But I just get a message that it's unable to load. Also added the tracking script under Settings > Checkout > Additional content & scripts:

 

<!-- Optimizely Revenue Tracking Code -->

<script type="text/javascript">
var optimizely = optimizely || [];
var revenueInCents = {{ subtotal_price | money_without_currency }} * 100;
optimizely.push(['trackEvent', 'conversion', revenueInCents]);
</script>

<script src="//cdn.optimizely.com/js/XXXXXXXXX.js"></script>
<!-- End Optimizely Revenue Tracking Code -->

 

I'm on a free Optimizely account with Shopify basic.

 

 

Pom
Level 1

greg 02-14-15
 

Re: Shopify Integration "unable to load" - Script shows up in html. Halp

[ Edited ]

Howdy - try these troubleshooting tips: https://help.optimizely.com/hc/en-us/articles/200179074-Pages-not-loading-in-the-Editor-troubleshoot...

 

If you have the script in place (and it appears that you do) the most common fix is loading unsafe scripts. If you're using Chrome, you'll see a small shield icon in your URL bar. Click it, then click "Load unsafe script."

Level 2
Pom 02-14-15
 

Re: Shopify Integration "unable to load" - Script shows up in html. Halp

Thanks! 

 

I tried ctrl + shift + j on the page and I get "Failed to load resource: net::ERR_BLOCKED_BY_CLIENT" about the script.

 

Then I noticed my Ad blocker, uBlock, was running and causing the entire problem. I also had to allow loading unsafe scripts!

 

I would definitely recoomend you ad this to your troubleshooting guide.

 

 

Pom
Level 1