siteground
How To Add Canonical Link In Blogger

Canonical link is a link tag in the header of HTML document that tells search engines the preferred location of this url. Canonical link is an useful instruction for search engines to deal with duplicate content problems. If your site has identical or vastly similar content that’s accessible through multiple URLs, this format provides you with more control over the URL returned in search results. It also helps to make sure that properties such as link popularity are consolidated to your preferred version.

How does canonical link work?

Let’s take an example from Blogger. Image that your post has an URL like this:

http://name.blogspot.com/2010/05/test-post.html

When someone comments on this post, you’ll get an URL for the comment like this:

http://name.blogspot.com/2010/05/test-post.html?showComment=1274536664324#c2570377970603461164

These urls point to the same web page. So, search engines will recognize a duplication content case here. To prevent this, we can put a canonical link in the header of blog that tells search engines the preferred version of url is http://name.blogspot.com/2010/05/test-post.html. The link tag is simple like this:

<link rel="canonical" href="http://name.blogspot.com/2010/05/test-post.html" />

Google will understand that the duplicates all refer to the canonical URL: http://name.blogspot.com/2010/05/test-post.html. Additional URL properties, like PageRank and related signals, are transferred as well.

How to put canonical link in Blogger

Open your Blogger template file (or navigate to DashboardDesignHTML) and find this line:

<b:include data='blog' name='all-head-content'/>

If it’s found, that means your template supports canonical already (actually, Blogger does it automatically for you).

If the line is not found, then you have to add the link tag manually. Just add the following code before the </head> tag:

<link rel='canonical' expr:href='data:blog.url'/>

That’s all!

The canonical link is supported by major search engines: Google, Yahoo!, Bing and Ask. Using canonical link in right way is a good practice for improving SEO level of your blog.

37 Comments

  1. Hey there, You’ve done a great job. I’ll certainly digg it and personally suggest to my friends. I am sure they will be benefited from this website.

  2. Woah! I’m really digging the template/theme of this website. It’s simple, yet effective. A lot of times it’s hard to get that “perfect balance” between usability and visual appearance. I must say you have done a awesome job with this. In addition, the blog loads very quick for me on Firefox. Exceptional Blog!

  3. Heya i’m for the primary time here. I came across this board and I to find It truly helpful & it helped me out a lot. I hope to provide something again and aid others like you aided me.

  4. I almost never leave responses, but after reading a bunch of remarks on How To Add Canonical Link In Blogger – Deluxe Blog Tips.
    I do have some questions for you if you tend not to mind.
    Is it simply me or do some of the comments come across like
    they are coming from brain dead visitors? πŸ˜› And, if you are posting at additional social sites, I’d like to keep up with everything fresh you have to post. Would you list of all of your public pages like your linkedin profile, Facebook page or twitter feed?

  5. I never in a million years would’ve thought at things in that light. This will make my life much easier.

  6. Hi, I think your blog might be having browser compatibility issues.
    When I look at your blog in Firefox, it looks fine but
    when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up! Other then
    that, wonderful blog!

  7. Hey there would you mind letting me know which web host you’re working with? I’ve loaded your blog in 3 completely different browsers and I must say this blog loads a lot faster then most. Can you recommend a good web hosting provider at a fair price? Many thanks, I appreciate it!

    1. Hi, I’m using a dedicated server, so I can control 100% of website performance. But if you want a good web hosting with a good price, I highly recommend Bluehost. I’ve used Bluehost for years for another high traffic website, and it worked very fast. I love it because it’s optimized for WordPress. If you want to buy a hosting package at Bluehost, give me a thank by registering via my link. Thanks.

  8. Hello there! This blog post couldn’t be written much better! Looking through this post reminds me of my previous roommate! He continually kept talking about this. I most certainly will send this information to him. Fairly certain he’ll have a very good read. Thank you for sharing!

  9. Hi my family member! I wish to say that this article is
    amazing, great written and include almost all significant
    infos. I would like to look more posts like this .

  10. Hello, i read your blog occasionally and i own a similar one and i was just curious if you get a lot of spam comments?
    If so how do you prevent it, any plugin or anything you can recommend?
    I get so much lately it’s driving me crazy so any help is very much appreciated.

  11. hey there and thank you for your information Β– I have certainly
    picked up something new from right here. I did however expertise several technical
    points using this website, as I experienced to reload the web site lots of times previous to I could get it to load
    correctly. I had been wondering if your hosting is OK?

    Not that I’m complaining, but slow loading instances times will often affect your placement in google and could damage your high quality score if ads and marketing with Adwords. Well I’m adding this RSS to my email
    and can look out for much more of your respective exciting content.

    Make sure you update this again soon.

  12. magnificent issues altogether, you simply won a brand new reader.
    What would you recommend in regards to your publish that you made some days in the past?

    Any positive?

  13. I am really pleased to read this blog posts which carries lots
    of useful facts, thanks for providing these statistics.

  14. Wonderful goods from you, man. I’ve understand your stuff previous to and you are just too magnificent. I actually like what you’ve acquired here, really like what you’re saying and the way in which you say it. You make it entertaining and you still care for to keep it sensible. I can not wait to read much more from you. This is really a terrific site.

  15. Does your blog have a contact page? I’m having trouble locating it but, I’d like to send you an e-mail.
    I’ve got some suggestions for your blog you might be interested in hearing. Either way, great site and I look forward to seeing it improve over time.

  16. Hello there, just became alert to your blog through Google, and found that it’s truly informative. I’m gonna watch
    out for brussels. I’ll appreciate if you continue this in future. A lot of people will be benefited from your writing. Cheers!

  17. Hi, thanks a lot for the tips, and yes Blogger has now added the canonical tag automatically. I am still wondering about how to prevent Google from indexing Blogger mobile version, as Google Webmaster Tools still shows duplicate title caused by mobile version urls, though they havae canonical urls. I tried using robots.txt to prevent the indexing but it did not work at all. Thanks

  18. Thank you for giving us understanding. I’m a newbie and I only depend on what the templates already had. I’m reading meta tags and see what this canonical means and I’m glad I land on your article. My templates have ‘all-head-content’ tag, will it not cause problem if I add also the rel=’canonical’ tag? Thank you so much.

    1. You don’t need to do this if you have ‘all-head-content’ tag. This tag will output canonical tag AND a lot of other things. Use the method in the post if you don’t want to have many things in you ‘head’.

  19. Another style of this is to use 301 redirects. I’m quite sure this will fix duplication issue for mobile version of Blogger blog.

  20. Hello, I already added canonical tag on my blogspot, yet there’re still duplicate contents which are increasing whenever i check my webmaster tools. Any idea? Should i use 301 redirect instead?

  21. Help me !!!!!!! I want to replace canonical url already by blogspot to other https:// version of url.
    But Blog already has canonical url with http version just i want change to https://

  22. In my blogger template is already there but still my posts showing multiple links ….. How can i fix it . Also webmaster tools shows duplicate content as ?m=1 or ?m=0 …..

Leave a Reply