October 15, 2026
Server-to-server (S2S) tracking, also known as postback tracking, is a method of tracking conversions or events that involves sending data between servers, eliminating the need for a user’s browser involvement.The workflow for S2S postback tracking involves several key steps:
- Capturing the affiliate’s tracking parameters from the referral URL (
ref, ortap_aandtap_swhen the program does not use referral codes) and storing them. - Sending an S2S request to Tapfiliate’s conversion postback endpoint or customer endpoint after a successful purchase. Authentication is done with the account’s API key, sent in the
X-Api-Keyrequest header. The key cannot be passed in the URL, so a tool that can only call a postback URL, such as an ad tracker (for example Voluum or RedTrack), cannot send conversions to Tapfiliate directly: it needs a small server of your own in between that receives the tracker’s postback and calls Tapfiliate with the key in the header. - Including a unique ID (
external_id, your order or transaction ID, for a conversion;customer_idfor a customer) and what tells Tapfiliate which affiliate it belongs to. Send one of: the coupon code (coupon), the click ID (click_id), the affiliate’s referral code (referral_code, which is therefvalue in their link when the program uses referral codes), the asset and source IDs from their link (asset_idandsource_id, thetap_aandtap_svalues), or the tracking ID (tracking_id). For a conversion, thecustomer_idof a customer Tapfiliate already knows can be enough on its own: if lifetime/recurring commissions are switched on in the program, it decides the affiliate before anything else you send, so send it with every renewal. If that customer has no affiliate, the conversion is rejected; with lifetime/recurring commissions, it is also rejected if the customer is canceled or has reached the recurring limit. Without lifetime/recurring commissions, thecustomer_iddoes not decide the affiliate, and you need one of the values above. For the full order, see Create a conversion.
Additionally, Tapfiliate supports outgoing postbacks to affiliates’ systems using macros like
${click_subid}, ${commission_amount}, and ${conversion_external_id}. These macros allow for seamless integration and data sharing with affiliate systems.Server-to-server tracking is generally considered to be a more effective and reliable method for tracking in-app conversions compared to cookie-based tracking. Cookies can be blocked or deleted by users, which can result in incomplete or inaccurate conversion tracking.
With direct server-to-server communication, S2S tracking ensures accurate tracking of all conversions, even those that occur offline or without a network connection.
To ensure consistent tracking, merchants should capture and store the
transaction_id from the affiliate’s referral link when a user clicks it. When sending conversion data via the Conversion API, include the transaction_id as metadata. This ensures the transaction_id is preserved throughout the tracking flow, enhancing accuracy and fraud prevention.Postback tracking can help detect and prevent fraud by providing more detailed data on conversions (such as the time of conversion, the conversion value, and the transaction ID), and overall more control over how to regulate and secure that information.
For payments processed outside of Tapfiliate’s standard tracking methods, the platform supports advanced API tracking. Merchants can send conversion data directly from their backend to Tapfiliate, ensuring accurate tracking of externally processed payments. To learn more about how to implement this integration, refer to our step-by-step Postback Integration guide here. Please bear in mind that S2S tracking is a more advanced tracking method that requires some technical expertise to set up and configure. You may need a developer to assist in setting this up.
Who can use S2S tracking method with Tapfiliate?
Postback integration can be used by anyone who has a custom website or content management system.Important: If you don’t have access to the backend of your system (like in Shopify or WIX stores, etc.) you will not be able to implement this integration.