Site Speed Slow

Hi

My site is slow, I have an app on there and they took a look and said

Google Tag Manager is loading a large number of resources and there’s also 2 duplicate tags present. Removing the duplicate tag could help boost your speed, but for this task would need developer assistance.

So how do I go about solving this?

So far I removed FB which has increased the speed a tad.

The email pop up I put back on ( I had removed it but it didn’t seem to do much)

Website used to be running good but something is slowing it down..

Any suggestions?

Thanks

Hey @precision1

So the issue you’re dealing with is pretty common and it’s good that you’ve already identified Google Tag Manager as the culprit. GTM is super useful for managing tracking scripts, but when it’s not set up properly, it can absolutely kill your site speed.

The problem they mentioned about duplicate tags means you probably have the same tracking code firing twice - maybe you’ve got Facebook Pixel installed both through GTM and also directly in your theme code, or Google Analytics running in multiple places. This makes your site load the same script twice for no reason, which wastes time and slows everything down.

Here’s what you need to do. First, log into your Google Tag Manager account and go through all your tags one by one. Look for anything that appears twice or any tags that might be doing the same job. Common culprits are Facebook Pixel, Google Analytics, or conversion tracking tags that got added multiple times by accident. If you find duplicates, pause or delete one of them.

Now here’s the other part - you might also have tracking codes installed directly in your theme files that duplicate what’s in GTM. Go into your Shopify theme editor and check your theme’s settings for any pixels or tracking codes. Also look in the theme code itself, specifically in the theme.liquid file in the head or body sections. If you find Facebook Pixel, Google Analytics, or other tracking codes hard-coded there AND also running through GTM, you need to remove one version. Generally it’s better to manage everything through GTM and remove the hard-coded versions.

Hey!

I understand the frustration when GTM loads too many scripts or duplicate tags, it can slow down your store noticeably, especially on mobile. This is fixable, and you don’t need to remove tracking completely, just clean it up and load it efficiently.

Google Tag Manager loads every tag inside it, so if:

Tags are duplicated (for example GA4 is firing twice)
Some tags load on all pages unnecessarily
Tags are set to fire immediately on page load
Third-party marketing or popup apps inject their own tags

it increases blocking time and slows initial rendering.

You can do few things to solve this problem:

Check for duplicate tags in GTM

Inside GTM preview mode:

Click Preview
Load your site and check the firing list
If you see duplicate GA4, Meta Pixel, or conversion tags, delete the extras

Change tags to fire after page load

For non-essential tags (Popups, remarketing, heatmaps etc.), change trigger from: All Pages – Page View

to:

All Pages – Window Loaded

Remove duplicate hard-coded tracking

Check Online Store - Themes - Edit Code - theme.liquid
Look for any tag scripts like:

gtag(‘config’, ‘G-XXXXXX’);

fbq(‘init’, ‘xxxxx’);

If those same tags are already inside GTM - delete them here.

Audit apps

Apps often insert scripts you may not need anymore.
Go to:
Apps - Uninstall old apps you’re not using
then manually remove leftover code/snippets if needed.

If you don’t want to manage scripts manually, you can take a look into the Website Speedy App helps automatically: Defer non-critical scripts, Optimize third-party apps
Manage render-blocking resources

I logged into GTM I have tags (GA4) but my account screen has nothing in it.

Create an account?

Can I mess anything up?

I logged into GTM I have tags (GA4) but my account screen has nothing in it.

Create an account?

Can I mess anything up?

if a site is slow sometimes the problem could be the use of heavy videos or images