Tag: Ebay EPN

Ebay EPN Geo-Targeting PHP Script

Big development day yesterday, I took some time to re-write some of the code on my EPN templates, giving the URL’s a much SEO friendlier structure. Before I was using the PHP base64 encoding function to mask the redirect URL’s, but doing some gave me this extremely long and ugly URL. I’m not sure if the previous technique was hurting me or not. I assumed so because they didn’t look like anything anyone would want to bookmark.
I also noticed that one of my domains was picking up some traffic from counties other then the U.S. So I added a Geo Targeting script to flip out the Ebay EPN rover code, don’t quote me on this terminology I’m not certain if Ebay calls these code “rover codes” or not. I read on thier blog that an affiliate will not get credit if this code does not correspond to the correct country, so there you go, I’m covered now. You can read more about the Geo Targeting and rover codes here.
http:/www.ebaypartnernetworkblog.com/en/news/implement-geo-targeting-today
I’m also adding the actually function that I’m currently using so please feel free to use it, mash it up or do whatever with it. But I should mention that my sites are fairly new and do not generate that much traffic as of yet. So I can not confirm how reliable the Geo IP Look Up API maybe on larger trafficked sites. You may want to look into adding a more robust solution. And lastly I added a new domain today handheldbaglessvacuums.com yea it’s probably the longest domain I own. I thought Cordless Vacuums, Bagless Vacuums and Vacuums Cleaners Would be some great keywords to target for this niche. Wish me luck.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* Implement Geo-Targeting Today */
/* http://www.ebaypartnernetworkblog.com/en/news/implement-geo-targeting-today/ */
/*
eBay Program / Placement ID
eBay US / 711-53200-19255-0
eBay AU / 705-53470-19255-0
eBay BE / 1553-53471-19255-0
eBay CA / 706-53473-19255-0
eBay ES / 1185-53479-19255-0
eBay FR / 709-53476-19255-0
eBay IT / 724-53478-19255-0
eBay UK / 710-53481-19255-0
eBay IE / 5282-53468-19255-0
eBay NL / 1346-53482-19255-0
eBay DE / 707-53477-19255-0
eBay AT / 5221-53469-19255-0
eBay CH / 5222-53480-19255-0
*/

function EPN_Program($countryID){
switch ($countryID) {
case US:
$ePNlink='711-53200-19255-0';
break;
case AU:
$ePNlink='705-53470-19255-0';
break;
case BE:
$ePNlink='1553-53471-19255-0';
break;
case CA:
$ePNlink='706-53473-19255-0';
break;
case ES:
$ePNlink='1185-53479-19255-0';
break;
case FR:
$ePNlink='709-53476-19255-0';
break;
case IT:
$ePNlink='724-53478-19255-0';
break;
case UK:
$ePNlink='710-53481-19255-0';
break;
case IE:
$ePNlink='5282-53468-19255-0';
break;
case NL:
$ePNlink='1346-53482-19255-0';
break;
case DE:
$ePNlink='707-53477-19255-0';
break;
case AT:
$ePNlink='5221-53469-19255-0';
break;
case CH:
$ePNlink='5222-53480-19255-0';
break;
default:
$ePNlink='711-53200-19255-0';
}
return $ePNlink;
}
$ip=$_SERVER['REMOTE_ADDR'];
$countryID = file_get_contents('http://api.hostip.info/country.php?ip='.$ip);
$ePNlink=EPN_Program($countryID);
?>

Ebays EPN Reporting

This is quite small to some but it’s big news to me. I have been a part of Ebay’s EPN affiliate networks for sometime now and have recently started taking a closer look at their report center. I’m kind of amazed how far they allow you to drill down. For example in the previous year the category I sold more merchandise in was the “Cameras & Photo” category and so far this year it’s the “Home & Garden” category, go figure. Nothing to go screaming off the roof tops about but it’s still a bit interesting. I haven’t made any big website changes for this shift to happen so I’m taking this information as a clear indication of when the season changes. So moving forward I think this data could and should be considered when developing future marketing strategies. If I’m losing some of you guys I apologize, but basically what I’m trying to say is there is no need to place all of your focus on every website you own at all times. But why not just focus on a smaller set of websites when they are about to go into season. Just a thought. I’m sure some of you big dogs are already doing this. 🙂

Copyright © 2024 Joseph Tinsley

Theme by Anders NorenUp ↑