Every time I run PageSpeed on a Shopify store, Google Tag Manager is sitting near the top of the third party list. People keep asking me if it’s actually that bad, so I went back through the ~11k stores from my crawl and pulled it out.
It’s on about 45% of homepages. Where it runs, it eats around 280ms of phone main thread time on a typical store. A quarter of stores are over 480ms and a few percent go past a full second. Of the third parties that show up on a lot of stores, nothing else costs more per store.
The part I didn’t expect: what PageSpeed calls “Google Tag Manager” often isn’t just GTM. It lumps everything from googletagmanager.com together, so the GTM container (gtm.js) and the Google tag (gtag.js, the thing GA4 and Google Ads use) all end up on that one line. When I split them:
both: around 414ms
gtag.js only: around 168ms
GTM container only: around 100ms
So the heavy ones are mostly stores running both. Could just be that they track a lot more, I can’t prove anyone’s loading the same tag twice. But it’s the first thing I’d check, because it’s really easy to end up with GA4 through the Google channel and again inside a container someone set up years ago.
It seems to reach real shoppers too. Going by Google’s field data, stores where these scripts are light (under 100ms) pass the INP check about 75% of the time, the heavy ones (600ms+) about 61%. That’s correlation though, stores with more tracking usually have more of everything.
Quick way to check yours: view source on your homepage and search for googletagmanager.com. gtm.js?id=GTM- is a container, gtag/js?id= is a Google tag. If the same G- ID shows up in more than one place (theme.liquid, the Google channel, inside GTM) you’re probably sending it twice. Also worth clearing out old tags in the container, pause first and delete later. Just check with whoever runs your ads before you kill anything.
Couple of honest limits: homepage only, I only kept the 12 heaviest third parties per store, and I can’t see inside a container. Pixels that GTM loads get counted under their own company, so a busy container really costs more than this.
Has anyone actually cleaned this up and then seen INP move in Search Console a month later? Curious if the field data follows.