How To Display Firefox Referral Ads Only To Non-Firefox Users

Status
Not open for further replies.

Osiris

Golden Master
Messages
36,817
Location
Kentucky
I've been running this site for around 9 months now, and although I didn't start running it to make money it is actually generating enough money now to pay for a few nights out a month. I decided today to see if I could find ways to improve the revenue generation, without ruining the user experience.
I noted that around 60% of my readers are still using Internet Explorer and not Firefox, so I decided to look for a way to promote Google Adsesne Firefox Referrals to non-Firefox readers only, so that they can benefit from the best browser out there, whilst I make up to $1 per user that I convert and educate.
Eventually I found a very simple way to do this. To only show a Firefox referral ad to non-Firefox users just add this code to your site where you want you Firefox referral ad to be displayed:
<?php if ( !strpos($_SERVER['HTTP_USER_AGENT'], 'Gecko') ) { ?>
<!-- Put the code you want to display to non-firefox users here -->
<?php } ?>
Once you've done this, your Firefox referral ad will be displayed to ALL users visiting your site who are not using Firefox.

How To Display Firefox Referral Ads Only To Non-Firefox Users | One Tip A Day
 
Status
Not open for further replies.
Back
Top Bottom