Advertiser Tracking Guide/Conversion Pixel Only Tracking

From Wiki

Jump to: navigation, search

[-] Advertiser Tracking Guide

[-] Conversion Pixel Only Tracking

Please note Awin no longer support the use of pixel only implementations due to various browser updates. For more information on this, please consult your marketing point of contact.

[-] Server To Server (S2S)

We recommend you implement one of these two tracking methods - either batched offline tracking or S2S requests. Please keep informed your awin contact if you chose this solution.

With regards to the latter you must configure your site to record the value of the URL request string parameter awc when the end user lands on the site, and then subsequently populate this to the parameter cks when the conversion takes place and you trigger the S2S tracking request.


In order to build the S2S tracking request (sread.php), use the same parameters as the Fall-back Conversion Pixel,
add the additional parameter cks and replace tt=ns with tt=ss

&cks={{awc}}


  • {{awc}} must be replaced by the unique Awin click checksum which was recorded when the end user landed on the site, for example "1001_1403695822_a430d81e22c9e8687f423efcf024fbaa"


Example

To be run on conversion and assumes that the advertiser's system records which channel is deemed as last click referrer as well as associating the click checksum to the order when Awin has driven the traffic. (If your system is not recording the last click referrer, the value of 'ch' should be 'aw').

<?php 
 
$url = "https://www.awin1.com/sread.php?tt=ss&tv=2&merchant=1001";
$url .= "&amount=" . $totalAmount;
$url .= "&ch=";
if (isset($channel)) {
    $url .= $channel; // Populate the traffic source if one is associated with the conversion
} else {
    $url .= "na";  // If the conversion does not belong to a specific channel
}
if (isset($awc)) {
    $url .= "&cks=" . $awc; // Populate the Awin click checksum if one is associated with the conversion
}
$url .= "&cr=" . $currencyCode;
$url .= "&ref=" . $orderReference;
$url .= "&parts=DEFAULT:" . $totalAmount;
$url .= "&testmode=0&vc=" . $voucherCode;
 
$c = curl_init();
curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
curl_setopt($c, CURLOPT_URL, $url);
curl_exec($c);
curl_close($c);
 
?>

Privacy

Due to new European legislation regarding how websites store information about you, AWIN is updating its privacy policy. You can see the new version of our policy here. If you would like to see the information we capture on this website, please click here for further details. In order to accept cookies on this site please click the 'I ACCEPT' button