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.

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?
| Aspect | Client-side (pixel) | Server-side (postback) |
|---|---|---|
| Where it runs | In the visitor's browser | On the advertiser's server |
| Affected by ad blockers | Often | Rarely |
| Depends on cookies | Usually | No, uses a click ID |
| Setup effort | Low | Medium to high |
| Data control | Limited | Full |
| Best for | Quick tests, backup | Payout-grade tracking |
For background on the pixel approach, see Tracking Pixels Explained.
How does a server-side flow work?
- A visitor clicks an affiliate link. The tracker records the click and generates a click ID.
- The tracker redirects to the advertiser's landing page with the click ID in the URL.
- The advertiser's site saves the click ID in its session, a first-party cookie or the order record.
- When the visitor converts, the advertiser's backend calls the tracker's postback URL with the click ID and conversion details.
- The tracker matches the click ID and credits the publisher.
A typical postback URL looks like this (illustrative):
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
| Problem | Likely cause | Fix |
|---|---|---|
| Conversion missing in tracker | Click ID lost in redirect | Pass the click ID through every step and store it early |
| Duplicate conversions | Postback fired more than once | Use a unique transaction ID and deduplicate |
| Wrong payout | Order value sent with tax or shipping | Agree on the value definition with the network |
| Postback returns an error | Wrong parameter names or token | Compare with the tracker's documentation |
| Delay in reporting | Queue or batch processing | Send 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.
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.

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
Related Articles
What Is a Postback URL? S2S Tracking Explained
Postback URLs are the most reliable way to record affiliate conversions. Learn how server-to-server tracking works, with a clear example and fixes for common errors.
First-Party vs Third-Party Tracking: Which Should Advertisers Use in 2027?
First-party tracking gives advertisers control and resilience, while third-party tracking is easier to start. Compare both and choose the right mix.
Conversion API (CAPI) vs Pixel: Which Is More Accurate for Affiliates?
Pixels run in the browser and conversion APIs run on the server. Learn which is more accurate and why most teams use both.
Deduplication in Affiliate Tracking: Avoid Paying Twice for One Sale
One sale, two payouts is a costly bug. Learn what causes duplicate conversions and how deduplication rules protect your budget.



