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.
Quote Reply
Re: [ManuGermany] jump + cookie? -> conversion tracking In reply to
You should be able to get away with it by using something like this just before the goto($goto) part of Jump.pm;

print $q->header(-cookie=>$cookie, -header=>$goto);

Untested (as I'm not in the UK at the moment :p), but it should work :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] jump + cookie? -> conversion tracking In reply to
mmhh,


could anyone give a working code-snipped for this task for I don't get it yet.

Regards,
Manu

Shopping Portal Shop-Netz.de® | Partnerprogramme | Flugreisen & Billigflüge | KESTERMEDIA e.K. | European Affiliate Marketing Forum.