Canonical URL
A canonical URL is an HTML tag that tells search engines which version of a page is the official one. It solves duplicate content problems and makes sure your SEO strength is consolidated on the right URL.
What is a canonical URL?
A canonical tag is an HTML element in the page's <head> that looks like this:
<link rel="canonical" href="https://dinshop.dk/produkt/roed-laedertaske" />
It tells Google: "This URL is the authoritative version of this page." If the same content exists on several URLs, the canonical tag consolidates all SEO value (link equity) on the one URL you specify.
Why is a canonical URL important?
Duplicate content is a common problem in online stores. The same product can often be reached via:
/produkt/roed-laedertaske/kategori/tasker/roed-laedertaske/produkt/roed-laedertaske?farve=roed/produkt/roed-laedertaske?utm_source=facebook
Without canonical tags, Google may treat these as separate pages with identical content, which dilutes your SEO strength. With a canonical tag, you state exactly which URL should rank.
When should you use canonical tags?
- URL parameters: Filtering, sorting, and tracking parameters create many URL variations of the same page.
- Product variants: When color or size variants have their own URLs but nearly identical content.
- Pagination: Pages 2, 3, and so on of a category listing may have overlapping products.
- HTTP vs. HTTPS: The canonical tag makes sure Google indexes the HTTPS version.
- With and without www: The canonical tag removes any doubt about which version is the right one.
Canonical vs. redirect
- Canonical: Both URLs work, but search engines know which one is the primary one. Visitors can still reach both.
- 301 redirect: One URL automatically sends the visitor on to the other. Use a redirect when the old URL should no longer exist.
Common mistakes
- Canonical pointing to a 404 page: Never point a canonical to a page that does not exist.
- Canonical pointing to a redirect: The canonical URL must be the final destination.
- Conflicting signals: Make sure the canonical tag, the sitemap, and internal links all point to the same URL.
- Missing self-referencing canonicals: Every page should have a canonical tag that points to itself, so Google is never in doubt.
Canonical URLs in Shoporama
Shoporama automatically adds canonical tags to all pages: products, categories, landing pages, and articles. For product variants, you can set a canonical_id that points to the main product, so variants with nearly identical content do not compete with each other in search results. URL parameters (filtering, sorting, tracking) are handled automatically, so the canonical tag always points to the clean URL.
How to do it in Shoporama
Guides that show the term in practice
Hreflang and multilingual stores in Shoporama
How Shoporama sets hreflang, x-default, and html lang for your countries, what happens to untranslated pages, and how...
SEO in Shoporama: a complete guide to the SEO features
A complete guide to the SEO features in Shoporama, from meta titles, meta descriptions, and the XML sitemap to...
How to set noindex on a page, product, or category
How to set noindex on products, categories, pages, landing pages, and blog posts in Shoporama, so they are not shown...
We know online marketing at Shoporama
We have worked with online marketing ourselves for decades. As the only e-commerce platform in Denmark, we have spoken several times at conferences such as Marketingcamp, SEOday, Shopcamp, Digital Marketing, E-commerce manageren, Ehandelsdagen, Web Analytics Wednesday, and many more.