Support » Plugin: Site Kit by Google - Analytics, Search Console, AdSense, Speed » Chrome console failed to load resource…
Chrome console failed to load resource…
-
In Chrome console I’m getting an error like this:
Failed to load resource: the server responded with a status of 404 ()The resource listed is related to Google Site Kit: https://www.googletagmanager.com/gtm.js?id=GTM-MYID
Google Site Kit was used to install all the Google tag and analytics snippets. Site Kit and GA appear to be working fine in Real-Time, although because I just brought the site out of Coming Soon! mode it hasn’t yet aggregated any historical data.
Any idea what I can do to get rid of that Chrome console error?
The page I need help with: [log in to see the link]
-
@simeoncn Thanks for getting in touch!
That’s very odd indeed – I’m seeing a 404 when I try to access the
gtm.js
file directly, as well: https://www.googletagmanager.com/gtm.js?id=GTM-N4NMDP8.To help us investigate further, can you please share your Site Health information privately via this form?
Can you also go to https://tagmanager.google.com/#/home and log in with the account that you used to set up Site Kit and confirm that there is a Container ID listed for
GTM-N4NMDP8
?@simeoncn Just checking in here – were you able to take a look at my questions above? Are you still having this issue? Thanks!
Yes, was away for a bit, sorry for the delay in responding and thanks a bunch for the prompt responses and help!
You asked for Site Health to be shared privately here… I don’t see any specific options for that, is this forum private by default?
Regards the Container ID in Google Tag Manager, you can see that it indeed exists in this screenshot…
https://www.dropbox.com/s/mswopiy6ay3rr4t/21_05-04_Google-Tag-Manager-Container-ID.png?dl=0
@simeoncn No worries!
You can share your Site Health information privately via this form: https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/.
Can you also tell me who hosts your site and if you are using any kind of firewall, WAF, or CDN?
Thanks!
Thanks for the private space to share the Site Health info, I have just done so.
The host is Siteground. We currently do not have CDN active. No plugin type firewalls or WAF. Siteground does have some firewall/filtering protection as described here…
https://www.siteground.co.uk/kb/does_siteground_offer_any_protection_from_my_site_getting_dd/
Given the fact that just trying to reach the https://www.googletagmanager.com/gtm.js?id=GTM-N4NMDP8 URL in the browser as a standalone generates a 404 may indicate it’s not a firewall issue though. Seems it might be on the Google Tag Manager side for some reason?
I also just experienced this error which is related to the Google Tag Manager when attempting to verify ownership of the site via Google Tag Manager… says the tag is in the wrong place, but it was installed by Google Site Kit?
@simeoncn Thank you for these details! The ownership verification is failing because of the original 404 issue.
It looks like you need to finish configuring Tag Manager and then publish your container. You can be read more about how to setup and install Google Tag Manager in their documentation.
While Site Kit can help you insert the container code on your site, you’ll still need to configure and manage your settings from your Tag Manager account. Tag Manager Help is a resource to learn more about its features as well as get support.
Hi,
That is not the case I’m sorry to say and I was able to easily verify the site ownership using another method, I just thought I’d try the Tag Manager route to see if it also bonked due to this problem, and it apparently did
The cited problem with the google tag being in the wrong location on that verification attempt is due to what the Google Site Kit plugin did when it was installed and configured, and is not related to the plugin not being configured properly.
See the screenshot at the link below… it clearly shows that all sections of Google Site Kit are configured and connected with green checks and thus should be working properly, but they’re not and that is why I opened this thread.
https://www.dropbox.com/s/i8felups0ogt3z1/21_05-04_Goggl-Site-Kit-All-Green.png?dl=0
Hi @simeoncn,
Thanks for this update! I’m glad you were able to verify with another method. The “wrong location” error that you saw also tends to occur when the GTM script is 404ing.
I do believe that the root issue here is that your Google Tag Manager does not contain any tags, meaning that you need to finish your GTM setup on the Google Tag Manager side. Can you confirm in GTM that you have added tags to your container?
No, there is no tags in that container because we are not using them. We simply used Google Site Kit to get the Google Analytics setup because all the old methods are now defunct. They hoist this tag stuff on you as a result. If I have to add a tag I’ll try to sort out what that might be and add one and see if that clears the error, which is more important to use than the goofy tags.
@simeoncn Thanks for clarifying!
Based on the screenshot that you shared, it looks like you have Google Tag Manager <b>and</b> Google Analytics connected in Site Kit. Did you want to use both Google Analytics and Google Tag Manager?
If you’d prefer to only use Google Analytics, you can disconnect Google Tag Manager by going to Site Kit > Settings > Connected Services > Google Tag Manager > Edit > Disconnect Google Tag Manager from Site Kit. Since the 404 error is coming from the lack of tags set up in GTM, this would remove the GTM script from your site, eliminating the error and allowing you to use only Google Analytics if that’s what you’d prefer.
Yep, that did it Bethany, no more console error… THANKS! Indeed we had no use for tag manager at this time, I just wanted the analytics.
@simeoncn Yay, glad to hear it! Please do feel free to leave a review – we’d love to hear your feedback on the plugin.
- The topic ‘Chrome console failed to load resource…’ is closed to new replies.