Taking Advantage of the NOSCRIPT tag when using AdSense (or other) Ads
Reading this post over at JohnTP.com inspired to me write about another method you can use to take full advantage of your advertising space.
John writes about how you can create your own alternate advertisements to be displayed in the event Google is unable to match any AdSense ads to your website, but you can take this one step further to cover browsers without JavaScript or for search engine optimization.
To do this you’ll need to make use of the NOSCRIPT HTML tag. HTML that is between beginning and ending NOSCRIPT tags is only shown to browsers that do not have JavaScript enabled, including search engines.
Below is some sample NOSCRIPT code that you can place after each AdSense block that will display an IFRAME with similar dimensions to the square AdSense blocks, but instead of having AdSense ads inside it’ll have whatever ad the AD_URL points to.
<noscript>
<iframe width="300" height="300" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" src="AD_URL">
</iframe>
</noscript>
For search engine optimization you can use NOSCRIPT code similar to the following:
<noscript>
<a href="AFFILIATE_LINK">This is a link to an affiliate product</a>
</noscript>
This code will create a simple link to an affiliate product that will help your SEO (especially if the affiliate product is related to what’s on your page).
One thing to note: I do not suggest you fill this type of code with keyword spam, as this will only hurt you in the long run. Search engines will find out and ban your site, so don’t do it.
Advanced users can use the IFRAME example to create a PHP script (or other dynamic script) to randomly show an advertisement so that users without JavaScript don’t see the same thing over and over again. This is the method I personally use and it works out well.
Although a majority of browsers on the web have JavaScript enabled I still encourage you to use these techniques to make the most out of your advertising space.
Tags: adsense, noscript, alternate advertisements
If you enjoyed this post, get free updates by email or RSS.

























Checkout These Related Posts
4 Comments so far »
Rekzai said
on February 28 2007 @ 12:30 am
Very nice, thanks a lot for this, will definitely be implementing this into my site soon ..
Halim-Belajar SEO said
on July 10 2008 @ 3:25 am
Sweet! That helped out a lot!!!
used tires said
on January 18 2010 @ 5:29 am
Thats cool, but do you know If Google is ok with it?
Till then,
Jean
Scrap Gold said
on January 19 2010 @ 9:11 pm
I did not know.thanks
Comment RSS · TrackBack URI
Leave a comment
Pingbacks/Trackbacks