homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: DixonJones & mademetop

Website Analytics - Tracking and Logging Forum

Tracking pixel/bug/beacon for affiliate thankyou pages
Can I do this with a simple PHP script?

5+ Year Member

Msg#: 3788293 posted 10:28 pm on Nov 17, 2008 (gmt 0)

So - I run an affiliate lead gen business and am able to place a pixel on the confirmation page of one of my main partners. BUT - not the Google AdWords pixel : (

Can I use something as simple as this?

<script language="PHP" src="http://---------/conversion.php">
<img height="1" width="1" border="0" src="http://----------/pagead/conversion/?somevalueshere"/>

And then a "conversion.php" script like:


$value = array();
$value['date'] = date('Y-m-d H:i:s');
$value['ip'] = $_SERVER['REMOTE_ADDR'];
$value['page'] = $_SERVER['REQUEST_URI'];
$value['from'] = $_SERVER['HTTP_REFERER'];
$value['payout'] = $data['lead_payout'];
$value['lead_buyer'] = $data['lead_buyer'];
$db->insert($value, 'leads');


I'm sort of a newbie to these pixels, and can handle PHP, but don't know any Javascript.



Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved