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.
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.