Cookie preferences

Choose which optional cookies EndFrame may use on this site. Analytics and advertising tools load only if you allow them, and you can change your mind any time from “Cookie settings” in the footer. Whatever you choose, this tab keeps the campaign labels from the link that brought you, and they are saved with your account if you sign up. Read the Cookie Policy.

Needed for the site to work, such as remembering this choice. Always on.

Lets us load analytics tools through Google Tag Manager, including Google Analytics and Microsoft Clarity session recordings, to understand how the site is used.

Allows advertising tags to measure our ad campaigns. None run on this site today. It also keeps ad click IDs from the page address for this tab, and saves them with your account if you sign up.

Skip to main content

Does Google Tag Manager Slow Down Your Website? What Really Affects Page Speed

A plain answer to whether Google Tag Manager slows your site: what the container costs, which tag types and triggers cost the most, the container size warning, the 2026 optimisation, and a speed check a marketer can run without a developer.

The EndFrame Team7 min read

Google Tag Manager itself rarely makes a website slow. The container script is small and loads asynchronously, which means the browser keeps building the page while it downloads. What slows pages down is what has been put inside the container and when it is set to run. A container with five well-timed tags and one with sixty tags firing as the page starts loading use the same snippet, yet behave very differently. This guide separates the container from its contents, shows which tag types and triggers cost the most according to Google's own guidance, and ends with a speed check you can run without a developer.

What the container itself costs

Google's web.dev guide to tags and tag managers describes the tag manager as a vessel: its performance depends on what you load into it. The same guide puts the Tag Manager library at about 33 KB compressed and the median site container at about 50 KB. That is a modest download next to a single hero image. The cost grows with every tag, trigger and variable you add, because they all ship in that file and the browser has to run them.

The effect on Core Web Vitals, the three page experience metrics Google reports, is usually indirect. Tags use network bandwidth and time on the main thread, the single queue where the browser runs JavaScript and draws the page. When tags take those resources during loading, the page's own content waits.

MetricWhat it measuresHow tags affect it
Largest Contentful Paint (LCP), good at 2.5 seconds or lessWhen the main content, often a hero image or headline, appearsTags downloading during load compete with the image for bandwidth, and long scripts can delay drawing it
Interaction to Next Paint (INP), good at 200 ms or lessHow quickly the page responds to taps, clicks and typingScripts busy on the main thread make the page slow to react; web.dev notes a correlation between the size of tag managers and poorer INP
Cumulative Layout Shift (CLS), good at 0.1 or lessHow much the layout jumps around while loadingTags that insert banners, widgets or other visible elements late push content down the page

Which tag types cost the most

Not all tags are equal. web.dev ranks image pixels as the most efficient, custom templates next and Custom HTML last. The table adds vendor tags, whose cost depends on the vendor's own script.

Tag typeWhat happens in the browserTypical cost
Image pixelThe browser requests a tiny image that carries the data; no JavaScript runs after it firesLowest: under 1 KB and no layout shifts
Custom templateCode runs in a sandboxed environment and can only use the APIs Google allows, such as injectScriptLow to moderate, and less likely to cause performance or security problems
Vendor tag (Meta Pixel, TikTok Pixel, chat widgets, heatmaps)Loads the vendor's own script, which may load more files and keep runningVaries widely with what the vendor script does
Custom HTMLPastes any HTML or JavaScript into the pageThe most variable and the easiest to misuse

Custom HTML tags are not always slow, but they are where problems hide. A tag that inserts elements into the page forces the browser to recalculate the size and position of items on the page, which web.dev says hurts performance when excessive. A large library pasted inline makes the container bigger for every visitor on every page, when it could load as a separate file the browser caches. web.dev also strongly recommends a data layer, which controls what data tags can read, rather than leaving each tag to pull values from the page.

When tags fire matters as much as what they are

Tag Manager has five page view trigger types, and they fire in a fixed order. The earlier a tag fires, the more it competes with the page for the limited resources available during loading.

  1. 1Consent Initialization: fires before anything else, for the tag that sets consent defaults, such as your consent banner's tag.
  2. 2Initialization: fires before every other trigger except Consent Initialization.
  3. 3Page View: fires as soon as the browser begins loading the page.
  4. 4DOM Ready: fires once the browser has finished building the page structure from the HTML.
  5. 5Window Loaded: fires after the page has fully loaded, including images and scripts.

web.dev's advice is to fire non-essential tags on Window Loaded so they stay out of the way of loading. Heatmaps, survey widgets and remarketing audiences rarely need to run in the first second. Limit each tag to the pages where it is used rather than All Pages. Triggers are JavaScript too, and web.dev warns that several click or timer triggers can sharply increase the tag manager's workload. Variables are evaluated over and over, so remove the ones nothing uses, especially Custom JavaScript variables.

Container size and the 70 percent warning

web.dev puts Tag Manager's container limit at 300 KB, and the Versions page shows a Size indicator for large containers. Google's help page on managing container size says that if the indicator is above 70 percent, you should optimise. Its suggestions are to combine similar tags into one tag that uses a Lookup Table variable, remove tags and variables that are no longer needed, replace long Lookup Tables with RegEx Tables, split very large containers by site or section, minimise Custom HTML tags and Custom JavaScript variables in favour of templates, move static JavaScript to an external file, and consider server-side tagging for some tags.

