URLs · Query strings

Query string contains tracking parameters

This page links to itself with utm campaign parameters, which creates duplicate addresses and overwrites analytics source data.

How this page is built

The link below points to this page with ?utm_source=newsletter&utm_medium=email&utm_campaign=launch added to its address. The server ignores the query string and returns this same page.

See this page with campaign tracking.

Campaign parameters are meant for links from emails, adverts and other sites, not for links between pages of the same site.

The canonical on both versions points to this page's address without the query string.

Why it matters

Tracking parameters on internal links create a second address for the page, which search engines may crawl and index as a duplicate.

They also break analytics: clicking an internal link with utm parameters starts a new session and replaces the visitor’s real source, such as organic search, with the made-up campaign.

How to check it

Search a crawl export for internal links that contain utm_ or other tracking parameters, and note the pages they come from. Analytics reports with unexpected internal campaigns point to the same problem.

How to fix it

Remove tracking parameters from internal links. To measure clicks inside the site, use analytics events instead of campaign parameters.

Back to all tests