To integrate Adwords conversion tracking if you are using PayPal IPN or G checkout. Try doing this, if you are unable to get your conversion tracking to work.
PHP Example - possible solution
Create and add this function to your IPN script - note this uses CURL, so your server needs to support CURL for this solution to work.
function curlGetFileGoogleConversion($url,$user=NULL,$pass=NULL) {
$c = curl_init();
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_URL, $url);
curl_setopt($c, CURLOPT_USERPWD, "$user:$pass");
curl_setopt($c, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
$contents = curl_exec($c);
curl_close($c);
}
Get the code for the img src from your Google adwords conversion code
<noscript>
<div style="display:inline;"><img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/xxxxxxxx/?label=xxxxxxxxxx&guid=ON&script=0"/></div>
</noscript>
Add this line to your IPN script
$gconimg = curlGetFileGoogleConversion("http://www.googleadservices.com/pagead/conversion/xxxxxxxx/?label=xxxxxxxxxx&guid=ON&script=0");
I hope this works for you. Google should really come up with an official solution to this very common problem.
Please Sign In to download attachments
It looks like you're new here. If you want to get involved, click one of these buttons!