Why is Google indexing my ?utm_ and ?sort= versions?

Short answer

Tracking and sorting parameters like ?utm_source=, ?sort=price, or ?sessionid= create new URLs for the same page — and Google may index them as separate pages, splitting your ranking signals. Keep the clean URL as the canonical version, and make sure every parameterised version points back to it with a self-referencing canonical on the main page.

Why it matters

To a person, /shoes/red and /shoes/red?utm_source=newsletter are the same page — one just arrived from an email. To Google, they are two different URLs, and every URL is a candidate for indexing. Add sorting, filters, and session IDs, and one product can quietly become a dozen near-identical pages.

That matters because every copy splits the signals that should be going to one page: links point at different versions, Google crawls the same content several times over, and the version that ends up ranking may be the one with the tracking code in it — not the clean one you’d ever link to or share.

A real example

The same dress, twelve URLs

A dress is listed at /dresses/blue. Over a month it picks up versions: ?utm_source=instagram from a post, ?sort=price from a shopper sorting the list, ?sessionid=abc123 from the shop’s own system, and a few combinations of all three. Google finds several of them, indexes a couple, and the clean URL — the one on the sitemap, the one in the navigation — has to compete with its own clones.

The fix isn’t to delete the parameters; the shop needs them to know where shoppers came from and how they sorted. The fix is to tell Google, on every version, which one is the real page: a canonical on the clean URL pointing at itself, and the same canonical on every parameterised version pointing back to it.

<!-- on /dresses/blue and on every ?utm_ / ?sort= / ?sessionid= version -->
<link rel="canonical" href="https://example.com/dresses/blue" />

What should the canonical setup look like?

The clean page carries a self-referencing canonical — it points at itself, which removes any doubt about which URL you mean. Every parameterised version carries the same tag, pointing at the clean URL, not at itself. Your sitemap and internal links should only ever use the clean version; the parameter URLs exist for tracking and sorting, not for Google to discover on their own.

One thing not to do: block the parameter URLs in robots.txt. A blocked page can’t be fetched, so Google can’t see the canonical on it — and if other sites link to a parameter URL, it can still appear in results as a bare address. Let Google crawl it, and let the canonical do the work.

How to check it

  • Search Google for site:yourdomain.com inurl:utm_ — if parameter URLs show up, check their canonical tags
  • Every parameterised version should canonicalise to the clean URL; the clean page canonicalises to itself
  • In Search Console, review the ‘Duplicate without user-selected canonical’ report and fix the worst offenders first
  • Keep parameter URLs out of your sitemap and internal links — only the clean version goes in
Common mistake

Blocking parameter URLs in robots.txt to ‘hide’ them from Google. A blocked page can’t be fetched, so Google never sees its canonical tag — and it can still show up in results as a bare URL with no description.

← Back to all guides