Share this article
Tracking & Analytics

Server-Side Tracking for Affiliates: Setup Guide for 2027

Server-side tracking moves conversion reporting off the browser. This guide shows how to set up click IDs and postbacks, and how to test them properly.

Anupam Kumar
Anupam Kumar
November 21, 20264 min read0 views
AdvancedUpdated December 3, 2026
Server-side affiliate tracking flow from click to postback

Server-side tracking for affiliates means the advertiser's server, not the visitor's browser, reports each conversion to the tracking platform. You capture a click ID at the click, store it with the order, then send it back in a server-to-server postback that credits the right partner.

Key takeaways

  • Server-side tracking is not affected by ad blockers or browser cookie rules in the same way pixels are.
  • The click ID is the key that links a click to a conversion.
  • Setup needs cooperation between the tracker, the advertiser's developers and the network.
  • Test with real conversions and monitor postbacks continuously.

What is the difference between client-side and server-side tracking?

AspectClient-side (pixel)Server-side (postback)
Where it runsIn the visitor's browserOn the advertiser's server
Affected by ad blockersOftenRarely
Depends on cookiesUsuallyNo, uses a click ID
Setup effortLowMedium to high
Data controlLimitedFull
Best forQuick tests, backupPayout-grade tracking

For background on the pixel approach, see Tracking Pixels Explained.

How does a server-side flow work?

  1. A visitor clicks an affiliate link. The tracker records the click and generates a click ID.
  2. The tracker redirects to the advertiser's landing page with the click ID in the URL.
  3. The advertiser's site saves the click ID in its session, a first-party cookie or the order record.
  4. When the visitor converts, the advertiser's backend calls the tracker's postback URL with the click ID and conversion details.
  5. The tracker matches the click ID and credits the publisher.

A typical postback URL looks like this (illustrative):

text
https://tracker.example.com/postback?clickid={click_id}&payout={payout}&status={status}&txid={order_id}

Replace the placeholders with real values from your order system. If you are new to the concept, read What Is a Postback URL?.

Step-by-step setup guide

Step 1: Define the conversion events. Decide what counts: a sale, a lead, a qualified lead or an install. Write down the statuses (pending, approved, rejected).

Step 2: Capture the click ID. Make sure the landing page reads the click ID parameter from the URL and stores it before the visitor navigates. Preserve it through logins, redirects and payment gateways. More detail in Click ID Tracking Explained.

Step 3: Store it with the transaction. Save the click ID in your database against the order, lead or account, so the conversion can be reported even days later.

Step 4: Build the postback call. On the server, trigger the postback when the conversion is confirmed. Include the click ID, a unique transaction ID, payout or order value, and status.

Step 5: Secure the endpoint. Use HTTPS. Add a secret token or IP allowlist where the tracker supports it, so no one can fake conversions.

Step 6: Handle duplicates and reversals. Send a unique transaction ID so repeat calls do not create double conversions, and send status updates for refunds or cancellations. See Conversion Deduplication.

Step 7: Test end to end. Click a test link, complete a real or sandbox conversion and confirm that it appears in the tracker with the correct payout and sub IDs.

Common problems and fixes

ProblemLikely causeFix
Conversion missing in trackerClick ID lost in redirectPass the click ID through every step and store it early
Duplicate conversionsPostback fired more than onceUse a unique transaction ID and deduplicate
Wrong payoutOrder value sent with tax or shippingAgree on the value definition with the network
Postback returns an errorWrong parameter names or tokenCompare with the tracker's documentation
Delay in reportingQueue or batch processingSend postbacks as soon as the status is confirmed

If numbers still differ across systems, follow the process in Tracking Discrepancy in Affiliate Marketing.

Privacy and compliance notes

  • Do not include personal data such as email or phone number in postback URLs.
  • Store click IDs and conversion data according to your retention policy.
  • Align tracking with your consent flows and privacy policy.

Go-live checklist

  • Conversion events and statuses are defined
  • Click ID is captured on landing and stored with the order
  • Postback URL uses HTTPS and a secret or allowlist
  • Unique transaction ID is sent on every call
  • Refund and rejection updates are supported
  • Test conversions verified in the tracker
  • Alerts exist for postback failures

Conclusion

Server-side tracking takes more setup than a pixel, but it gives you control and accuracy that browser-based methods cannot match. Capture the click ID, store it, send a secure postback and test with real conversions. Then monitor it as you would any production system.

Need help implementing S2S postbacks for your offers?

Join thousands of publishers monetizing their audience with NextagMedia.

Talk to our tracking team

Frequently Asked Questions

It is a method where the advertiser's server reports conversions directly to the tracking platform, using a click ID, instead of relying on a pixel in the visitor's browser.

For payout-grade accuracy, usually yes. It is less affected by ad blockers and cookie restrictions, though it needs more technical setup.

In most cases yes. The advertiser's backend must store the click ID and call the postback, though many platforms provide templates and documentation.

Yes. Many teams use postbacks as the primary method and keep a pixel as a backup, with deduplication so conversions are not counted twice.

Use a test click link, complete a conversion, then check that the tracker shows the right click ID, payout and status. Repeat after any change to the checkout flow.

Get Growth Insights in Your Inbox

Join thousands of marketers getting weekly affiliate & performance marketing insights.

No spam. Unsubscribe anytime.

Browse High-Converting Offers

Find your next top-performing offer from our curated marketplace.

Browse Offers
Anupam Kumar
Anupam Kumar

Performance Marketing Strategist

Anupam kumar a full-funnel performance marketing strategies that connect paid acquisition to affiliate and partnership channels. He has spent his career optimizing campaigns across search, social, and native platforms, with a particular focus on attribution modeling and budget allocation. Anupam writes frequently about the intersection of paid media economics and affiliate performance.

Comments