Skip to content

The same script loaded twice

The page loads the same library or tracking tag more than once: for example Google Analytics added both by an app and in the theme.

Why it matters

Each copy downloads and runs again for nothing, and two copies of a tracking tag can count every visit twice.

How to fix it

  1. Find where each copy comes from: the theme, an app or plugin, or code pasted into the site’s settings.
  2. Keep one, usually the one your platform’s own setting or app adds, and remove the others.
On WordPress
  1. Go to Plugins › Installed Plugins and, where two plugins add the same tool, such as two analytics plugins, deactivate and delete one.

WordPress help: Deactivate or delete a plugin (opens in a new tab)

On Shopify
  1. Look for the tool in Settings › Apps, in Settings › Customer events › Custom pixels and in the theme’s code (theme.liquid). Keep one copy and remove the others.

Shopify help: Managing custom pixels (opens in a new tab)

On Wix
  1. Go to Settings › Custom Code and turn off any snippet that adds a tool already connected through Marketing Integrations or an app.

Wix help: Wix Editor: Embedding Custom Code on Your Site (opens in a new tab)

On Squarespace
  1. Open the Code Injection panel and compare the Header and Footer fields with each page’s Page Header Code Injection: keep one copy of each script.
  2. If you connected the tool in Squarespace’s own settings, such as Google Analytics, delete its code from Code Injection.

Squarespace help: Customize parts of your site with code injection (opens in a new tab)

On Hostinger
  1. Go to More (⋯) › Integrations: if a tool such as Google Analytics or Meta Pixel is connected as its own integration, delete any copy of its code from the Custom code field and from Embed code elements, save, then update the website.

Hostinger help: Hostinger AI Builder: How to add integrations in manual mode (opens in a new tab)

On Webflow
  1. Check where scripts are added: Site settings › Custom code, each page’s Page settings › Custom code, code embed elements, and integrations such as Google Analytics connected in Site settings. Keep one copy of each.

Webflow help: Optimize custom scripts (opens in a new tab)

Check your fix

Once the change is live, check the page again.

Want it done for you?

We’re a product design studio. We can make this fix, and check the rest of your site while we’re at it.

Book a call (opens in a new tab)