HackingUniversity - Hacks . Tricks . How-To's

28 August 2013

SEO Optimize your Blogger Blog by Adding this SEO Script

blogger-seo-optimizeI have tried to post many articles on SEO optimization's for making your blog much more search friendly and visitor's attracting magnet, well recently I posted on how you can optimize your Post Titles for higher search results and even how you can check your post in 5 steps for most optimized posting. But today I found another script that easy to understand and install in your blogger blog and it will simply boost a lot of things, due to its friendly nature it will surely get you more visitors, it will decrease your blog's bounce rate and it will provide you with more higher search results.

Well now exactly its nothing like something really special but it's a combination of three scripts all together that's external link's new tab opening script, links no-following script and automatic image title and alt tags script. So yes using this script and following above posted tutorials you would surely find a difference in your earlier and optimized stats. So now just follow below steps to see how to add this script to your blogger blog.

  1. Open Blogger > Template > Edit HTML.
  2. Press Ctrl + F & search for </head> tag & paste below code above it.

    <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/><script type='text/javascript'>//<![CDATA[
    jQuery('a').each(function(){// Let's make external links open in a new tab. var href=jQuery(this).attr('href');if (typeof href !='undefined' && href !="" && (href.indexOf('http://') !=-1 || href.indexOf('https://') !=-1) && href.indexOf(window.location.hostname)==-1){jQuery(this).attr("target", "_blank");}});//]]></script><script type='text/javascript'>//<![CDATA[
    jQuery('a').each(function(){// Let's make external links nofollow. var href=jQuery(this).attr('href');if (typeof href !='undefined' && href !="" && (href.indexOf('http://') !=-1 || href.indexOf('https://') !=-1) && href.indexOf(window.location.hostname)==-1){jQuery(this).attr("rel", "nofollow");}});//]]></script><script type='text/javascript'>//<![CDATA[
    $(document).ready(function(){$('img').each(function(){var $img=$(this);var filename=$img.attr('src') $img.attr('alt', filename.substring((filename.lastIndexOf('/'))+1, filename.lastIndexOf('.')));});});//]]></script>

  3. Now you can remove the red line in above code if you already have jQuery Script pasted in your blog template.
  4. So Now just hit Save Template and refresh your blog, as your blog is now optimized with this awesome SEO optimized script.

So now your blog is optimized with automatic external links No-Following option, automatic image titling and alt tagging and opening all external links in new tab, so this is surely gonna bring some new visitors and optimize your overall experience.