
Recently when I deposited a cheque for $3509.18, my friend who was chatting with me by the bank machine almost had a heart attack. Earlier in the day I told him that before going for our daily coffee, I need to deposit a cheque from one of the affiliate networks I have been experimenting with. So today when I punched the numbers on the ATM machine, He could not believe that I actually made over $3000 dollars in a month.
Often keeping a secret to yourself is a blessing, but I don’t mind sharing the knowledge. I know when I let this out, a lot of people who are doing poorly on affiliate networks and are giving up on it, would quickly jump on the idea and perhaps get this banned somehow… but the Gurus of Affiliate Networks, have been utilizing this technique for eons now. Infact I am sure they are totally past this technique.
So, a few months ago, when I joined affiliate networks, I barely made any money. I invested about $100 on adwords and made $38 dollars. I was not happy. Bounce rate was high, conversion sucked and it was all very painful.
Since I am based in Canada, a lot of good converting ads are based in US. And most of the websites that I have does not cater to the US public (except this one which I hope to cater to an International Market). Anyways, most of my website users (I get close to a few million hits/month) were from europe/canada and I would get 10,000 clicks and most of them end up in “Smiley Central”. SUCKS !
So, finally I utilized a php code for all my websites to detect a User’s Geographic location through their IP and based on their location, I would show them the right ads.
Users from US will get only US serving ads and those from UK will get only UK RINGTONES
..lol
You like the idea… don’t you. Now comes the technical aspect of achieving the above:
<?php
/*
lets see if it pops out your Geographic Location
*/
include(”geoip.inc”); // include the geoip functions
$geofile = geoip_open(”GeoIP.dat”,GEOIP_STANDARD);
echo geoip_country_code_by_addr($geofile, $_SERVER['REMOTE_ADDR']);
echo ” — “;
echo geoip_country_name_by_addr($geofile, $_SERVER['REMOTE_ADDR']);
geoip_close($geofile);
?>
——————————————
Now upload this file and access it by mywebsite.com/hello.php and see if it identifies your location.
Now, for affiliate marketing purposes :
include(”geoip.inc”); // include the geoip functions
$geofile = geoip_open(”GeoIP.dat”,GEOIP_STANDARD); // open the geoip data file
$cc = geoip_country_code_by_addr($geofile, $_SERVER['REMOTE_ADDR']);
geoip_close($geofile); // close the data file
if($cc == “US”) {
/
echo ”
CODE FOR LOAN STUFF IN USA
“;
} // end if US
else {
// It’s a non-US visitor. Display Adsense ads.
echo ”
Affilaite code for Dating singles in whateva country
“;
} // end else
Above would not have been possible without the following two websites which I would like to credit them.
1. MaxMind.com
Related Posts:If you would like to make a comment, please fill out the form below.
That is soooooooooooooo smart … Gurr. I spend so much time on this affiliate thing and never made money. But i am going to try your code. Great Post. Thanks !!!