New Shopify Certification now available: Liquid Storefronts for Theme Developers

GA Script not running due to GTM preview mode

toates
New Member
4 0 0

Hi everyone, 

 

I have installed my GA tracking code through online store > preferences.  I have Google Tag Manager set up through the liquid files.  

 

When I enable Google Tag Managers preview mode, Google Analytics tracking script runs as expected.  When I disable the preview mode, Google Analytics no longer runs.  In the Google Analytics debug mode, I receive the following warning messages: 

 

Screen Shot 2020-04-01 at 4.51.53 PM.png

 

Can anyone give some insight into this error? Thank you!

Replies 3 (3)
Josh_Uebergang
Shopify Expert
1003 42 264

Sounds weird. Do you have a published container in GTM? An unpublished contained will produce an error if you have the GTM scripts added. Also seeing the store would help me test.

Run Google Shopping ads? Get the free definitive guide to Google Shopping for Shopify (no optin required): https://www.digitaldarts.com.au/google-shopping
toates
New Member
4 0 0

Hi Josh, 

 

Thank you for getting back to me. The container is published.  Also, this is the only issue I am facing on Shopify Plus. Unfortunately, this is a staging site so I do not think I can share the site. 

 

I have configured GA & GTM for other Shopify Plus merchants the same way & have not come across this issue.  When comparing the scripts in Google Analytics ' Debug Extension, I am noticing that the site having issues is showing this warning: No plugin URL set for "WDD38VN" & No plugin set for "render". "WDD38VN" is the container linked to Google Optimize.  Can you confirm if this warning is causing GA to fire? 

Screen Shot 2020-04-08 at 9.18.02 AM.png

 

Thank you! 

 

"WDD38VN" is the container linked to Google Optimize. 

Josh_Uebergang
Shopify Expert
1003 42 264

What's the website?

Run Google Shopping ads? Get the free definitive guide to Google Shopping for Shopify (no optin required): https://www.digitaldarts.com.au/google-shopping