On this page
What this issue is
Most sites load analytics and ad tags through a script from googletagmanager.com (Google Tag Manager, or GTM) and send hits to endpoints such as google-analytics.com, analytics.google.com or googleadservices.com. This issue means one of those requests fails. The script may be blocked, return an error, time out, or never be requested at all.
| Cause | What you see | Who is affected |
|---|---|---|
| Content Security Policy (CSP) missing the Google hosts | Console error: Refused to load the script | Every visitor |
| Firewall, CDN or security plugin rule | 403 or challenge page for gtm.js | Every visitor or a region |
| Wrong or deleted container ID | gtm.js returns 404 | Every visitor |
| Container not published | gtm.js loads but contains no tags | Every visitor |
| Ad blockers and privacy browsers | net::ERR_BLOCKED_BY_CLIENT | A share of visitors |
| Provider outage or network fault | 5xx errors or timeouts | Everyone, usually briefly |
Why it costs you leads or sales
Ad platforms learn from the conversions you report. If tags do not fire, Google Ads, Meta and others see no leads or sales. Smart bidding has less to learn from, audiences stop filling and reports show a drop that looks like a marketing problem when it is a tracking problem.
- Ad clickVisitor lands on the page
- gtm.js requestBlocked, 403 or 404
- Tags fireGA4, Ads, Meta never run
- Conversion reportedPlatforms see nothing
The visitor converts, but nothing reaches your ad and analytics platforms.
Example: the form keeps working at 20 leads a day, but reported conversions fall to zero while the tag manager script is blocked.
How to check if your site has it
Open the page in a private window
Use a fresh window with extensions switched off so ad blockers do not confuse the result.
Open DevTools and the Network tab
Press F12 (or Cmd+Option+I on Mac), choose Network, tick Disable cache and reload.
Filter for the tag hosts
Type
gtm.js, thencollectandgoogleadservicesin the filter box. Look for red rows, status 403, 404, 5xx, or (blocked).Read the Console tab
Messages like 'Refused to load the script because it violates the Content Security Policy directive' point to a CSP problem.
Test with Tag Assistant
Open tagassistant.google.com, enter your URL and check that the container connects and your tags fire.
Check GTM Preview mode
In GTM, click Preview. If the debugger cannot connect, the container snippet is missing or blocked.
How to fix it
Start with the cause you found in the Network and Console tabs. The fixes below cover the most common ones, then the platform steps.
script-src 'self' https://www.googletagmanager.com https://www.google-analytics.com https://tagmanager.google.com;
img-src 'self' https://www.google-analytics.com https://www.googletagmanager.com https://*.google-analytics.com;
connect-src 'self' https://www.google-analytics.com https://analytics.google.com https://*.google-analytics.com https://*.analytics.google.com https://www.googletagmanager.com;Confirm the container ID
The ID (GTM-XXXXXXX) in your site must match the container in the GTM header. A wrong ID makes gtm.js return 404.
Publish the container
Click Submit, then Publish. An unpublished container loads but has no tags.
Check triggers and consent settings
Open Preview and confirm your tags are not held back by a consent trigger or a blocking trigger.
Check the plugin or theme snippet
If you use a plugin such as Site Kit or a GTM plugin, re-enter the container ID in its settings. Make sure the snippet is not loaded twice.
Review security and caching plugins
Check firewall plugins and any script-optimisation or delay settings. Exclude googletagmanager.com from rules that block or defer it.
Check headers
If a security plugin adds a CSP header, add the Google hosts shown above.
Use the built-in Google & YouTube app or Customer events
Go to Settings, then Customer events, and check the pixel or custom pixel is connected and not in a disconnected state.
Check theme.liquid
If you added a GTM snippet to theme.liquid, check the container ID and that it sits in the head.
Check Project settings
Open Project settings, then Custom code, and confirm the GTM snippet is in Head code with the right ID.
Republish the site
Custom code changes only go live after you publish.
Check Marketing Integrations
In the dashboard open Marketing & SEO, then Marketing Integrations, and check the Google Tag Manager connection and container ID.
Check Code Injection
Go to Settings, Advanced, Code Injection and check the GTM snippet is in the Header with the correct ID.
Check funnel or website tracking code
In the funnel or website Settings, open Tracking Code and confirm the Head tracking code holds the right snippet on each funnel and page.
Check the snippet
The GTM script must be high in the head and the noscript iframe just after the opening body tag.
Check server, CDN and WAF rules
Look in your server config, CDN or web application firewall (WAF) for rules that block or rewrite requests to Google hosts or inject a restrictive CSP.
<!-- In <head> -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXXX');</script>
<!-- Right after the opening <body> -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>How to confirm it's fixed
- gtm.js returns status 200 in a clean browser window
- No CSP or blocked-request errors in the Console
- Tag Assistant connects to the container and shows your tags firing
- A collect request to Google Analytics appears in the Network tab after a page view
- A test conversion shows in GA4 DebugView or Realtime
- Your ad platform pixel helper shows the event
How to prevent it happening again
- Re-test tracking after any change to security headers, firewall rules, CDN settings or caching plugins
- Keep a note of every host your tags need and update the CSP when you add a tag
- Publish GTM changes with a version name so you can roll back
- Check tracking after theme, plugin or consent tool updates
- Compare reported conversions with real form and order counts every week
- Monitor the funnel from outside so a quiet failure raises an alert
Day 0
A security header change blocks googletagmanager.com. Example timeline.
Day 1
Reported conversions drop, but traffic looks normal.
Day 7
The weekly report shows a collapse and someone starts digging.
Day 8
The CSP is fixed and tags fire again, but a week of data is gone.
How FunnelGuard handles this
FunnelGuard detects this today. A robot visitor runs your real customer journey on a schedule, from the EU or the US, and checks the tracking hits sent to GA4, Google Ads, Meta, TikTok, LinkedIn, Bing, Pinterest, Snapchat, X and Reddit. If the tag manager or analytics request is blocked or fails, the expected hits do not arrive and the step is flagged.
Questions people ask
Why is my Google Tag Manager not loading?
The most common causes are a wrong container ID, an unpublished container, a Content Security Policy that does not allow googletagmanager.com, or a firewall or plugin rule blocking the script. Open the Network tab, filter for gtm.js and read the status code and Console message to see which one applies.
How do I check if gtm.js is blocked?
Open DevTools, go to the Network tab, reload the page and filter for gtm.js. A status of 200 means it loaded. A 403, 404, a failed request or '(blocked)' means a problem. Check the Console for CSP errors too.
Why do I see net::ERR_BLOCKED_BY_CLIENT for Google Analytics?
That error means the browser or an extension, usually an ad blocker or privacy tool, blocked the request. Test in a clean private window with extensions off. If it loads there, the issue is with that visitor's browser and not your site.
Does a Content Security Policy block Google Tag Manager?
Yes, if script-src, connect-src or img-src do not list the Google hosts your tags use. The Console will show 'Refused to load the script' with the directive involved. Add the needed hosts, such as www.googletagmanager.com and www.google-analytics.com.
Can I tell if Google Analytics is down?
Check the Google Workspace Status Dashboard and look for failed collect requests in the Network tab with 5xx codes or timeouts. If other sites' tags fail the same way, it is likely a provider issue. Otherwise look at your own site's headers and firewall.
How do I know tracking broke before my reports show it?
Reports lag, so you usually find out days later. An external monitor that runs your journey on a schedule and checks that the tracking hits arrive can alert you the same day. FunnelGuard does this for GA4, Google Ads, Meta and other platforms.
Will ad blockers make my conversion numbers lower?
Yes. Some visitors block analytics and ad tags, so your reported numbers will sit somewhat below the real ones. That gap is normal and fairly steady. A sudden drop to near zero points to a real fault on your side.
Related issues
- OPS-232Server-side GTM container downFix guide
- OPS-233Third-party status changes not correlated with incidentsFix guide
- OPS-219Google Fonts / font CDN outage (invisible text)Fix guide
- OPS-220jQuery/CDN library outageFix guide
- OPS-222reCAPTCHA/hCaptcha service outageFix guide
- OPS-208Payment gateway outage (Stripe, PayPal, Square)Fix guide