Postback vs pixel tracking explained
A tracker only knows about a sale if someone tells it. There are two common ways to do that: a postback and a pixel. TrafficTaps supports both.
What is a postback?
A postback (also called server-to-server, or S2S) is a message sent from one server to another. When a sale happens, your affiliate network's server calls a URL on TrafficTaps and includes the click ID, the payout and a unique transaction ID. The visitor's browser is not involved.
- Good: it does not depend on cookies, ad blockers or the visitor staying on the page.
- Needs: a network that can send postbacks, and the click ID passed through the offer link.
What is a pixel?
A pixel is a small script that you place on your thank-you page. When the visitor lands there after buying or signing up, the script runs in their browser and tells TrafficTaps about the conversion.
- Good: it works when you own the thank-you page but cannot set up a postback.
- Watch out: it runs in the browser, so blockers can stop it, and it needs the visit to be recognised, by cookie or by a click ID passed in the link.
Side by side
| Question | Postback | Pixel |
|---|---|---|
| Where does it run? | Between servers | In the visitor's browser |
| Can a blocker stop it? | No, the browser is not involved | Yes, it can be blocked |
| Who sets it up? | The network, with a URL you give it | You, on your own thank-you page |
| Works with a third-party offer page? | Yes, if the network supports it | Only if you control the page |
Which should you use?
Use a postback when your network supports it. It is the most reliable. Use a pixel when you own the page where the conversion happens and have no postback option. You can also use both, for example a postback for the sale and a pixel for a lead event on your own page.
Avoiding double counting
If a sale is reported twice, it should still count once. TrafficTaps blocks duplicates using the transaction ID (txid), so always send a unique ID for each sale. If you use both a postback and a pixel for the same conversion, make sure they send the same transaction ID.
Next steps
Read the docs for Postback URL, JS pixel and Duplicate blocking.