ShopWindow Forum  

Go Back   ShopWindow Forum > ShopWindow v2 Forums > ShopWindow Toolset : Data and Information V2 > Service Updates & Bug Fixes V2
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 09-08-08, 14:04
GetVisible GetVisible is offline
New Member
 
Join Date: Mar 2007
Posts: 2
clickref

Do we need a solution to add a meaningful clickref in v2 as confusious came up with here:

http://www.shopwindowforum.com/showt...light=clickref
Reply With Quote
  #2  
Old 13-08-08, 16:11
Andy's Avatar
Andy Andy is offline
ShopWindow Moderator
 
Join Date: Apr 2007
Location: A Winter Wonderland
Posts: 573
All V1 updates have been taken into consideration for V2

open goto.php and look for the line:
Code:
$sClickRef = "clickref=swinDOTcom"; # awin clickref
you 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).
__________________
Have I created TRUE price comparison with my Shop Window?
oooooo! How did I do that
Reply With Quote
  #3  
Old 22-12-08, 15:59
sspyrou's Avatar
sspyrou sspyrou is offline
Active Member
 
Join Date: Sep 2008
Location: London
Posts: 38
Good stuff

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
Reply With Quote
  #4  
Old 24-12-08, 18:53
Andy's Avatar
Andy Andy is offline
ShopWindow Moderator
 
Join Date: Apr 2007
Location: A Winter Wonderland
Posts: 573
Simply:
PHP Code:
$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.
__________________
Have I created TRUE price comparison with my Shop Window?
oooooo! How did I do that
Reply With Quote
  #5  
Old 29-12-08, 09:11
Ollie's Avatar
Ollie Ollie is offline
Development
 
Join Date: Apr 2008
Posts: 78
Hey guys.

Hope you all had a good Christmas!

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



Cheers
Reply With Quote
  #6  
Old 12-02-09, 22:36
sspyrou's Avatar
sspyrou sspyrou is offline
Active Member
 
Join Date: Sep 2008
Location: London
Posts: 38
useful clickref

Quote:
$sClickRef = 'clickref='.$_SERVER['HTTP_REFERRER']; # awin clickref
how would i get this to include the domain as well as a refering script?
Thanks
S
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 23:30.