Hi-
I have been trying to figure out a way to modify Jump.pm so that it adds a few new items to the ClickTrack table. I have added the columns: LinkOwner and the Full_Category_Name to the ClickTrack table, and would like to include this information from the Link that is being clicked. I have been trying things with the code from Jump.pm, with no luck:
-------------------------
my $click_db = $DB->table ('ClickTrack');
my $rows = $click_db->count ( { LinkID => $id, IP => $ip, ClickType => 'Hits'} );
if (! $rows) {
$db->update ( { Hits => \"Hits + 1"}, { ID => $id }, { GT_SQL_SKIP_INDEX => 1 } );
$click_db->insert ( { LinkID => $id, IP => $ip, ClickType => 'Hits', Created => \"NOW()"} );
-------------------------------
Does anyone know how this could be modified to add the LinkOwner and Full Category Name ( in addition to the IP, Creation Date, etc.) for the link being clicked on?
Any help would be much appreciated
-FrankM
I have been trying to figure out a way to modify Jump.pm so that it adds a few new items to the ClickTrack table. I have added the columns: LinkOwner and the Full_Category_Name to the ClickTrack table, and would like to include this information from the Link that is being clicked. I have been trying things with the code from Jump.pm, with no luck:
-------------------------
my $click_db = $DB->table ('ClickTrack');
my $rows = $click_db->count ( { LinkID => $id, IP => $ip, ClickType => 'Hits'} );
if (! $rows) {
$db->update ( { Hits => \"Hits + 1"}, { ID => $id }, { GT_SQL_SKIP_INDEX => 1 } );
$click_db->insert ( { LinkID => $id, IP => $ip, ClickType => 'Hits', Created => \"NOW()"} );
-------------------------------
Does anyone know how this could be modified to add the LinkOwner and Full Category Name ( in addition to the IP, Creation Date, etc.) for the link being clicked on?
Any help would be much appreciated
-FrankM