All things Shopify and commerce
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
101.6 KiB | 71.0 KiB | |
63.7 KiB | 31.2 KiB | |
101.6 KiB | 30.4 KiB | |
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?
Hi @twilson90 ,
This is Theodore from PageFly - Shopify Page Builder App.
To address the issue of over the top stacking times due to numerous Google Tag Director and Analytics scripts on your Shopify location, consider uniting your Google Tag Supervisor scripts into a single holder to oversee all following, counting Analytics and custom occasions. Routinely review and streamline your GTM labels to expel redundancies, execute sluggish stacking for non-essential scripts, and guarantee offbeat stacking to dodge blocking page rendering. Survey and conceivably evacuate pointless third-party Shopify apps that will infuse extra scripts. For more noteworthy control, physically execute GTM and Google Analytics through topic customization. Utilize apparatuses like Google Tag Right hand for tag confirmation and ceaselessly screen location execution with Google PageSpeed Experiences and Beacon. If Shopify’s automatic script inclusion may be a concern, reaching Shopify Bolster for custom-made arrangements can moreover be beneficial. Adjusting precise information following with ideal location execution is significant to preserve a great client encounter and SEO.
I’ll be so happy if my suggestion can help to solve your problem. If you have any further questions, please feel free to tell me.
Best regards,
Theodore | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024