Server-to-Server (S2S) Tracking: How It Works and Setup

Written by Edward Cranmer on 23 minute read

What server-to-server tracking is, how it works alongside the MasterTag, the four ways to set it up right on Awin, and how to test it before you go live.

Server-to-server (S2S) tracking is a method of affiliate tracking that sends sales data from your server to Awin when an order completes. Your server passes on the click identifier the shopper arrived with, plus the order details, so the referring partner is credited. The call runs outside the browser, which reduces the sales lost to browser restrictions and ad blockers. 

If your affiliate reports show fewer sales than your order system, browser tracking may be losing some of them between click and checkout. S2S picks up more of those sales, so your partners get credited for what they drive. Awin requires it alongside the MasterTag for every advertiser. 

This guide walks through how the method works, the setup routes Awin supports and the checks that confirm your sales are coming through. 

What is server-to-server tracking 

Every affiliate sale comes down to matching an order to the partner who sent the customer, which sits at the heart of how affiliate marketing works. Server-to-server tracking makes that match between two systems: your server and Awin's. 

Browser based tracking relies on a script on your confirmation page to report the sale from the shopper's browser. S2S moves that report to your server. Once the order is confirmed, your system sends it to Awin directly, carrying the click identifier from the original visit so the sale links to the right partner. Here's where each method can lose a sale along the way. 

Diagram comparing browser based and server-to-server tracking, showing where a sale can be lost in the browser. 

You'll also see the method called server side tracking or postback tracking. Server side tracking is the wider term, also used for sending analytics and ad platform data through a server. Postback is the name trackers and publisher tools use for the same kind of server call.

How server-to-server tracking works 

The shopper's journey stays the same with S2S. What changes is where the click identifier is kept and which system reports the order. Here's how it runs for a brand selling online. 

  1. The shopper clicks a partner link. Awin adds a click identifier, called the awc, to the landing page URL, so the visit arrives as something like example.com/product?awc=12345. 
  2. Your site stores the awc. The value is saved on your side, for example in a first party cookie. Awin's developer guide asks for that cookie to be set through an HTTP response header with the HttpOnly and Secure flags, which keeps it out of reach of page scripts. 
  3. Your server sends the sale to Awin. Once the order is confirmed, your system sends an HTTPS request carrying the awc, the order value, the currency, your order reference and the commission group. Awin asks for this to go out close to real time, ideally within two minutes. 
  4. Awin credits the partner. Awin matches the awc to the original click and records the sale against the partner who sent the shopper, ready for you to validate. 

The request in step 3 carries these fields, shown with dummy values. 

Field Parameter What it carries Example
Click identifier cks The awc saved when the shopper landed 12345
Advertiser ID merchant Your Awin advertiser ID 67890
Order value amount The value of the order 59.99
Currency cr The currency code for the order GBP
Order reference ref Your unique reference for the order ORDER1001
Commission group parts The commission group code and the amount it applies to DEFAULT:59.99
Channel ch The channel the sale came through, used for deduplication aw
Voucher code vc The voucher code, where one was used SAVE10
Test mode testmode 1 for a test order, 0 for a live one 0

Source: Awin developer documentation, direct S2S

Why brands add server-to-server tracking 

The main gain is coverage. When your server reports the sale, the record stops depending on a script running in the shopper's browser, so fewer of the sales your partners drive go unrecorded. 

Awin put a number on that gap when it analysed 150,000 tracking calls from advertisers already using the MasterTag. With S2S in place, it recorded 12.6% more tracking cookies.  

Cookie restrictions in browsers such as Safari accounted for 9.3% of the difference, and content blockers for the other 3.3%. The analysis assumed a perfect MasterTag integration, so results on a real programme can vary. 

Stat card showing 12.6% more tracking cookies recorded with S2S, split into 9.3% cookie restrictions and 3.3% content blockers. 

Cleaner data follows from that. Your affiliate reports sit closer to the orders in your own system, which makes it easier to see which partners are driving sales and to measure affiliate performance with confidence. 

Partners benefit in the same way. Sales they drove appear in their reporting and earn the commission they're due, which builds trust on both sides of the programme. 

You also decide exactly what leaves your system. The request carries the fields you choose to send, from a server you manage.

Running server-to-server alongside the MasterTag 

S2S sits alongside your browser tracking. Awin runs a hybrid setup, with the MasterTag working in the shopper's browser and S2S working from your server, and every programme needs both. 

Each one is good at something different. The MasterTag reports in real time and makes problems easier to spot. S2S picks up the sales a browser might block or lose. Having both also gives you a backup if one of them breaks. 

Running both means the same sale can be reported twice, once from the browser and once from your server. Awin prioritises between the two methods, and timing plays a big part in that. 

Timeline showing the best time to send an S2S call is within two minutes of the browser request, with a three minute cut off.

