Fall-back Conversion Pixel
  • 16 Oct 2024
  • Dark
    Light

Fall-back Conversion Pixel

  • Dark
    Light

Article summary

The Fall-back Conversion Pixel can be appended via an HTML Image element or an Image Object in the DOM.

Template

https://www.awin1.com/sread.img?tt=ns&tv=2&merchant={{advertiserId}}&amount={{totalAmount}}&ch={{channel}}&parts={{commissionGroupCode}}:{{totalAmount}}&ref={{orderReference}}&cr={{currencyCode}}&vc={{voucherCode}}&testmode={{isTest}}

Parameter References

{{advertiserId}} - Your program’s applicable Advertiser ID. Please consult with your technical point of contact if you are unsure of this ID.

{{totalAmount}} – Sale subtotal after any relevant discounts are applied but should exclude tax, shipping or relevant service charges.

This value must be a float. No thousands separator is allowed and the decimal place must be a standard “dot” character.

Example: 1083.29

{{channel}} – The name of the channel deemed as the last-click referrer.

“aw” should always be utilized for Awin.

Please refer to separate information about the Channel Parameter for additional guidance.

{{orderReference}} – The related order identifier or reference number for a given conversion.

This value must be unique for each conversion.

{{commissionGroupCode}} – The desired Commission Group Code for the transaction’s attribution.

These codes are defined and configured in the Awin UI.

If no group code is defined, this should be set to “DEFAULT”. This field is case and spelling sensitive. In the instance that there is a mismatch in the reported code to those configured in the Awin UI, DEFAULT will be attributed.

{{currencyCode}} – The Conversion’s relevant currency. This value must be the ISO 4217 currency code for a given currency.

If your site uses one currency, you may hardcode this value to reflect such. For example, a site only completing sales in U.S. Dollar should hardcode this value as “USD”.

{{voucherCode}} – If a voucher is in use on a given conversion, this field should be populated with its value. If a voucher was not used, this field should be empty.

The value must be URL-encoded.

{{isTest}} – This should be populated with “0” while the tracking is Live. It should maintain this state during the integration period unless otherwise noted by your Technical Integration contact.

When set to “1”, conversions will not be processed.

HTML Image Element

<img border="0" height="0" src="https://www.awin1.com/sread.img?tt=ns&tv=2&merchant=1001&amount=8.33&ch=aw&parts=DEFAULT:8.33&ref=AA000001&cr=GBP&vc=10OFF&testmode=0" style="display:none;" width="0">

JavaScript Image Object

var awPixel = new Image(0, 0)
awPixel.src = "https://www.awin1.com/sread.img?tt=ns&tv=2&merchant=1001&amount=" + parseFloat(fTotalAmount).toFixed(2) +"&ch=" + sChannel +"&parts=DEFAULT:" + parseFloat(fTotalAmount).toFixed(2) + "&ref=" + sOrderReference +"&vc=" + sVoucherCode +"&cr=" + sCurrencyCode +"&testmode=0";


Was this article helpful?