Order tracking and attribution
One of the first and most critical steps of the affiliate program initialization, integration consists of setting up target action tracking. Tracking is a process of transferring order data to the partner network.

Well-configured tracking helps monitor clicks through the affiliate link and target actions performed by users (purchase, registration, application/request). The advertiser has to transfer these data to the partner network, and the latter transfers that information to the publisher — all for better transparency.
There are several ways
how the advertiser can integrate tracking mechanisms into their website:
1. Tracking code
The easiest and fastest integration method. Requires a web developer who could embed the code into the advertiser website — for tracking data from the affiliate network. The tracking code comprises two parts. The first is introduced to all pages of the advertiser website; the affiliate network uses it to send requests to its server. The second is introduced to the Thank You page and contains the order data. The tracking code allows cross-device tracking, which relies on transmitting an encrypted user ID. This helps track which publisher led a user, even if the latter used different devices to place an order after following the affiliate link (e.g. viewed the product on the smartphone and ordered it on the PC).
2. Postback request
Configured with the use of a special server language. The request contains special keys, provided at the integration stage, and order data—just like the tracking code (order ID, amount, items, currency, etc.). The request is sent directly from the advertiser server (bypassing the browser and website). The simplest way to set up a postback request (without coding in the server language) is to use a module available for many popular CMS (1C-Bitrix, WooCommerce, OpenCart, ShopScript, Magento). This solution is considered the most reliable and, for integration through a module, the fastest.
3. XML
XML is a special file the advertiser configures following the affiliate network's recommendations and transfers to the network's server at a specific interval (e.g. once an hour). The file helps transfer the same parameters as with other integration types. But in this case, they are transferred in the XML language, compiled in a specific structure. The advertiser's task is to configure the export of all orders, generated by the publishers, to that file.
4. API
It's supposed that it's the advertiser who draws up the documentation for this type of integration. In this case, integration requires sending to the affiliate network a finished standardized solution allowing for order compilation. This may be an XML file created as per the advertiser's requirements, or a special API with the key returning a JSON-formatted response. As a result, the affiliate network will configure the match between the advertiser's and the network's parameters. This method is time-efficient for the advertiser as they need to design the standard for all the affiliates only once. It's even more suitable if there are numerous affiliates (e.g. the advertiser cooperates with several networks). However, what may take long is the configuration on the network's side, as this process requires involving the developer team. Eventually, the advertiser's standard is converted into the XML format and sent to the affiliate network's server, from where order data are exported to reports.
On average, integration takes 1-2 weeks (up to 3-4 weeks for API). It's not recommended to embed the integration code to the website with the help of Google Tag Manager (GTM) as it won't work if a user has an ad blocker enabled.
Choose the method best suitable for your business:
Check yourself!
Find out if you have learned everything correctly
Start
In which integration methods are requests sent from the advertiser's server to the affiliate network's server?
Miss. In tracking-code integration, the request is sent from the advertiser website. In XML integration, the request is made by the affiliate network's server (rather than vice versa). In Postback request integration, the request is sent from the advertiser's server to the affiliate network's server.
Miss. In tracking-code integration, the request is sent from the advertiser website. In XML integration, the request is made by the affiliate network's server (rather than vice versa). In Postback request integration, the request is sent from the advertiser's server to the affiliate network's server.
Correct! In tracking-code integration, the request is sent from the advertiser website. In XML integration, the request is made by the affiliate network's server (rather than vice versa). In Postback request integration, the request is sent from the advertiser's server to the affiliate network's server.
Next
Next
Results
Who gets a reward if the advertiser employs the Last Cookie Wins attribution model?
Incorrect. Under the Last Cookie Wins model, the first source can only be eligible for a reward if (1) it's paid (i.e. it's a publisher rather than organic or direct traffic) or (2) it was the last (the user didn't follow any other publishers' links after that source's link).
Bingo! Under the Last Cookie Wins model, the first source can only be eligible for a reward if (1) it's paid (i.e. it's a publisher rather than organic or direct traffic) or (2) it was the last (the user didn't follow any other publishers' links after that source's link).
Incorrect. Under the Last Cookie Wins model, the first source can only be eligible for a reward if (1) it's paid (i.e. it's a publisher rather than organic or direct traffic) or (2) it was the last (the user didn't follow any other publishers' links after that source's link).
Next
Next
Results
How long does a cookie live?
Right! It's the advertiser who sets the cookie lifetime: a cookie may live either for one browser session or for more than a year. It depends on the user behavior, time to purchase decision, and economic feasibility of increasing or decreasing the cookie lifetime.
Incorrect. It's the advertiser who sets the cookie lifetime: a cookie may live either for one browser session or for more than a year. It depends on the user behavior, time to purchase decision, and economic feasibility of increasing or decreasing the cookie lifetime.
Incorrect. It's the advertiser who sets the cookie lifetime: a cookie may live either for one browser session or for more than a year. It depends on the user behavior, time to purchase decision, and economic feasibility of increasing or decreasing the cookie lifetime.
Next
Next
Results
What order details does the advertiser need to transfer to the affiliate network?
Right! Email and payment details are private information that may not be transferred to any third party. On the other hand, the advertiser has to transfer order amount and currency—to ensure proper calculation of the publisher's reward.
Incorrect. Email and payment details are private information that may not be transferred to any third party. On the other hand, the advertiser has to transfer order amount and currency—to ensure proper calculation of the publisher's reward.
Incorrect. Email and payment details are private information that may not be transferred to any third party. On the other hand, the advertiser has to transfer order amount and currency—to ensure proper calculation of the publisher's reward.
Next
Next
Results
Why is it not advisable to embed a tracking code into Google Tag Manager?
Right! Google Tag Manager is a container allowing quickly embed a code into a website. However, if a user has an ad blocker enabled, the GTM-stored code may fail and the order won't be counted in statistics.
Miss. Google Tag Manager is a container allowing quickly embed a code into a website. However, if a user has an ad blocker enabled, the GTM-stored code may fail and the order won't be counted in statistics.
Miss. Google Tag Manager is a container allowing quickly embed a code into a website. However, if a user has an ad blocker enabled, the GTM-stored code may fail and the order won't be counted in statistics.
Next
Next
Results
You might have been distracted when reading the text. Brew some coffee, relax, dismiss everything unwanted from your mind, and try again.
Go through again
Fair take-off. Get back to those a where you made a mistake, and then proceed to the next lesson.
Go through again
Well done!
Lesson accomplished. Let's move further!
Go through again
Well done!
Choose your next step
How much and what should publishers be paid for?
Types of publishers
Back
Next