How To Automatically Link Blog Post to Specific Keyword in Blogger

How To Automatically Link Blog

Post to Specific Keyword in

Blogger

Creating automatic anchor links

to other web pages on

Wordpress hosted blog is quite

simple and easy with the use of

plugins using relevant keywords.

On blogger blog, we manually

create internal links to our

previous webpages using

relevant keywords or key-

phrases. But if you prefer to

automatically create internal links

to relevant webpages using a

particular keyword, there is a

script to help you do that.

Here, i will show you how to

implement this script on your

blogger blog so you don't need

to be creating internal links

manually again. This tricks will

help those who blog with their

mobile phones and don't have

the opportunity to create anchor

links to other relevant post

using their mobile phones.

Creating internal links in your

blog post also helps to increase

your website organic traffic

because it makes Google bots

crawl and index your webpages

faster and easily which help in

ranking. It also help your visitors

to navigate to other webpages

on your blog which helps to

reduce bounce rate %. So

without much ado, let's move

straight to the point.

How To Automatically Link Your

Blog Post To Specific Keyword in

Blogger Blog.

Here you will have to choose a

particular keyword you are

targeting and a post that relates

to that keyword. Include them in

these javascript code below and

paste it in your blogger html. All

keywords found on your

webpages that are similar to the

one added in this script, it will

create a link to the post included

in your script.

For example, If i include a

keyword "Traffic" in the script

and the webpage i want this

script to create anchor link to is

http://

www.cyracksinternetbiz.com/201

2/02/top-15-website-traffic-

generating-tips.html
. After

adding the script in my template

code, all webpages with the

keywords " Traffic" will be link to

that webpage. You DIGG?

So let's get started.

1. In your Blogger Dashboard,

click on Template then click Edit

HTML.

2. Press Ctrl + F and search for </

body> tag.

3. Then copy the code below and

paste above it.

<script src='//

ajax.googleapis.com/ajax/libs/

jquery/1.10.2/jquery.min.js'/
>

<script type="text/

javascript">function autoLink(){

this.keywdHref = new Object();

this.add = function(keyword,

href){

if(keyword.substr(0,1) !=

&quot;&quot;){keyword = &quot;

&quot; +keyword;}

this.keywdHref[keyword] = href;

}

this.createAnchor = function(){

var objs

=document.getElementsByTagNa

me(&quot;div&quot;);

for(var i=0; i&lt;objs.length; i++){

var obj = objs[i];

if(obj.className.indexOf

(&quot;post-body&quot;)&gt;-1){

var content = obj.innerHTML;

for(var keyword in

this.keywdHref){

var href = this.keywdHref

[keyword];

var newstr =content.replace

(keyword, &quot;&lt;a href=&#

39;&quot;+href+&quot;&#

39;&gt;&quot;+keyword

+&quot;&lt;/

a&gt;&quot;, &quot;gi&quot;);

obj.innerHTML = newstr;

content = newstr;

}

}

}

}

this.startScript = function(){

var onLoad = window.onload;

window.onload = function(){

if(onLoad){onLoad();}

setTimeout

(&quot;f.createAnchor()&quot;,

100);

}

}

}

</script>

<script type="text/javascript">

var f = new autoLink();

f.add(&quot;KEYWORD

&quot;,&quot; http://

www.cyracksinternetbiz.com/

&quot;
);

f.startScript();

</script>

4. Now replace the text in Blue

with your Keyword.

5. Also replace the Red text with

your blog post URL not

homepage. Take note.

6. Save template when done and

refresh your blog. That's all.

7. Okay now check any of your

post that contains that Keyword

and you will see that an anchor

link has been created linking to

the post you included it's URL in

the script.

Remember This script only allows

one keyword

Comments

Popular posts from this blog

How to effectively increase your affiliate sales and earnings through article marketing

What Is mmm And How To Register For mmm

TRUE STORY: WOMAN BEHEADED IN BADAGRY