Ok, a few days have passed and the code is confirmed as working.
However, as previously stated all URLs resolve to eBay US (even if it's a .co.uk or .de link. Therefore, only clicks (and subsequent purchases) by those in the US are registering and generating commission on the eBay partner Program.
Is there any way at all that the code can be modified to resolve to the clicker's default eBay location and thus generate commission?
This isn't a whinge; this is a superb mod but it could be so much better if the above was possible.
However, as previously stated all URLs resolve to eBay US (even if it's a .co.uk or .de link. Therefore, only clicks (and subsequent purchases) by those in the US are registering and generating commission on the eBay partner Program.
I don`t have a solution for a dynamic - location aware - rewrite but here`s my changed code for the german program (warning, this has my affiliate ID hardcoded, please replace it with the config-var!):
PHP Code:
function rewrite_ebay($text = '')
{
if (!$text)
{
return $text;
}
foreach ($parsed AS $key => $parsie)
{
if (!$parsie['host'] OR !preg_match('/(.*)ebay\.[a-z0-9]+/i', $parsie['host']) OR preg_match('/partners\.webmasterplan\.com/i', $parsie['host']))
{
unset($links[$key]);
continue;
}
}
^ Ok, I'm assuming a multi-national code isn't possible. Even a paid job?
What about one which will recognise the original URL typed in the forum? Therefore ebay.co.uk would register as a UK click/sale, ebay.fr French, ebay.de German etc etc.
Thank you for contacting us regarding your question on what you could do so that clicks by users from other countries would register clicks and revenue.
I would like to inform you that program-specific links only track actions for the corresponding site (i.e., eBay US links track actions on eBay.com).
If affiliates have visitors from different countries, consider using our Geotargeted links or creatives, which will automatically track for relevant programs.
I hope this information answers your question. Thank you for using eBay.
Kind regards,
eBay Partner Network Support
Geotargetted links won't work in my case because people just cut and paste the URL from ebay (and it's usually either US or UK links they post).
I accept though that geo-targetted URL conversions may be impossible but it must be possible to recognise what people have typed (or cut n' pasted) on the forum, no?
A couple of days ago eBay came out in their blog saying that the URL's in their links needed to be encoded. Previously their own affiliate link creator was not doing this. (it appears to be fixed and is encoding now)
Does this mod do this currently? I'm just wondering if we're basing everything on how eBay was previously telling us to do it, which has now changed.
My sales and commissions went down about 75% when I switched to the new eBay system, so for now I've switch back to CJ, at least until the end of the month.
2. Make sure you ‘url encode’ the eBay destination url (after mpre= ) and if you are using the customid and you have any special characters within it, this will need to be url encoded too.