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: , ,

If you enjoyed this post, get free updates by email or RSS.

Checkout These Related Posts

  • Will Google Reinstate My AdSense Account?
  • MyBlogLog Tracks Ad Clicks: Does This Matter?
  • Why Are You Not Using Kontera?
  • Are You Headed Towards a Path of Mastery…
  • My Websites’ Traffic: March 2007
  • 1 Comment so far »

    1. 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 ..

    2. Comment RSS · TrackBack URI

    Leave a comment

    Name: (Required)

    eMail: (Required)

    Website:

    Comment:

    Pingbacks/Trackbacks