On this page
What this issue is
A tag manager is a single snippet on your site that loads and runs many other scripts (tags): analytics, ad pixels, heatmaps, chat widgets and more. Each tag has a trigger that decides when it runs. The most common trigger is All Pages (called Page View in GTM), which runs the tag as soon as the page starts loading.
Why it costs you leads or sales
While the main thread is busy running tag code, it cannot respond to a visitor. A person who taps your Book now button or starts typing in a form during that window sees nothing happen. This shows up as poor INP (Interaction to Next Paint, the Core Web Vitals measure of how fast a page reacts to input) and as long tasks over 50 ms.
- Page starts loadingGTM container loads
- All Pages tags fireDozens of scripts and requests start at once
- Main thread busyTaps and keystrokes wait
- Visitor leaves or double-tapsForm or checkout not started
The break happens on page load, before the visitor can act.
Example: illustrative numbers showing how blocking time can grow as more tags fire on page load. Your own figures will differ.
How to check if your site has it
Open GTM Preview modeGoogle Tag Manager
In your container click Preview, enter your page URL and open it. Tag Assistant lists every tag under Tags Fired for each event.
Count tags on the Container Loaded and Page View events
Select Container Loaded, Page View (or Initialization, Consent Initialization) and DOM Ready in the left panel. Note how many tags appear under Tags Fired on each.
Check the Network tab
Open browser DevTools, go to Network, reload and filter by Fetch/XHR or Img. Count requests to analytics and ad domains. Several hits to the same vendor often mean duplicate tags.
Check the Performance panel
Record a page load in DevTools Performance. Look for long tasks (marked with a red corner) that start from googletagmanager.com or vendor scripts.
Review the tag listGoogle Tag Manager
In GTM go to Tags and sort by Firing Triggers. Look for many tags on All Pages, paused-looking old names, and tags with no recent use.
How to fix it
List every tag with its trigger and owner
Export the list from GTM (Admin > Export Container, or copy names into a sheet). Add who needs each tag and which report it feeds.
Delete dead and duplicate tags
Remove tags for ended campaigns, tools you no longer use and second copies of the same pixel. Pause first if unsure, then delete after a week of checking.
Keep only essentials on page view
Consent setup, your main analytics config tag and the key ad pixels can stay early. Everything else should wait.
Move non-essential tags to later triggers
Change heatmaps, chat widgets, social embeds and remarketing helpers to the Window Loaded trigger, a timer trigger, or a scroll or click trigger.
Fire conversion tags on the real event
Conversion tags should fire on the form submit, thank-you page or purchase event, not on every page.
Merge where possible
Use one GA4 config tag with event tags instead of many near-identical tags. Use tag sequencing only where order really matters.
Publish with a version noteGoogle Tag Manager
Write what you changed so you can roll back from Versions if something breaks.
Change the trigger
Open the tag, click Triggering, remove All Pages and add a trigger of type Window Loaded, Timer or a click/scroll trigger.
Use folders and naming
Put tags in folders by vendor so duplicates are easy to spot.
Check plugins for extra pixels
Plugins such as analytics, WooCommerce and ad-pixel plugins can add their own tags. Disable the plugin's pixel if GTM already sends it.
Check the theme header
Look under Appearance > Theme File Editor or your theme's header scripts setting for hard-coded tracking code.
Review Customer events
In Settings > Customer events, check custom pixels and app pixels that may duplicate your GTM tags.
Check theme.liquid
Search for gtag, fbq and GTM snippets that were added by hand.
Check custom code
Look in Project settings > Custom code and in page-level custom code for tracking added outside GTM.
Check tracking code fields
Review the header and footer tracking code in site and funnel settings so the same pixel is not added there and in GTM.
Review Marketing Integrations
In Settings > Marketing Integrations or Custom Code, remove pixels that GTM already sends.
Review Code Injection
Under Settings > Advanced > Code Injection, check the header and footer for duplicate tracking code.
Load extras after the page is idle
If you inject non-essential scripts yourself, delay them until the page has loaded, as in the snippet below.
window.addEventListener('load', function () {
setTimeout(function () {
var s = document.createElement('script');
s.src = 'https://example.com/widget.js';
s.async = true;
document.head.appendChild(s);
}, 2000);
});Before
- All tags on All Pages
- Two copies of the Meta pixel
- Old campaign tags still live
- Chat and heatmap load immediately
After
- Only consent and core analytics early
- One copy of each pixel
- Dead tags removed
- Chat and heatmap on Window Loaded
How to confirm it's fixed
- GTM Preview shows fewer tags under Page View and Container Loaded
- Each vendor receives one hit per event, not two
- Network tab shows fewer requests during the first seconds
- DevTools Performance shows shorter long tasks from GTM and vendor scripts
- Conversion events still reach GA4, Google Ads and Meta when you submit a test form
- Lighthouse or PageSpeed Insights shows lower Total Blocking Time than before
How to prevent it happening again
- Require a named owner and a purpose for every new tag
- Default new tags to a specific trigger, never All Pages
- Review the container every quarter and delete unused tags
- Add an expiry date to campaign tags in their name or notes
- Check for hard-coded pixels before adding the same one in GTM
- Re-test page speed after each container publish
How FunnelGuard handles this
FunnelGuard detects this issue only partly. When its robot visitor runs your journeys, it counts the tracking hits sent to each ad and analytics vendor (GA4, Google Ads, Meta, TikTok, LinkedIn, Bing, Pinterest, Snapchat, X, Reddit). If a vendor receives more hits than expected, that can point to duplicate or over-firing tags.
Questions people ask
Why is Google Tag Manager slowing down my website?
GTM itself is small, but it loads every tag you put in it. If many tags fire on page load, they download scripts and run code at the same time, which keeps the browser busy and delays clicks. Remove unused tags and move non-essential ones to later triggers.
How many tags is too many in Google Tag Manager?
There is no fixed limit. What matters is how many fire on page load and how heavy they are. A few light tags are fine, while a dozen heavy ones such as heatmaps, chat and ad pixels on All Pages can cause long tasks.
How do I see which tags fire on page load in GTM?
Click Preview in your container, enter the page URL and open it. In Tag Assistant select events such as Container Loaded and Page View, then read the Tags Fired list. Cross-check with the Network tab in browser DevTools.
Should I use the All Pages trigger for every tag?
No. Use All Pages only for tags that truly need to run on every page right away, such as consent setup and core analytics. Use Window Loaded, timers or event triggers for the rest, and fire conversion tags on the real conversion event.
Do tag manager tags hurt INP?
They can. Tags run JavaScript on the main thread, and if that work is happening when a visitor taps a button, the response is delayed. Fewer and later-firing tags reduce long tasks and help INP.
Why are my conversions counted twice after adding GTM?
The same pixel is often installed twice, once in GTM and once in the theme, a plugin or a platform setting. Look at the page source and the Network tab for two hits to the same vendor, then remove one copy.
Can FunnelGuard tell me if I have too many tags?
Only partly. FunnelGuard counts tracking hits per vendor during its journey checks, which can reveal duplicates. It does not list your container tags or measure script blocking time, so use GTM Preview and DevTools for that.
Related issues
- PRF-041Total Blocking Time high from heavy third-party tagsFix guide
- PRF-040Long tasks over 50 ms block input during loadFix guide
- PRF-039INP over 200 ms on a CTA or form interactionFix guide
- PRF-044Main thread busy with session-replay scripts (Hotjar, Clarity, FullStory)Fix guide
- PRF-042Submit button unresponsive for seconds while JS loads (dead first click)Fix guide
- PRF-046Multiple versions of jQuery or React loadedFix guide