You are here:  » clickref?

Support Forum



clickref?

Submitted by gunneradt on Mon, 2009-01-26 10:25 in

is it possible to add a click ref to all links on a pricetapestry installation?

regards

Submitted by support on Mon, 2009-01-26 11:10

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.

Submitted by gunneradt on Mon, 2009-01-26 11:33

thanks David

Submitted by gunneradt on Wed, 2009-03-04 16:01

What's the best way to do this when you are not using tracking ie jump?

cheers

Submitted by support on Thu, 2009-03-05 09:47

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.

Submitted by gunneradt on Thu, 2009-03-05 10:34

thanks

thats great

Submitted by babrees on Tue, 2012-04-24 13:22

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

Submitted by support on Tue, 2012-04-24 14:18

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

Submitted by babrees on Tue, 2012-04-24 15:45

Cheers David! I'll give it a go tomorrow!

---------
Jill