Conversion-Trackingcode
Introduction
This tracking code is responsible for capturing the conversion / order and is to be output on the order completion page.
JavaScript-Code |
(function() { var campaign_id = 'CAMPAIGN_ID'; var trigger_id = 'TRIGGER_ID'; var token = 'ORDERTOKEN'; var turnover = 'TURNOVER'; var descr = 'DESCRIPTION'; var currency = 'EUR'; var storageKey = 'emid'; var trackingDomain = 'SUB-DOMAIN'; var emid = null; var attribution = '1';
if(emid) { trackingUrl += '&emid='+emid; }
trackingUrl),req.send(),req.onreadystatechange = function () { (req.readyState === 4) ? eval(req.response) : null }; })(); |
Variable description
At the beginning of the code, the variables are initialized. The values highlighted in red must be replaced by the corresponding values. The variables are filled according to the table:
VARIABLE | BESCHREIBUNG |
CAMPAIGN_ID | The campaign ID is stored here. |
TRIGGER_ID | The trigger ID is stored here. |
TOKEN | The order number / order ID is stored here. |
TURNOVER | The net order value is stored here. This may result in the commission for the publisher. |
DESC | A description can be entered here. |
CURRENCY | The current currency is stored here. This is used, for example, if a store is operated in Switzerland, but sells its goods in €. If the field is left empty, the currency setting of the partner program is used. |
STORAGEKEY | The local storage key where the EMID is located is stored here. |
TRACKINGDOMAIN | The domain of the partner platform is stored here. |
ATTRIBUTION | Here the attribution of the order is stored. The value is transferred in decimal format and a point as separator. (50% = 0.50) |
EMID | Is filled with the value of the parameter emid, which is transferred from easy.affiliate to the landing page via the clicklink. |