Your S2S call is included as long as it arrives within three minutes of the browser request, so it's worth aiming for under two. If you're using the Conversion API, batches go out between 10 and 60 seconds after. 

Your deduplication rules then decide whether a sale belongs to an affiliate partner or another channel, such as paid search, so commission is only paid once. The channel value in each S2S call feeds into those rules, keeping your attribution models working from complete data.

Awin's Conversion Protection Initiative and S2S 

S2S is part of the standard tracking setup when advertising on Awin. Awin's Conversion Protection Initiative (CPI) asks every advertiser to run server-to-server tracking, and to add app tracking if they have an app. The quickest way to check where you stand is to run a test in the Tracking Diagnosis Tool. If S2S isn't listed in the results, your programme needs an upgrade. 

When a programme hasn't upgraded yet, Awin fills the gap with a probabilistic model. It estimates the sales that are likely going untracked and adds them to the programme, along with the commission for each publisher. The calculation uses the previous month's validated transactions, and the size of the uplift depends on which part of the tracking is missing. 

The table below sets out each uplift. 

What is missing Uplift added to sales and commission
Server-to-server tracking +12.6%
App tracking (for advertisers with an app) +20%
Both +32.6%

Source: Awin Conversion Protection Initiative

The model is there so partners are still paid fairly for the sales they're likely driving while tracking catches up. Once you've upgraded, commission is based on the sales your own systems record, which gives you and your partners a clearer view of what each relationship is worth. 

Over 2,300 advertisers had upgraded their tracking by March 2026, with more than 1,600 moving to server-to-server and over 760 adding app tracking. Those that upgraded reported a 3.5% increase in sales and a 6.4% rise in conversion rates year on year.

If you're weighing up where to run a programme, tracking standards like these are worth adding to your list when you choose an affiliate network. 

Four supported ways to set up S2S on Awin 

Awin supports four routes into S2S. They all end in the same place, with your sales reaching Awin from your own systems, so the right one comes down to your platform and who's available to build it. The table below compares them. 

Route How sales reach Awin Who sets it up
Direct integration One HTTPS request per sale, sent from your server Your developers
Conversion API Authenticated batches of up to 1,000 orders Your developers
Stape or Tealium Through a server side Google Tag Manager container or the Tealium connector Whoever manages your tags
Ecommerce plugins Built into Awin's plugin for platforms such as Shopify and WooCommerce Whoever runs your store

Each route has its own setup guide in your Awin account, under Support > Integration > Tracking Installation Guide. 

Awin

Direct integration 

Your developers write the code that sends each sale to Awin as an HTTPS request once the order is confirmed. It gives you full control over what's sent and when, which suits brands with a custom checkout or their own engineering team. 

  • The request uses the fields in the table further up this guide. 
  • Awin's developer documentation has the request template and every parameter you can send. 

Conversion API 

Your server sends orders to Awin in authenticated batches, which makes this route a good fit for brands with high order volumes or systems that already process orders in batches. It's also the server route Awin's developer docs recommend. 

  • Batches hold up to 1,000 orders. 
  • Send each batch between 10 and 60 seconds after the browser request. 

The full list of fields is in the Conversion API documentation. 

Tag management with Stape or Tealium 

If your team already works in a tag management system, you can run S2S without much custom code. Awin has partnered with Stape to build and maintain an Awin integration for server side Google Tag Manager, and Tealium users can send conversions through the Tealium connector. 

  • With Stape, Awin's guide covers pointing a custom subdomain at your server container. 
  • Awin's Last Click Identifier handles deduplication automatically. 
  • Both routes rely mostly on configuration, which helps when developer time is tight. 

Ecommerce platform plugins 

If your store runs on an ecommerce platform, Awin's plugin is the simplest route, and the Tracking Installation Guide marks it as the recommended option. The Shopify, WooCommerce and Shoplazza plugins all include S2S, and on Shopify and WooCommerce you switch it on in your store settings. 

  • The Shopify app bundles the full hybrid setup: the MasterTag on every page, the conversion tag, a fallback pixel, Shopify's web pixel and S2S. 
  • It can decline cancelled orders in Awin automatically. 
  • S2S was added from version 3.0.5, so check older installs are up to date.

Where setups tend to go wrong 

One problem to watch for is the click identifier going missing on the way to checkout. Redirects, login steps and domain changes can all cause this, so test any journey that leaves your main site. 

Timing is important too,  a sale sent before the order is confirmed can be declined later, and one held in a queue can miss the three minute window. Here's what to check and why it matters. 

