As a digital analyst and web data enthusiast, I recently ran into a classic but frustrating issue that many web analysts face: my Google Tag Manager (GTM) container wasn’t showing up in Preview Mode. What made it more confusing? The GTM snippet was clearly present in my page source, but Tag Assistant kept saying: “Google Tag: GTM-MHJSPLWM not found.”



Here’s a step-by-step breakdown of the problem, how I investigated it, and what finally fix GTM preview mode not working on WordPress website. If you’re working in GTM, especially in WordPress or eCommerce environments, this could save you hours of head-scratching.
The Problem: GTM Installed but Not Found I was auditing my own course site (courses.hishamghanayem.com) to test event tracking using GTM’s Preview Mode. The container ID was correct. I even verified that the GTM code was present in the page using Chrome DevTools under the Elements tab. But Preview Mode refused to connect.
The error message was:
“Google Tag: GTM-MHJSPLWM not found.”
Investigation Phase: Putting on the Debugger Hat I approached this like a senior analyst would—hypothesis-driven and methodical.
Step 1: Confirm GTM Code Exists in the DOM
- ✅ Yes, GTM ID “GTM-MHJSPLWM” was found in both the
<head>
and<noscript>
sections.Step 2: Check Network Requests
- I filtered the Network tab in Chrome DevTools using “gtm.js”
- ✅ The request was visible, but marked as:
ERR_BLOCKED_BY_CLIENT
Step 3: Console Errors
- Errors confirmed the issue:
GET https://www.googletagmanager.com/gtm.js?id=GTM-MHJSPLWM net::ERR_BLOCKED_BY_CLIENT
This was the smoking gun: something on my browser was actively blocking the GTM script.
The Real Culprit: Ad Blockers & Privacy Extensions After testing in Incognito mode (with all extensions disabled), GTM Preview worked perfectly.
The issue wasn’t my GTM implementation. It was my browser environment.
I had privacy-focused extensions running that were blocking GTM:
- Ghostery
- uBlock Origin
Once I paused those extensions on my site and refreshed, GTM loaded correctly, and Preview Mode connected instantly.
What I Learned & What You Can Apply
1. Always Test in Incognito or Clean Profile First You need a clean testing environment without extensions interfering. I now use a Chrome profile named “GTM QA” with no add-ons installed.
2. ERR_BLOCKED_BY_CLIENT = Blocker Issue This error means the script was blocked by a browser extension, not that it’s missing.
3. Validate Using DevTools
- Network tab: Look for gtm.js loading.
- Console tab: Check for red errors.
window.google_tag_manager
in Console: Useful GTM presence check.
4. Bookmarklet to Check GTM Status Here’s a handy snippet:
javascript:(function(){
varid = ‘GTM-MHJSPLWM’;
if (window.google_tag_manager && google_tag_manager[id]) {
alert(‘✅ GTM is loaded and active: ‘ + id);
} else {
alert(‘❌ GTM not found or blocked.’);
}
})();
Conclusion: From Problem to Portfolio-Worthy Lesson This issue reminded me that technical issues aren’t always about “bad code” or “wrong tags.” Sometimes, it’s the test environment. Documenting this not only solved my problem—it gave me material for my blog, LinkedIn, and a reusable SOP for future GTM audits.
If you’re in digital analytics, especially in airline, retail, or WordPress ecosystems, build a clean testing process and always rule out browser interference before blaming the tag setup.
Want to avoid this issue again? Create your own QA browser profile and save this checklist.
Stay curious. Debug deeper. And always ask: is it the code, or is it the context? As a data analyst you should be curious and question the obvious sometime to reach the truth. Thats why it is recommended to try to reproduce the issue on different enviroment or browsers this will help a lot.
Note: This article was written by chatgpt to simplify the topic and make it easier to dyjast. Furthermore, the above issue was not there a month ago before writing the blog. However, do to adding new ad blockers the issue appeared.