I’m using “Google and Youtube” app in shopify standard and have integrated - GA4, Google Ads and Merchant store with it. But when I use tag assistant, despite the tags been fired, I see this message inside (screenshot attached).
This Google tag should have been loaded before the gtag(‘event’) command was called. Use an on-page gtag(‘config’) command or a Google tag in Tag Manager to load AW-XXXXXXXXXXX when the page loads.Since shopify keeps changing its integration and the ways to implement scripts to its pages, didn’t want to risk GTM breaking by adding it to the page.
That’s why I’ve left most of the tools with shopify’s default integration. Migrating to GTM would lead to most of the events to being tracked manually and its not the effort the client is looking for right now lolCan you guys tell me how to circumvent this situation with tag assistant? Any thoughts to improve this shopify and google marketing tools integration situation?
I see the same exact warning in Tag Assistant. I believe the tags are working properly, but seeing this warning is concerning. Did you ever figure out what causes this or if it needs to be resolved?
Same question. Any known fix? Prompted me to uninstall and then reconnect my Google Ads account. We’ll see what happens this time. But would be much better to know that the error message is bogus or not.
I had the same issue and I found a solution. I am by no means an expert, so please take my explanation with a grain of salt.
As the google channel app is only creating tags on your website and not managing your Google Tag Manager Containers, the initialization of the container is not set up by the app. This is why you get the warning. Maybe this explanation is completely wrong, but if you just do exactly what the warning states, it fixes the error.
The warning says:
“This Google tag should have been loaded before the gtag(‘event’) command was called. Use an on-page gtag(‘config’) command or a Google tag in Tag Manager to load AW-XXXXXXXXXXX when the page loads.”
So go to Google Tag Manager → Accounts → your container → Workspace → Tags → New → Google Tag → insert the Tag-ID that is giving in the warning “AW-XXXX” → advanced setting → consent settings → no additional consent required → set trigger → Initialization - All Pages → save → reload tag assistant → reopen page → no more warning