Skip to content
FunnelGuard

Fix guide by FunnelsGuard

UTM or gclid URLs indexed as duplicates: how to fix it

SEO-058Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

UTM parameters (utm_source, utm_medium, utm_campaign) and click IDs (gclid from Google Ads, fbclid from Meta, msclkid from Bing) are extra bits added to the end of a URL so analytics tools know where a visit came from. The page content does not change. But to a search engine, /pricing and /pricing?utm_source=newsletter are two different addresses with the same content.

When those tagged URLs get linked from other sites, shared on social media, copied from a browser bar or crawled from an internal link, Google can crawl and index them as duplicates. Google usually picks one version as the main one, but it does not always pick the one you want.

Why it costs you leads or sales

The impact is usually medium, not catastrophic, but it adds up:

What duplicate tracking URLs can cause
  • Links and ranking signals are split across several addresses instead of one.
  • A tagged URL may show in search results, so a campaign tag from one email is seen by every searcher.
  • Your analytics get polluted: organic visits show up as 'newsletter' or 'cpc' traffic.
  • Crawl budget is spent on copies, which matters most on large sites.
  • Reports in Search Console fill with duplicate warnings, hiding real problems.
How a tagged link becomes a duplicate
  1. Campaign link/pricing?utm_source=newsletter is shared
  2. Crawled by GoogleFound via a public link or internal link
  3. No canonicalPage does not say which URL is the main one
  4. Indexed as duplicateTagged URL appears in results
  5. Signals splitLinks and clicks spread over two URLs

Without a canonical, the tagged URL competes with the clean one.

How to check if your site has it

Find tracking-parameter URLs in Google
  1. Search Google for indexed parameter URLs

    Search site:yourdomain.com inurl:utm_source, then repeat with inurl:gclid and inurl:fbclid. Any result is an indexed tagged URL.

  2. Open Search Console page indexing

    Go to Indexing > Pages. Look at the reasons 'Duplicate without user-selected canonical' and 'Alternate page with proper canonical tag'. Click each and look for URLs containing ? and utm_ or gclid.

  3. Inspect one tagged URL

    Paste a tagged URL into the URL Inspection tool. Compare 'User-declared canonical' with 'Google-selected canonical'.

  4. View the page source

    Open a tagged URL, view source and search for rel="canonical". It should be present, appear once in the head, and point to the clean URL without parameters.

  5. Crawl your own site

    Run a crawler such as Screaming Frog and look for internal links that contain utm_ parameters. Internal links should never be tagged.

How to fix it

The core fix is a self-referencing canonical: every page declares its own clean URL as the canonical, so the tagged version tells Google to use the clean one. Do not block parameter URLs in robots.txt: Google then cannot see the canonical tag on them.

Canonical in the head of /pricing (also served on /pricing?utm_source=newsletter)html
<link rel="canonical" href="https://www.example.com/pricing" />
Set clean canonicals by platform
  1. Use an SEO plugin

    Yoast SEO, Rank Math and similar plugins output a canonical on every page by default and strip query strings. Check that it is on in the plugin settings.

  2. Check your theme

    If the source shows two canonical tags, one is from the theme. Remove it or disable the plugin's output, so only one remains.

  3. Fix internal links

    In menus, widgets and posts, replace any link containing utm_ with the clean URL.

Custom PHP: canonical without the query stringphp
<?php
$path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$canonical = 'https://www.example.com' . $path;
?>
<link rel="canonical" href="<?php echo htmlspecialchars($canonical); ?>" />
Canonical on a tagged URL

Before

  • No canonical, or canonical copies the full tagged URL
  • Tagged URLs appear in site: searches
  • Search Console lists duplicates

After

  • Canonical always points to the clean URL
  • Only the clean URL stays in results
  • Campaign tracking still works from the live URL

How to confirm it's fixed

Verify the fix
  1. Test a tagged URL by hand

    Add ?utm_source=test to three key pages. View source and confirm one canonical in the head pointing to the clean URL.

  2. Use URL Inspection

    Inspect a tagged URL in Search Console and click Test live URL to see the canonical Google reads.

  3. Wait and re-check

    Google needs time to recrawl. Re-run the site:inurl: searches after a few weeks. Old tagged URLs should drop out gradually.

How to prevent it happening again

Prevention checklist
  • Use self-referencing canonicals in the page template, not page by page.
  • Never use UTM parameters on internal links.
  • Test a tagged URL after theme, plugin or migration changes.
  • Re-run the site:inurl:utm_ search each quarter.
  • Watch the 'Duplicate without user-selected canonical' report in Search Console.
  • Keep redirects from stripping parameters if you need campaign data; see related redirect issues.

How FunnelGuard handles this

FunnelGuard does not check this yet. Spotting tagged URLs in Google's index is a possible future check, but today it is not part of the product.

What FunnelGuard does cover nearby: a robot visitor runs your real customer journeys on a schedule, such as lead forms, checkouts and booking buttons, and checks that the tracking hits reach GA4, Google Ads, Meta and other platforms. Its test visits are marked with utm_source=funnelguard and fg_test=1. A failure is re-checked from a second region before one alert goes out.

To watch for this issue today, use the manual steps above: a quarterly site:yourdomain.com inurl:utm_source search, the Search Console Pages report, and a crawler run that flags canonicals containing a query string. FunnelGuard has a Free plan (1 site, 2 journeys, daily checks, no card) and a free read-only website audit.

Questions people ask

Why are my UTM URLs showing up in Google search results?

Google found a tagged link, from an email, a social post, another site or one of your own pages, and indexed it as a separate URL. This happens when the page has no canonical, or the canonical repeats the tagged URL. Add a self-referencing canonical that points to the clean URL.

Do UTM parameters cause duplicate content?

Technically yes, because the same content is reachable at several URLs. In practice Google often merges them, but it may pick the tagged version. A canonical tag removes the doubt.

How do I stop Google indexing URLs with gclid?

Make sure every page has a rel=canonical pointing to the URL without gclid. Google Ads auto-tagging keeps adding gclid to the landing page URL, which is fine as long as the canonical is clean. Do not block those URLs in robots.txt.

Should I use noindex or a canonical for UTM URLs?

Use a canonical. A noindex on a tagged URL can be copied to the clean page if both share a template, which would remove the page from search. A canonical points all signals to the clean address.

Will a canonical tag break my UTM tracking in GA4?

No. GA4 and tag managers read the parameters from the URL the visitor actually loaded, not from the canonical tag. Tracking continues as before.

How do I remove UTM URLs already in Google's index?

Fix the canonical first, then wait for Google to recrawl them. They usually drop out over time. For a few urgent URLs, you can use the Removals tool in Search Console, but it is temporary and does not replace the fix.

Should I block utm_ parameters in robots.txt?

No. If Google cannot crawl the tagged URL, it cannot read the canonical on it, and the bare URL may stay indexed. Let it crawl and rely on the canonical.

Does FunnelGuard detect UTM duplicate URLs?

Not yet. It is a possible future check. FunnelGuard currently checks funnel steps, tracking hits and test leads, so use Search Console and a site: search to watch for this issue.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.