
{
    "version": "1.5.0",
    "item": {
        "id": "blog_v90",
        "title": "Canonical Tags Explained for Developers: Code and Issues",
        "url": "https://www.dbeta.co.uk/blog/canonical-tags-explained-for-developers/",
        "summary": "Canonical tags are part of URL governance, not surface SEO housekeeping. Developers need correct HTML implementation, consistent handling of duplicate URLs and parameters, and care with pagination, hreflang and JavaScript rendering, then verification in Search Console.",
        "category": "Technical Infrastructure",
        "image": "https://dbeta.b-cdn.net/blog/canonical-tags-developers-url-governance.jpg",
        "author": {
            "name": "Donatas Tranauskis",
            "url": "https://www.donatastranauskis.com"
        },
        "published_at": "2026-02-22T20:00:00+00:00",
        "updated_at": "2026-04-15T20:24:45+01:00",
        "faqs": [
            {
                "question": "What is a canonical tag?",
                "answer": "A canonical tag is a link element placed in the head of a page to indicate the preferred URL when duplicate or near-duplicate versions of the same content exist."
            },
            {
                "question": "Is a canonical tag a directive?",
                "answer": "No. A canonical tag is a strong hint rather than a directive. Search engines may still choose a different canonical if other signals on the site conflict with it."
            },
            {
                "question": "Should page 2 of a paginated archive canonicalise to page 1?",
                "answer": "Usually no. If page 2 contains content that is not a duplicate of page 1, canonicalising it to page 1 can cause that content to be ignored."
            },
            {
                "question": "Can I use a canonical tag instead of a 301 redirect?",
                "answer": "Not as a direct substitute. If a URL should no longer exist for users, a 301 redirect is normally the better option. A canonical tag keeps the current URL live while signalling a preferred version to search engines."
            },
            {
                "question": "Do UTM parameters create duplicate URLs?",
                "answer": "Yes. Tracking parameters create technically separate URLs, which is why canonical logic usually needs to strip temporary tracking parameters and reinforce the clean preferred URL."
            }
        ],
        "sources": [
            {
                "label": "IETF - RFC 6596 (The Canonical Link Relation)",
                "url": "https://datatracker.ietf.org/doc/html/rfc6596"
            },
            {
                "label": "Google Search Central - Consolidate duplicate URLs",
                "url": "https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls"
            },
            {
                "label": "Google Search Central - Common mistakes with rel=canonical",
                "url": "https://developers.google.com/search/blog/2013/04/5-common-mistakes-with-relcanonical"
            },
            {
                "label": "Google Search Central - Localized versions (hreflang)",
                "url": "https://developers.google.com/search/docs/specialty/international/localized-versions"
            },
            {
                "label": "Google Search Central - JavaScript SEO basics",
                "url": "https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics"
            },
            {
                "label": "Google Search Console Help - URL Inspection Tool",
                "url": "https://support.google.com/webmasters/answer/9012289?hl=en"
            }
        ]
    }
}