is it possible to add a click ref to all links on a pricetapestry installation?
regards
What's the best way to do this when you are not using tracking ie jump?
cheers
Hi,
You can do exactly the same thing using the filters during import. In the example above, if you added a "Text After" filter to the Buy URL field, containing:
&clickref=1234
...and then import again, the links would all contain your tracking code as required. Of course you can use different filters for each feed depending on what that affiliate networks requires in their tracking parameters...
Cheers,
David.
Hi David
Is it possible to add a clickref to the jump page, but have a behaviour so that if THIS NETWORK then add THIS REF?
Cheers
---------
Jill
Hi Jill,
Sure - you can inspect the Buy URL to establish which network the click is going via and add the required parameters. In jump.php, look for the following code at line 14:
header("Location: ".$product["buy_url"]);
...and REPLACE with:
if (strpos($product["buy_url"],"awin")!==FALSE) // Affiliate Window
{
$product["buy_url"] .= "&clickref=1234";
}
if (strpos($product["buy_url"],"traded")!==FALSE) // TradeDoubler
{
$product["buy_url"] .= "&tracking=5678";
}
// etc.
header("Location: ".$product["buy_url"]);
Hope this helps!
Cheers,
David.
--
PriceTapestry.com
Cheers David! I'll give it a go tomorrow!
---------
Jill
Hi,
Sure - there are various ways to do this, but perhaps the easiest if you are using tracking (so your links go via jump.php is to modify line 14 of that file, and replace:
header("Location: ".$product["buy_url"]);
...with:
header("Location: ".$product["buy_url"]."&clickref=1234");
(where 1234 is whatever value of clickref you want to use for this site)
Cheers,
David.