When I run my site in Lighthouse or Google PageSpeed Insights I’m finding my site is spending far too much time loading scripts relating to Google Tags or Analytics.
For some reason the Google Sales App is prompting my site to load various large scripts from Google Tag Manager, and manually I’ve also had to add a Google Tag Manager script so I can monitor custom events, totalling 4 individual scripts, containing I’m sure a huge amount of duplicate code.
URLTransfer SizePotential Savings
/gtag/js?id=G-xxxxxxxxx (www.googletagmanager.com) |
101.6 KiB |
71.0 KiB |
|---|---|---|
/gtm.js?id=GTM-xxxxxxxxx (www.googletagmanager.com) |
63.7 KiB |
31.2 KiB |
/gtag/js?id=G-xxxxxxxxx&l=dataLayer&cx=c (www.googletagmanager.com) |
101.6 KiB |
30.4 KiB |
/gtag/destination?id=MC-xxxxxxxxx&l=dataLayer&cx=c (www.googletagmanager.com) |
74.3 KiB |
28.9 KiB |
This is massively inefficient.
It seems ridiculous that I have no control over this, as a single GTM- tag with my custom events would suffice.
For some reason Shopify is adding all these scripts.
Is there any solution?