View Single Post
  #1 (permalink)  
Old 06-21-2008, 07:44 PM
ms4u's Avatar
ms4u ms4u is offline
Senior Member
128 posts this year. Executive spud!
We have not managed to scare them away..
Last months UKWW Tokens: 28
 
Join Date: Apr 2008
Posts: 131
Thanks: 0
Thanked 1 Time in 1 Post
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Default Session Variable

Hi,

I am planning to track my PPC campaign in both my Google Adword and Yahoo search. The traffic that direct over my site have the following URL:

Google:
HTML Code:
www.abc.com/?kw=keywords
Yahoo:
HTML Code:
www.abc.com/?OVRAW=keywords&OVKEY=keywords&...etc
What I want to do is, to code my landing to track those keywords coming through both search engine. I am planning to use SESSION to do the tracking. My session codes are as follows:

PHP Code:
 <?php 
session_start
(); 
$_SESSION['tracking'] = $_GET['kw']; 
$_SESSION['tracking'] = $_GET['OVKEY']; 
?>
and my affiliate link will be as follows to track those keywords using clickref in my affiliate network account:

HTML Code:
http://www.awin1.com/awclick.php?mid=1&id=12345&clickref=<?php echo $_SESSION['tracking'];?>
My question is am I doing the right thing? Can I have $_SESSION variable with similar name/value='tracking' as what I shown above?

Please advice. Thanks
Reply With Quote