Here's my cookie code:
$offer = $_GET['AID']; $AdID = $_GET['Adwords']; $kw = $_GET['kw']; $combine = $AdID."-".$kw; $Month = 2592000 + time(); if (isset($AdID)) { setcookie(PPC,$combine,$Month); } if ($offer == 2) { setcookie(OFFER,2,$Month); } if ($offer == 1) { setcookie(OFFER,1,$Month); }
I'm basically doing A/B testing on my site with 2 different ads. When someone comes to my OFFER B landing page, I assign them a tracking cookie, then I read the cookie and present them the same offer again and again as they load other pages on the site. This ensures that they don't see my OFFER A, which is presented to regular non PPC visitors.
At any rate, when someone lands on my landing page I GET the AID identifier and set it in the cookie. Unfortunately, when the visitor clicks on a second page, the cookie is removed and no longer exists. I can't find a reason for this. Any thoughts?