Wednesday 30 November 2016

How to apply different meta keywords for each page in your Blogger blog


Optimizing your website by targeting right keywords is the easiest way to drive organic traffic to your website. Targeting right meta keywords is not as easiest as you think. It requires more time and analysis.

Every page on your blogger website may have unique content and you may want to apply different keywords for different pages of your blogger website.For blogger, it’s tedious task as there is no specific functionality provided by blogger. You have to apply manual if-else-else if conditions to achieve so.

Here’s how you can do it.


Steps

(1) Go to blogger dashboard –> Template.

(2) Take back up of your template before applying any changes.

(3) Now go to blogger dashboard –> Template –> Edit HTML.


(4) Find the line ” <b:include data=’blog’ name=’all-head-content’/>“ in template. This line applies similar meta keywords, description to all of the blogger posts.

(5) Here we will tweak the template.

Replace the line,

——————————————————————————————-
<b:include data=’blog’ name=’all-head-content’/>
——————————————————————————————-
with,


——————————————————————————————-
<b:if cond=’data:blog.url == “page-url-1″‘>
<meta content=’description1′ name=’description’/>
<meta content=’keywords1’ name=’keywords’/>
<b:else/>

<b:if cond=’data:blog.url == “page-url-2″‘>
<meta content=’description2′ name=’description’/>
<meta content=’keywords2′ name=’keywords’/>
<b:else/>

<b:include data=’blog’ name=’all-head-content’/>
<meta content=’main keywords’ name=’keywords’/>
</b:if>
</b:if>

——————————————————————————————-


Code explanation :- here , it applies description1, keywords1 for page-url-1 and description2, keywords2 for page-url-2 . And for all other pages, it applies default keywords and description.

Let me show you example of my website where I have applied different description, keywords for 2 posts.


Inicong  Template


Results after applying the tweak,




Result for Page 1


Result for Page 2


Result for All Pages


I.e. You have to apply this for each and every post. So if there are 500 posts, you have to write 500 conditions here. It’s bit tedious but worth giving time to increase search engine (Organic) visits to your website.

No comments:

Post a Comment