Posted on: 02/12/08 11:15pm
By: Anonymous (quickdraw)
I'm looking for a way to capture data from a query string
of one of my staticpage Geeklog URL's, for pay per click
campaign tracking.
Here's how it would work...
When a user comes to my site from Google Adwords,
I can specify a unique landing page URL for each keyword.
For example, the landing page URL for a certain keyword
might look like so:
http://MyDomain.com/staticpages/index.php/product/?TC=123
(I'm using SE friendly URL's on my static pages, with PHP enabled.)
From there, I'd like to capture the value for TC (shown above as 123), and append it to an affiliate link on the landing page.
From there, the affiliate tracking system will record the tracking code when a sale is made, enabling me to track the exact keyword code which generated it.
Now, I've tried using different variations of the following code to
capture the query string and append it to links on my landing pages, but I keep getting 403 errors when trying to add it to static pages:
<?php echo $_GET['TC']; ?>
Note that I've left of the opening php code to as the docs
recommend, but still get errors:
echo $_GET['TC'];
Any idea how I might accomplish this goal?
Quickdraw