Awin is a global leader in affiliate marketing and one of the few platforms that has made server-side tracking mandatory for all advertisers. Through server-to-server integration, they ensure the affiliates' marketing efforts are correctly attributed and paid.
To simplify Awin server-to-server integration, we created the tag for the server Google Tag Manager. This blog post will discuss why server-to-server communication is necessary and how to set up Awin server-to-server tracking using server GTM.
Awin is committed to delivering advertisers and affiliates the best conversion tracking experience through its comprehensive system. As an industry leader, Awin strives for accurate data so all parties can easily see campaign success. Awin also wants to ensure that it uses the best and most reliable conversion tracking techniques since this is the key to success in affiliate marketing.
They aim to ensure that advertisers see the correct conversion reporting from affiliates and that affiliates receive the proper commission for all their marketing efforts.
Tracking conversion becomes challenging due to ITPs, ad blockers, and the limited use of third-party cookies. To help deal with all these browser tracking restrictions, they implemented server-to-server integration and made it mandatory for all advertisers within their platform.
Advertisers should send conversion data directly to Awin’s server. HTTP requests must contain conversion data and the original click id “awc” within the “cks’’ parameter. Product-level details can be added for more robust tracking reports.
Here’s a more detailed article about how server-side tracking works and the benefits of Stape as a server-side tracking solution.
Please ensure that you already have Google Tag Manager web and server containers, as well as a configured server container and custom domain in Stape. Please follow these guides if you don’t have any of those:
Additionally, the Awin-recommended server-side tracking setup comprises several web and server container tags:
1. Add the Awin tag template in the server GTM container by importing it from the Template gallery:

2. Create the Awin tag:


4. Configure the Awin tag:
GBP).CD), or a full set of groups and the commission value for each group (e.g., CD:11.10|DVD:14.99). If you don’t have this code, enter the DEFAULT value.
utm_source value). After you configure the Server Awin AW Last Click Identifier (see this guide), please add the variable with the type cookie value and the name of the cookie ServerAwinChannelCookie as the chosen variable for this parameter.NEW or RETURNING values to identify if it’s a new customer acquisition or a returning customer.
0, 1, true, false. 


5. Add the Trigger for the tag (All Pages and your applicable Purchase Event), give it a descriptive name, and click Save.

After you’ve configured the Awin tag by Stape, don’t forget to also set up Server Awin AW Last Click Identifier for event deduplication. Awin manages this tag, so for more information, please refer to Awin’s official guide to last-click deduplication.
You can test the configurations in Google Tag Manager. Click on Preview, trigger the event, and check whether the tag has fired.

You also can enable the “In test mode” checkbox; in this case, a conversion tag will be fired in test mode, and a reported conversion will be ignored. Once done, publish changes in the server container.
A user faced critical issues in AWIN reporting because the server-to-server cookie (awin_awc) wasn’t being set properly, causing missing affiliate click tracking (full thread here). The root causes were either the server tag not triggering on page_view events with the awc parameter or the server GTM not running in a first-party context. The solution was to ensure the sGTM used a subdomain of the main domain and to let the client container assign the AWIN channel before sending events to the server container, so the server could use that value for the AWIN hit. This fixed the cookie assignment and resolved the tracking discrepancies.
Awin required all advertisers to implement server-to-server tracking as a fallback. This ensures that conversions are attributed correctly and affiliates get appropriate compensation for conversions referred by them.
This article covered Awin server-to-server integration using server GTM. Please contact us if you need assistance setting up your Awin integration or any other affiliate network. Thanks for reading!
All it takes is a few simple questions. Click Get A Quote , fill-up the form, and we will send you a quote.
Comments