Welcome to WebmasterWorld Guest from 54.226.242.132

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

Tracking pixel/bug/beacon for affiliate thankyou pages

Can I do this with a simple PHP script?

     
10:28 pm on Nov 17, 2008 (gmt 0)

Junior Member

5+ Year Member

joined:Aug 27, 2008
posts: 65
votes: 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>
<script language="PHP" src="http://---------/conversion.php">
</script>
<noscript>
<img height="1" width="1" border="0" src="http://----------/pagead/conversion/?somevalueshere"/>
</noscript>

And then a "conversion.php" script like:

<?php

$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.

Joe

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members