Visit homepage

HTML canonical link

  • Planted:

I was talking to a coworker today who mentioned that he wrote some blog posts for LogRocket. He also published each post to his personal blog, like this one on Web Workers. To allot proper credit and SEO preference to LogRocket, he adds a canonical link in the HTML head of each post, like this:


From the MDN docs:


Valid for <link>, it defines the preferred URL for the current document, which helps search engines reduce duplicate content.

The Google Search developer docs go deeper on the why and how of canonical links. Another interesting use case is to simplify tracking metrics for duplicate URLs on the same website.

And btw, Danny’s blog is worth a follow!


Respond with your thoughts, feedback, corrections, or anything else you’d like to share. Leave your email if you’d like a reply. Thanks for reading.