Tracking sales by referrers

lovetospooge

Junior Member
Joined
Jul 24, 2011
Messages
171
Reaction score
93
Hey

How can I track from witch referring website a sale is coming from?


Example:

I'm advertising on the follow sites:

adsite1.com
adsite2.com
adsite3.com


How can I see from witch referring site the sale came from, also I am using paypal as my payment processor.


Thanks.
 
So, you're advertising your website on someone else's website and you want to see where you traffic came from? You could always do this:

Code:
<?php
$url = $_GET['url'];
?>

Put this in your header file or on your index file somewhere and change the advertising link to something like [my_site_link]/index.php?url=[ad_url], then carry that variable over to the page where your sale is tracked.
 
You'll want to have a bit of PHP code that runs on every page to check for an external referrer. If it exists, store it in the session and then store that value against the order when placed.

If you need to track for longer than one browser session you'll need to set a cookie.

On my iPhone at the mo, but if you need a code example I can post later.
 
Back
Top