--- title: "Conversion Tag" slug: "conversion-tag" description: "The Awin ConversionTag is necessary to measure performance." updated: 2026-08-19T14:06:46Z published: 2026-08-19T14:06:46Z canonical: "help.awin.com/conversion-tag" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.awin.com/llms.txt > Use this file to discover all available pages before exploring further. # Conversion Tag The Conversion Tag is a declaration of the `AWIN.Tracking.Sale` JavaScript object. This is done on the confirmation page to instruct the MasterTag that a conversion has taken place. Subsequently, the MasterTag will parse the conversion information populated in the Conversion Tag, generate a set of tracking requests, and send them to Awin. > [!WARNING] > Tag declaration notice > > The declaration must be done before the [MasterTag](/developers/docs/advertiser-mastertag) loads. In a scenario where AJAX (or similar) is being used to load the order confirmation, then refer to example #2 as a re-declaration of the parent `AWIN` object will break tracking. > [!NOTE] > Note > > Usage of Consent Signals is strongly recommended. Please find further information on our [Consent Framework](/developers/docs/consent-framework) guide. ### **Template** ```javascript /*** Do not change ***/ var AWIN = AWIN || {}; AWIN.Tracking = AWIN.Tracking || {}; AWIN.Tracking.Sale = {}; /*** Set your transaction parameters ***/ AWIN.Tracking.Sale.amount = "{{totalAmount}}"; AWIN.Tracking.Sale.channel = "{{channel}}"; AWIN.Tracking.Sale.orderRef = "{{orderReference}}"; AWIN.Tracking.Sale.parts = "{{commissionGroupCode}}:{{totalAmount}}"; AWIN.Tracking.Sale.currency = "{{currencyCode}}"; AWIN.Tracking.Sale.voucher = "{{voucherCode}}"; AWIN.Tracking.Sale.test = "{{isTest}}"; ``` #### Parameter References For guidance on how you should populate the variables in a given parameter, please see our [**Parameter Guidance**](/developers/docs/parameter-guidance) article. ### **Example #1 - Declare conversion before** [**MasterTag**](/developers/docs/advertiser-mastertag) **append** ```xml ``` ### **Example #2 - Trigger conversion after** [**MasterTag**](/developers/docs/advertiser-mastertag) **append** ```javascript if (typeof AWIN != "undefined" && typeof AWIN.Tracking != "undefined") {    AWIN.Tracking.Sale = {};    AWIN.Tracking.Sale.amount = parseFloat(fTotalAmount).toFixed(2);    AWIN.Tracking.Sale.channel = sChannel;    AWIN.Tracking.Sale.orderRef = sOrderReference;    AWIN.Tracking.Sale.parts = "DEFAULT:" + parseFloat(fTotalAmount).toFixed(2);    AWIN.Tracking.Sale.currency = sCurrency;    AWIN.Tracking.Sale.voucher = sVoucherCode;    AWIN.Tracking.Sale.test = "0";    AWIN.Tracking.run(); } ``` ### **Example Requests** If the Conversion Tag and the MasterTag have both been implemented correctly, tracking requests such as the following will be made: > [!NOTE] > Example request notice > > Depending on your Advertiser program's set up, you could see tracking requests being directed towards our alternative tracking domain `zenaps.com`. The number of unique request types can vary from two to five. ```http https://www.awin1.com/sread.php?a=1001&b=8.33&cr=GBP&c=AA000001&d=DEFAULT:8.33&vc=&t=0&ch=aw&cks=1001_1403695822_a430d81e22c9e8687f423efcf024fbaa&l=https%3A//advertiser-domain.com/confirmation.php&tv=2&tt=ia https://www.awin1.com/sread.js?a=1001&b=8.33&cr=GBP&c=AA000001&d=DEFAULT:8.33&vc=&t=0&ch=aw&cks=1001_1403695822_a430d81e22c9e8687f423efcf024fbaa&l=https%3A//advertiser-domain.com/confirmation.php&tv=2&tt=js https://www.awin1.com/sread.php?a=1001&b=8.33&cr=GBP&c=AA000001&d=DEFAULT%3A8.33&vc=&t=0&cks=1001_1403695822_a430d81e22c9e8687f423efcf024fbaa&atp=&tv=2&tt=et&l=https%3A%2F%2Fwww.advertiser-domain.com%2Fconfirmation.php&ch=aw https://www.awin1.com/alt.php?mid=1001&gv=1&a=1001&b=8.33&cr=EUR&c=AA000001&d=DEFAULT:8.33&vc=&t=0&ch=aw&l=https%3A//www.advertiser-domain.com%2Fconfirmation.php https://www.awin1.com/m/1001.gif ``` ### Practical Tips Please avoid reinitializing `AWIN` and `AWIN.Tracking` with empty objects, as this can overwrite existing data. Sometimes we saw only what is **wrong**: … var AWIN = {}; AWIN.Tracking = {}; AWIN.Tracking.Sale = {}; … **Use** (see above on this page) : ```javascript ... var AWIN = AWIN || {}; AWIN.Tracking = AWIN.Tracking || {}; AWIN.Tracking.Sale = {}; ... ``` This preserves any existing properties (e.g. `AWIN.Tracking.AdvertiserConsent` - see: [implementing Awin consent](/developers/docs/implementing-awin-consent)) and prevents accidental data loss caused by replacing populated objects with new empty ones. A business that sells goods/services and pays affiliates for referrals. ## Related - [Advertiser MasterTag](/advertiser-mastertag.md) - [Tracking overview](/tracking-overview-1.md) - [App Tracking](/app-tracking.md) - [Fall-back Conversion Pixel](/fall-back-conversion-pixel.md) - [Consent framework](/consent-framework.md)