Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

jump + cookie? -> conversion tracking

Quote Reply
jump + cookie? -> conversion tracking
Hi,

what I want to do is to set up a conversion tracking - option for my portal-clients (=LinkOwner).


At the moment I don't know how it is possible to set a cookie with the Link-ID, if a user clicks onto a link (..jump.cgi?ID=xy).


I've tried to modify my /admin/Links/Userses/Jump.pm but I'll get a header() problem:



...
package Links::User::Jump;
# ==================================================================
use strict;
use Links qw/$DB $IN $USER $CFG/;

use CGI; # added
my $q = new CGI; # added

...

sub _plg_jump {
# --------------------------------------------------------------
# Jump to a given link.
#
my $db = $DB->table('Links');
my $id = $IN->param('ID') || $IN->param('Detailed');
my $Username = $IN->param('Username');
my $goto = '';

### Cookie ConversionTracker #############
my $checkid = $IN->param('ID'); # added
if ($checkid) { # added
my $cookiename = "snconv".$id; # added
my $cookie = $q->cookie(-name=>$cookiename, -value=>$id , -expires=> '+10y', ); # added
print $q->header(-cookie=>$cookie); # added
} # added
....




If I use this, the jump/redirect don't work anymore but I get only a blank site with the jumpURL printed out.


Does anyone has a solution for this cookie-setting issue?


Cheers,
Manuel




Regards,
Manu

Shopping Portal Shop-Netz.de® | Partnerprogramme | Flugreisen & Billigflüge | KESTERMEDIA e.K. | European Affiliate Marketing Forum.
Subject Author Views Date
Thread jump + cookie? -> conversion tracking ManuGermany 1766 Jun 3, 2004, 8:12 AM
Thread Re: [ManuGermany] jump + cookie? -> conversion tracking
Andy 1697 Jun 3, 2004, 10:48 AM
Post Re: [Andy] jump + cookie? -> conversion tracking
ManuGermany 1614 Jun 6, 2004, 7:29 AM