// you’re reading...

Affiliates

Stop Displaying Firefox ads to FF users

Im a huge proponent of not only writing stuff that my audience will find useful but also only advertising products my audience has a need for. One of the ads too many people display to the wrong crowd is firefox referalls. Its not a matter of too many sites advertise Firefox as its a wonderful browser but the fact that I see all these “use firefox ads” while using Firefox. It is so unbelievablely easy to fix this problem that you have no excuse not to use this tip.

How do you only display to Internet Explorer users?

All you need to do is use an <!- -[if IE]>/<![endif]- -> statement where you want the ad to display and place your FF ad in between the statement.

Heres the one I use for the header of this site.

<!- -[if IE]>
<div class=”block”>
<script type=”text/javascript”><!- -
google_ad_client = “pub-ID”;
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = “468×60_as_rimg”;
google_cpa_choice = “CAEQ2YuYhAIQABoIeXs4k3rVGB0o6bb3cyjptvdz”;
//- -></script>
<script type=”text/javascript” src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>
</div><![endif]- ->

It really is that simple, If you use Firefox trust me there is an ad in the header but if you dont believe me keep reading.

How can I check what my site in multiple browsers/OS’s?

You could run all the variations but I prefer to use BrowserShots.org, They allow you to test different OS’s, Browsers, Resolutions, Flash, javascript,java and colordepth.

Heres what Digitalorder looks like on all the different screens, look at request group 5.

NOTE: WP morphed my - - into –, so I had to put spaces to prevent that, be sure to remove them if you copy and paste.
I am very interested in how you use this tip, and if you have your own related tip, feel free to leave a comment.

Discussion

6 comments for “Stop Displaying Firefox ads to FF users”

  1. I like using firefox myself, but I think the use of ad blockers is likely hurting the blog revenue streams of many…I probably wouldn’t advertise firefox related products…even though I use it myself lol
    -Raymond (MONEY BLUE BOOK)

    Posted by MONEY BLUE BOOK | August 31, 2007, 11:57 pm
  2. I didnt think about it that way, though most of the ads here wouldnt be blocked by adblocker so its not that big of deal.

    Posted by Jacob | September 1, 2007, 7:30 am
  3. Unlike most of the people who support the spread of firefox, a lot of webmasters put it on their page for the sole purpose of making money.

    If it were a perfect world, it would be using your system.

    Posted by Word Hugger | September 1, 2007, 7:48 pm
  4. I must be missing something because I have tried this and cannot get it to work. I use Firefox and my wife use IE so I switched back and forth after adding the code and don’t see any changes.
    I know that I am in the right place because I put the endif in the wrong place and really messed up the ad.
    I am just waiting for that duh! moment where I realize what I am doing wrong.

    Posted by PayDayPatch | September 2, 2007, 2:58 pm
  5. @paydaypatch: for some reason WP turned my double dash’s into single ones, so if you go back and replace the singles with doubles it should work, sorry about that.

    Posted by Jacob | September 2, 2007, 3:32 pm
  6. Well this is something to think about. I never considered doing this. I don’t use FF ads, but this is a pretty useful bit of knowledge.

    Posted by Angel | September 3, 2007, 10:30 pm

Post a comment