Canonical URL
An HTML element that tells search engines which version of a page is the primary one, preventing duplicate content issues.
A canonical URL is specified using a <link rel="canonical"> tag in the HTML head of a page. It tells search engines which version of a page is the "official" one when multiple URLs serve the same or substantially similar content. This prevents duplicate content issues that can dilute ranking signals.
Why it matters: duplicate content is more common than most people realize. A single page might be accessible via multiple URLs: with and without www, with and without trailing slashes, with URL parameters (sort order, filters, tracking parameters), and through HTTP and HTTPS versions. E-commerce sites are especially prone to this when product pages are reachable through multiple category paths. Without canonical tags, search engines must guess which version to index, and they might split ranking authority across duplicates or index the wrong one.
How to implement: add a <link rel="canonical" href="https://example.com/preferred-url"> to the <head> of every page. The canonical URL should be the absolute URL of the preferred version. Self-referencing canonicals (where a page points to itself) are a best practice because they preemptively handle any parameter variations. For paginated content (page 1, page 2, etc.), each page should canonical to itself. For syndicated content published on third-party sites, the third-party version should canonical back to your original.
In practice: Next.js and most modern frameworks let you set canonical URLs through metadata configuration. Content management systems like WordPress handle self-referencing canonicals automatically through SEO plugins like Yoast or RankMath. For e-commerce platforms, Shopify handles basic canonicals but may need customization for filtered/sorted product listing pages.
Common mistakes: setting canonicals to the wrong URL (pointing to a 404 or redirect target). Having conflicting signals where the canonical says one thing but the sitemap lists a different URL. Canonicalizing paginated pages to page 1 (which tells Google to ignore pages 2+). Not using canonicals on parameter-heavy URLs from ad campaigns, which creates hundreds of duplicate indexed pages.
Practical example: an e-commerce site discovers that Google has indexed 12,000 pages, but they only have 3,000 unique products. The excess comes from URL parameters like ?sort=price and ?color=blue. They implement canonical tags on all product and category pages pointing to the clean, parameter-free versions. Over two months, Google de-indexes the duplicates, and organic traffic to product pages increases 18% as ranking authority consolidates.
Related terms
A set of Google metrics (LCP, INP, CLS) that measure real-world page load speed, interactivity, and visual stability.
The number of pages a search engine bot will crawl on your site within a given timeframe. Larger sites must manage this carefully.
Structured data added to HTML that helps search engines understand page content and display rich results.
Search Engine Results Page. The page displayed by a search engine in response to a query.
Put these concepts into action
Oscom connects your SEO, content, ads, and analytics into one system. Stop context-switching between tools.
Start free trial