PDA

View Full Version : clickref


GetVisible
09-08-08, 15:04
Do we need a solution to add a meaningful clickref in v2 as confusious came up with here:

http://www.shopwindowforum.com/showthread.php?t=270&highlight=clickref

Andy
13-08-08, 17:11
All V1 updates have been taken into consideration for V2

open goto.php and look for the line:
$sClickRef = "clickref=swinDOTcom"; # awin clickrefyou can change "swinDOTcom" to anything meaningful you like. either do it "Hard" or change it dynamically.

Although, I would imagine there will be some limits to the string length.
default string lengths in MySQL tend to be 255 characters (for VarChar fields) unless set to less. I doubt it'd be set as TEXT.

it's interesting that ShopWindow didn't answer the "Whats the maximum string length of a clickref?" question in the previous "linked to" post. I'm hoping it's nearer to the 255 varchar limit than the stupid 14 characters set by an inferior network.

I know it doesn't HAVE to be AlphaNumeric characters only (I know because I use charcaters I can use as tokens later on, and it works brilliantly).

sspyrou
22-12-08, 16:59
this is a great way of identifying which of your sites is performing best of you have several....
is there an way of expanding this to insert the actual script name of the refering page?

Thanks
S

Andy
24-12-08, 19:53
Simply:

$sClickRef = 'clickref='.$_SERVER['HTTP_REFERRER']; # awin clickref however!
Im STILL (hint George) not sure if there is a stringlength limit for the clickref. If there is you'll have to think of something else.

Ollie
29-12-08, 10:11
Hey guys.

Hope you all had a good Christmas! :D

To help you out here, the max length of a clickref is 50 characters

:D

Cheers

sspyrou
12-02-09, 23:36
$sClickRef = 'clickref='.$_SERVER['HTTP_REFERRER']; # awin clickref

how would i get this to include the domain as well as a refering script?
Thanks
S