Two details catch teams out. First, a tag stopped with a trigger exception, a rule that blocks it from firing, still ships in the container, so it still costs download and processing time. Pausing or deleting the tag removes its code from the container. Pause a seasonal tag you will need again and publish the new version; delete tags for vendors you have stopped using. Second, use one container per page. Each extra container loads its own copy of the core code, so check for a second container left behind by a previous agency or plugin. Our Google Tag Manager audit checklist covers deleting safely in small batches.

What the 2026 container optimisation changes

A Google Analytics 4 or Google Ads tag inside a Tag Manager container has traditionally loaded an extra script, gtag.js, to send its data, and a container that has not been optimised still works this way. Google's help page on the 2026 updates says this extra script could delay sending measurement data. In its 12 October 2026 release note, Google added the ability for containers to send data directly to Google measurement products without that separate script.

Nothing changes automatically. Tag Manager shows an optimisation banner, and only users with Edit, Approve or Publish permission on the container can start the optimisation from it. You can preview the changes before publishing, and Google tag settings move to a new Settings tab. The gain is limited to Google destinations: Meta, TikTok, Custom HTML and every other vendor tag cost exactly what they did before. Our comparison of the Google tag and Google Tag Manager explains the wider 2026 change that upgrades Google tags into Tag Manager containers.

A speed check you can run without a developer

  1. 1Run your busiest landing page through PageSpeed Insights. Note LCP, INP and CLS in the field data, which comes from real Chrome users over the previous 28 days, and open the 3rd parties insight (called Third parties in Chrome's documentation) in the lab results to see which providers load the most.
  2. 2List what loads on the page. Our free tracking audit lists the marketing tags one public page loads, which gives you a starting inventory. It is not a speed test and does not measure load time.
  3. 3Open Tag Manager's preview mode, load the page and click each early event in the list on the left. Count the tags that fire before Window Loaded.
  4. 4Go through the Tags list and note every Custom HTML tag, who asked for it and whether a template or pixel could replace it.
  5. 5Move tags that do not need to run early, such as heatmaps, surveys and audience tags, to a Window Loaded trigger, and limit each tag to the pages that need it.
  6. 6Delete tags for vendors you no longer pay for, then delete the triggers and variables only they used. Check the Size indicator on the Versions page.
  7. 7Publish with a clear version name and notes, then rerun PageSpeed Insights. The lab test reflects changes immediately; field data catches up over the next four weeks.

Do not judge speed in preview mode itself. web.dev notes that preview runs slightly slower, so its numbers are not comparable with the live site.

What not to do

  • Do not move conversion tags to Window Loaded on pages people leave quickly. A thank-you page visitor who closes the tab before images finish loading never triggers it, and the conversion is lost. Fire purchase and lead tags on the event that proves the conversion, as covered in our guide to form submission tracking.
  • Do not delay your consent tag. It belongs on Consent Initialization so that consent settings are applied before other tags fire, as described in our guide to Google Consent Mode v2.
  • Do not load visible page content through Tag Manager. web.dev advises against putting cookie notices, hero images or core site features in a tag manager, because they appear later, can hurt LCP and CLS, and break for visitors who block the tag manager.
  • Do not expect server-side tagging to remove the browser. It moves vendor code and processing off the page, so the browser sends a single request to your server container instead of a separate request to each vendor, but the page still needs a browser signal and web.dev notes it only works with some tags. Our comparison of server-side and client-side tracking explains the trade-offs.

The short version: Google Tag Manager is a delivery system, and a slow container is usually a maintenance problem. Fewer tags, lighter tag types and later triggers do more for Core Web Vitals than removing Tag Manager, because hard-coded tags cost the same.

Frequently asked questions

Is it faster to hard-code tags than to load them through Google Tag Manager?

Rarely by enough to notice. Hard-coding saves the Tag Manager library itself, about 33 KB compressed, but the Meta Pixel or chat widget costs the same wherever it is loaded. You also lose easy control over timing: in a container you can move a tag to a later trigger in minutes, while a hard-coded script needs a developer to change.

Why does PageSpeed Insights blame googletagmanager.com for slow scripts?

Because code that runs inside Custom HTML tags runs as part of the Tag Manager script, so its processing time can be credited to Google Tag Manager rather than to the vendor that wrote it. The 3rd parties insight groups requests by provider and always passes: it is shown for information only. Look at which vendor files load after the container to see where the weight really is.

Do paused tags still slow my website down?

No. web.dev says pausing a tag removes its code from the container, which blocking it with a trigger exception does not. The tag stays in your workspace, so you can switch it back on later. Pausing suits a seasonal campaign tag. For vendors you have stopped using, delete the tag along with the triggers and variables only it used, so the container stays easy to audit.

Can I use two Google Tag Manager containers on the same page?

You can, but each one loads its own copy of the core library code, so two containers cost more than one with the same tags. web.dev's guidance is one container per page, with a second only when it is deliberately controlled, such as a small container that loads early and a heavier one that loads later. Check for this when more than one agency or plugin has installed tracking.

Try EndFrame

Add a server-side path for your conversions.

EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.

No credit card required

Keep reading