What to check What can go wrong without it
The awc stays with the shopper until checkout Redirects, a login step, a rebuilt basket or a move to another domain can drop it, so the sale reaches Awin with no partner attached
The sale is sent once the order is confirmed Calls sent when the basket is submitted can include orders that fail or get cancelled, which partners then see declined
The call goes out in near real time A queue or scheduled job can push it past the three minute window
Consent signals run alongside S2S Sales from cashback and loyalty partners may not be tracked
Voucher codes are passed through Voucher journeys can change which partner gets the credit, and that stays hidden without the code

For consent, make sure your consent management platform's tag fires before any Awin tag. If you use partner plugins, check with Awin's technical support, as consent signals don't cover them. For how voucher sales are credited between partners, see voucher attribution. 

How to test server-to-server tracking 

Once everything's live, a test order tells you whether sales are reaching Awin the way they should. Awin's Tracking Diagnosis Tool walks you through it, and you'll find it under Support > Integration > Tracking Diagnosis. 

Awin

  1. Click Create a test transaction. 
  2. Use the test publisher link the tool gives you. It's unique to your programme, so avoid testing with a real partner's link. 
  3. Buy something on your site, the way a customer would. 
  4. Go back to the tool and search for your order reference. 
  5. Check the results. The tool flags any warnings or critical issues with suggested fixes, and S2S should appear among the tracking methods. If it doesn't, your S2S setup isn't reaching Awin yet. 

For a clean test, switch off ad blockers, avoid Safari and use a desktop unless Awin asks otherwise. Results only cover the past 24 hours, so check soon after ordering. 

If the sale doesn't show, send the test details to your Awin contact or the support team. It's worth retesting after any big site or platform update too. 

How cross device and app tracking keep sales linked to the click 

A shopper might tap a partner link on their phone and buy later on their laptop, or move from your mobile site into your app to check out. Both journeys need a little extra to stay connected to the original click. 

Awin's cross device tracking handles the first. When a customer logs in to your site with their email address, Awin encrypts it into an anonymous user ID and links the devices they use to that ID.

If they click on one device and buy on another, Awin recognises them as the same customer and credits the partner who sent them. It runs through the MasterTag, and the matching is deterministic, based on that logged in identity. 

Three steps showing a shopper clicking a partner link on a phone, logging in on a laptop and buying, with the sale credited to the partner. 

Sales inside your app need their own integration. The click identifier sits in the browser, where your app can't read it, so app purchases rely on app tracking to link back to the click. Awin's Conversion Protection Initiative asks advertisers with an app to set this up alongside S2S, and our guide to app tracking covers how. 

Is server-to-server tracking legal? 

S2S changes where your sales data is sent from. The privacy rules around it stay the same, so the cookie consent requirements that apply to browser tracking still apply. That's why Awin treats consent signals as a separate integration you need alongside S2S. They pass each shopper's cookie choice to Awin, using either Awin's Consent Signals Framework or the IAB Transparency and Consent Framework. 

The main exception is the ICO's strictly necessary exception, which covers storage that's essential to deliver a service the user has asked for. Awin's guidance notes that cookies for cashback, loyalty and reward activity may meet it, and Awin's tracking can set a strictly necessary cookie for those partners. 

This is general information, not legal advice, so check your own setup with your legal or privacy team. 

FAQs on server-to-server tracking 

What does S2S mean in affiliate marketing? 

S2S stands for server-to-server. In affiliate marketing, it means your server reports each sale directly to the affiliate network, along with the click identifier from the partner's link. The network uses that identifier to credit the right partner, so the record of the sale stays independent of the shopper's browser. 

Is server-to-server tracking the same as server side tracking? 

They overlap. Server-to-server tracking is one form of server side tracking, where your server sends conversion data straight to a network such as Awin. Server side tracking is the wider term, and it also covers routing analytics and advertising data through a server you control before it reaches other platforms. 

Does server-to-server tracking work with Google Tag Manager? 

Yes. You can run S2S through a server side Google Tag Manager container, and Awin has partnered with Stape to build and maintain an Awin integration for it. The setup relies mostly on configuration, and Awin's Last Click Identifier can handle deduplication for you automatically. 

Can you remove the MasterTag once server-to-server tracking is live? 

No, Awin requires both on every programme. They work as a hybrid setup. The MasterTag reports in real time and supports cross device tracking, and S2S records the sales a browser might block or lose. Running both also gives you a fallback if one of them breaks. 

What is a postback URL? 

A postback URL is the address a server calls to report a conversion, with details such as the click ID and order value added as parameters. On Awin, the brand's server makes that call when an order is confirmed, and publishers can receive their own postbacks through transaction notifications. 

Ready to strengthen your affiliate tracking?

For brands Talk to us
For affiliates and publishers Join Awin

Related articles

Technology Partners at Awin

Elevate your website strategy by working with technology partners to reduce basket abandonment, or by implementing AI-generated shopping recommendations to boost purchase value and more. Collaborate with our vetted technology partners to maximise your profits.

Discover more about Technology Partners at Awin