On this page
What this issue is
A tag is a small script that sends data to a platform such as GA4, Google Ads, Meta or TikTok. Each one is downloaded and run by the visitor's browser. The browser has one main thread for most of its work, so a heavy tag can block it from drawing your page or reacting to input.
Two Core Web Vitals (Google's page experience measures) are affected. LCP (Largest Contentful Paint) is how long the biggest visible element, often a hero image or headline, takes to appear. INP (Interaction to Next Paint) is how long the page takes to visibly respond after a click, tap or key press. Google's published guidance treats LCP of 2.5 seconds or less and INP of 200 milliseconds or less as good.
Why it costs you leads or sales
Visitors from ads often arrive on mobile, on average hardware and mid-range connections. If the page looks blank for a few seconds, some leave before they see your offer. If they tap a button or open a form field and nothing happens, they tap again, give up or leave. The irony is that tags meant to measure your funnel end up hurting it.
- Ad clickVisitor lands on the page
- Tags load firstSeveral scripts block the main thread
- Hero appears lateLCP is slow
- Form feels laggyINP is slow
- Lead submittedNever reached
Tags that run before the page is usable delay the hero and the form, so the visitor leaves before converting.
Example: illustrative blocking time on a mid-range phone as tags are added. Your numbers will differ.
How to check if your site has it
Run PageSpeed Insights
Test your landing page on mobile. Open the diagnostics and look at 'Reduce the impact of third-party code', 'Reduce unused JavaScript' and 'Minimize main-thread work'.
Record a trace in Chrome DevTools
Open the Performance panel, enable CPU throttling (4x slowdown) and reload with recording on. Look for long tasks (red corners) and see which script URLs own them.
Block the tags and compare
In the Network panel, right-click a tag request and choose 'Block request domain', then reload. If LCP drops clearly, that tag is a cause.
Check real-user data
Look at the Core Web Vitals report in Google Search Console, or the CrUX data shown in PageSpeed Insights, to see whether real visitors are affected.
List every tag
Open your tag manager and note each tag, its trigger and its owner. Tags nobody can explain are candidates for removal.
How to fix it
The order matters: remove first, then delay, then slim down. Never delay your conversion tags so far that a fast visitor leaves before they fire.
Remove tags you don't use
Delete old pixels, retired test tools and duplicate analytics. Each removed script is the cheapest speed gain.
Stop duplicates
Make sure GA4 or the Meta pixel isn't installed both in the theme and in the tag manager.
Load non-essential tags later
Chat widgets, heatmaps and session recorders can wait until the page is interactive or the first user input.
Keep conversion tags reliable
Fire page view and conversion tags on 'Page View' or 'Window Loaded' rather than being held back by long delays.
Break up long tasks in your own code
If a custom event handler runs heavy work on click, defer non-urgent work so the page can respond first.
Re-test and compare
Run the same page on the same settings and compare LCP, INP and Total Blocking Time with your earlier results.
Audit triggers
Change non-essential tags from 'All Pages - Page View' to 'Window Loaded' or a custom trigger that fires after first interaction.
Use Preview mode
Open Preview and check which tags fire on which event, and pause or delete unused ones.
Trim the container
Remove unused variables, triggers and Custom HTML tags that load third-party libraries.
Remove duplicate plugins
Check whether several plugins add the same pixel or analytics code. Keep one.
Use your performance plugin's delay option
Plugins such as WP Rocket or Perfmatters offer 'delay JavaScript until user interaction' with exclusions. Exclude your conversion scripts and test forms.
Remove unused scripts per page
Load chat or form plugins only on pages that need them.
Review installed apps
In Admin, open Apps and remove those you no longer use. Some leave code in theme files, so also check theme.liquid.
Check Customer events
In Settings > Customer events, review pixels and remove the ones you don't need.
Test before and after
Compare the product page speed after each removal to see which app mattered.
Move scripts to the footer
In Project settings > Custom code, put non-essential scripts in the footer code, not the head.
Remove unneeded embeds
Delete third-party embeds on pages where they aren't used.
Use Marketing Integrations
Add pixels through Marketing Integrations rather than pasting multiple custom scripts, and remove ones you no longer use.
Set load timing
In Settings > Custom code, set scripts to load on only the pages that need them.
Review Code Injection
Open Settings > Advanced > Code Injection and delete scripts you don't use. Prefer the footer field for non-essential ones.
Add async or defer
Load third-party scripts with async or defer so they don't block HTML parsing.
Preconnect carefully
Use a preconnect hint only for the one or two domains that matter, such as your tag host.
function loadChat() {
var s = document.createElement('script');
s.src = 'https://example.com/chat-widget.js';
s.async = true;
document.head.appendChild(s);
}
['pointerdown', 'keydown', 'scroll'].forEach(function (e) {
window.addEventListener(e, loadChat, { once: true, passive: true });
});
setTimeout(loadChat, 8000);Before
- Eight tags fire on page view
- Chat and heatmap load before the hero
- Duplicate GA4 in theme and tag manager
- Buttons feel laggy on mobile
After
- Only needed tags fire on page view
- Chat and heatmap load after first interaction
- One GA4 install
- Conversion tags still fire on submit
How to confirm it's fixed
- PageSpeed Insights shows lower LCP and Total Blocking Time on mobile than before
- DevTools Performance trace shows fewer long tasks from third-party scripts
- Tag manager Preview shows conversion tags still fire on form submit or purchase
- GA4 DebugView or the platform's test tool receives the conversion event
- A test lead still reaches your inbox and CRM
- Search Console Core Web Vitals trend improves over the following weeks
Field data in Search Console is based on a rolling window of real visits, so it takes weeks to reflect a change. Judge the fix with lab tests first.
How to prevent it happening again
- Give every tag an owner and a reason to exist
- Review the tag manager each quarter and delete unused tags
- Test page speed before and after adding any new tag
- Set a performance budget for key landing pages
- Use a staging container or Preview mode before publishing
- Check new app or plugin installs for scripts they add
How FunnelGuard handles this
FunnelGuard detects this today. Its robot visitor loads your pages on a schedule as part of your funnel journeys and checks them against a Core Web Vitals budget, so a page that becomes slow after a new tag is added can be flagged. If a check fails, it is re-checked from a second region before one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause.
FunnelGuard flags the problem; it does not remove or delay your tags for you. It also checks that the tracking hits to GA4, Google Ads, Meta and other platforms still fire, which helps you confirm a speed fix did not break conversions. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.
Questions people ask
Why are my marketing tags slowing down my website?
Each tag is a script the browser must download and run, often on the same main thread that draws the page and handles clicks. Several tags firing at page load can delay the hero content (LCP) and make interactions feel laggy (INP). Chat widgets, session recorders and ad pixels are common heavy ones.
How do I find which tag is hurting LCP or INP?
Run PageSpeed Insights and read the third-party code and main-thread diagnostics. Then record a Performance trace in Chrome DevTools with CPU throttling and see which script URLs own the long tasks. Blocking one domain at a time in the Network panel shows its effect.
Does Google Tag Manager slow down my site?
The container itself is small, but the tags inside it can be heavy. A container with many tags firing on every page view will slow the page. Cleaning unused tags and changing triggers for non-essential ones usually helps.
Is it safe to delay Google Ads or Meta conversion tags?
Delay them only a little, if at all. If a visitor converts before the tag loads, the conversion can be missed. Delay chat, heatmaps and other non-essential scripts instead, and always test that conversions still fire.
What is a good LCP and INP score?
Google's guidance treats an LCP of 2.5 seconds or less and an INP of 200 milliseconds or less as good, measured at the 75th percentile of real visits. Lab tests are only a guide, so check field data as well.
How long until Core Web Vitals improve in Search Console?
Search Console uses real-user data over a rolling period, so changes take weeks to show fully. Use lab tests straight after the fix to confirm the improvement, then watch the field trend.
Can FunnelGuard tell me when a new tag slows my page?
Yes. FunnelGuard checks your pages against a Core Web Vitals budget on a schedule and alerts you if a check fails, after re-checking from a second region. It reports the problem and a likely cause, but you make the changes to your tags.
Related issues
- TRK-388Too many tags (tag bloat) slowing funnelFix guide
- TRK-378Tags blocked by ad blockers (no first-party fallback)Fix guide
- TRK-386Tracking breaks on accelerated/cached mobile pagesFix guide
- TRK-385Tracking breaks on AMP pagesFix guide
- TRK-384Tracking breaks in in-app browsers (Instagram, TikTok)Fix guide
- TRK-379Safari ITP caps cookies to 7 days / 24 hFix guide