All notes

Google showed a ?ref= link as a second home page, despite the canonical

SEOCanonical URLsGoogle Search ConsoleAnalytics

Don’t put tracking parameters on links between pages you control. The menu on every page of hrih.si linked to Rubric as https://rubric.hrih.si/?ref=hrih-nav, and from 26 to 30 October Google showed that tagged address in its results as if it were a second Rubric home page: 121 impressions and 2 clicks, at positions 6 to 17. Rubric’s page carried <link rel="canonical" href="https://rubric.hrih.si/"> the whole time.

What Search Console showed

The tagged URL appeared in the Pages report next to the clean one, and on three of those five days it had more impressions:

Day /?ref=hrih-nav /
26 Oct 4 35
27 Oct 35 16
28 Oct 24 14
29 Oct 36 33
30 Oct 22 267

To find URLs like this on your own property, filter the Search Analytics API by page:

{"startDate": "2026-10-20", "endDate": "2026-11-05", "dimensions": ["page"],
 "dimensionFilterGroups": [{"filters": [{"dimension": "page", "operator": "contains", "expression": "?ref="}]}]}

From 31 October the tagged URL was gone from the results, and URL Inspection now reports it as “Alternate page with proper canonical tag”, with the clean URL as Google’s choice. So Google sorted it out by itself after five days. For those five days, impressions and positions were split across two addresses for one page.

Why the canonical wasn’t enough at first

A canonical tag is one signal among several. Google’s guide to duplicate URLs lists redirects, rel="canonical" and sitemaps, and asks you to link to the canonical URL consistently. My menu did the opposite: every page of the site linked to the tagged address, and Rubric had gone live two days earlier, with few other links pointing at it.

The fix

On 3 November the menu, the home page’s Rubric card, the story links under it and the Rubric project page went back to clean URLs. Nothing about the attribution was lost:

  • Rubric’s analytics already credit those visits to hrih.si by their referrer.
  • On hrih.si, each link carries an Umami click event, which records where the click came from without touching the URL:
<a href="https://rubric.hrih.si/" data-umami-event="rubric-click" data-umami-event-placement="nav">Rubric</a>

The links in my emails keep their ?ref= tags. Search engines don’t crawl them, and visits from email usually arrive without a referrer, so the tag is the only way to tell where those visits came from.

The same goes for utm_ parameters: keep them for links on other people’s sites, in emails and in social posts. If your own pages link to a tagged URL, it can show up in search results.