Tag assistant error with google and youtube app

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?


P.S: The only script I’ve integrated to the page is that of Iubenda CMP with auto-blocking. Thanks a lot

3 Likes

Removed this reply

Same error. Have you found a solution?

Thanks

Miguel

2 Likes

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?

2 Likes

I’m seeing this issue with a site I support as well.

1 Like

We have the same warning shown with both Shopify Channel App and Google Ads tags.

2 Likes

Is it causing any actual issues with the tags that you’re aware of?

1 Like

Yes, we are receiving emails from Google stating “Adopt Consent Mode to ensure your ad measurement continues to work”.

Just wondering if you found a solution for this?

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

Best Regards