What Is a Postback? Postback Tracking for Installs

A postback is a server-to-server message that tells a tracking or advertising system a conversion happened, such as an app install, a signup or a sale. Instead of a pixel firing in the user's browser, the server that saw the conversion sends an HTTP request to another server, carrying the click ID that ties the conversion back to the ad or link that started it. Postback tracking is how affiliate networks, ad networks and app marketers count installs and revenue they can't see in a browser.

This guide explains what a postback is, how postback tracking works step by step, what a postback URL looks like, how postbacks differ from pixels and webhooks, and where things usually break. The last section shows how Smler covers the same jobs for links and deep links: a click ID on every click, conversion and sale events your app or server sends to Smler, and click webhooks Smler sends to you.

What is a postback?

A postback is an HTTP request, usually a GET or POST, that one server sends to another to report that a tracked event took place. The name comes from the direction of the call: the conversion data is "posted back" to the party that sent the traffic. Other names for the same thing are server-to-server tracking, S2S tracking, server postbacks and conversion callbacks.

Every postback carries three kinds of data:

  • An identifier: the click ID (sometimes called a transaction ID or sub ID) that the tracking system created when the user clicked.
  • An event: what happened, like an install, a registration, a first purchase or a subscription renewal.
  • Values: optional details such as revenue, currency, an order ID or a timestamp.

Because the request goes from server to server, it doesn't depend on cookies, browser scripts or ad blockers in the user's browser. That is why postbacks became the standard for counting conversions that happen inside mobile apps, where a browser pixel can't run at all.

How does postback tracking work?

Postback tracking works by passing one click ID along the whole journey and sending it back when the conversion happens. The flow has five steps:

  1. The click. A user taps an ad, an affiliate link or a short link. The tracking server records the click and creates a unique click ID.
  2. The redirect. The tracking server sends the user on to the landing page or app store, with the click ID attached to the URL or stored where the destination can read it.
  3. The capture. The destination keeps the click ID. A website stores it with the session or the order. An app reads it on first open, for example from the install referrer on Android.
  4. The conversion. The user installs, signs up or pays. The server that records this event looks up the stored click ID.
  5. The postback. That server sends an HTTP request with the click ID and the event to the tracking system, which credits the conversion to the original click, campaign and partner.

The whole method stands on step 3. If the click ID is lost between the click and the conversion, there is nothing to post back, and the conversion shows up as organic or unattributed.

What does a postback URL look like?

A postback URL is the address the converting server calls, with placeholders, often called macros or tokens, that it fills in with real values for each conversion. The format below is a generic example to show the pattern. It is not a Smler format, and each network defines its own parameter names:

Code
https://tracker.example.com/postback?click_id={click_id}&event={event_name}&payout={revenue}&currency={currency}

When a user who came through click abc123 makes a purchase, the advertiser's server replaces the placeholders and calls:

Code
GET https://tracker.example.com/postback?click_id=abc123&event=purchase&payout=49.99&currency=USD

Many systems accept the same data as a POST with a JSON body, which is easier to extend with more fields. Again, a generic example:

Code
POST https://tracker.example.com/postback
Content-Type: application/json

{
  "click_id": "abc123",
  "event": "purchase",
  "revenue": 4999,
  "currency": "USD",
  "order_id": "ORD-1042"
}

The tracking system usually answers with a 200 status when it accepted the event. A sender should retry on errors and send each conversion only once, so a retry doesn't count the same sale twice.

How is a postback different from a tracking pixel?

A postback is sent by a server, while a tracking pixel is loaded by the user's browser on a thank you page. Both report conversions, but they fail in different ways:

Postback (server-to-server)Tracking pixel (client side)
Who sends itYour server or the app's backendThe user's browser
How it links to the clickA click ID stored and sent backA cookie set at click time
Works inside mobile appsYesNo, there is no browser page to load it
Blocked by ad blockers or cookie limitsNoCan be
Can be faked from the browserHard, when the request is authenticatedEasier, anyone can load the pixel URL
Setup effortNeeds a developer to store and send the click IDPaste a snippet on a page

Pixels are faster to set up for a website. Postbacks are the reliable choice for installs, in-app events and anything that involves money, because revenue reported from a server can be trusted more than revenue reported from a browser.

How is a postback different from a webhook?

A postback and a webhook are both HTTP calls one server makes to another when something happens, so the technology is the same. The difference is in the job and the direction:

  • A postback reports a conversion back to the system that sent the traffic, so that system can credit a click, a partner or a campaign. The receiver defines the format.
  • A webhook notifies any system you choose that an event happened, so it can act on it: post to Slack, update a CRM, start a workflow. The sender defines the format.

In practice the words overlap. When a payment provider calls your server after a successful charge, that is a webhook. When your server then reports the sale with its click ID to your attribution tool, that is a postback. Many attribution setups chain the two.

How does postback tracking work for app installs?

Postback tracking for app installs works the same way as for web conversions, except the click ID has to survive a trip through the app store. A store install drops the URL the user clicked, so the app needs another way to get the click ID back on its first open:

  • Android: the Play Install Referrer passes a referrer string from the store listing to the installed app. If the click ID is in that string, the app reads it on first launch. The match is deterministic.
  • iOS: there is no install referrer, so tools use other ways to carry the click, such as clipboard matching, with probabilistic matching (device and network signals) as a fallback.

Once the app has the click ID, it, or better its backend, reports the install, then later reports events such as signup or purchase with the same ID. This is the same job deferred deep linking does when it carries a user to the right screen after install, which is why install attribution and deferred deep linking usually share one setup. The guide to deferred deep linking covers that flow in depth, and deterministic vs probabilistic attribution explains the matching methods.

Which events should you send as postbacks?

The events you send as postbacks should be the ones that show whether a campaign paid off, not every screen view. A useful set for most apps and SaaS products:

EventWhen to send itWhy it matters
Install or first openOn the first launch after installCounts the users each link or campaign brought
Lead or signupWhen the account is createdShows which sources bring users who engage
Trial startWhen a trial beginsAn early sign of intent before revenue
Sale or subscriptionAfter the payment succeeds, from your serverTies revenue to the click that started it

Send the sale only after your payment processor confirms it, and send it from the backend. A purchase reported from the app or browser can be intercepted or changed before it reaches the tracker.

What are the most common postback tracking problems?

The most common postback tracking problems come from losing the click ID or sending the event the wrong way:

  • The click ID is dropped in a redirect. A redirect that strips query parameters, or a landing page that never stores the ID, leaves nothing to send back.
  • The click ID isn't persisted. A user may install today and pay next week. If the app forgets the click ID after the first session, the later sale can't be attributed.
  • Duplicate postbacks. Retrying without checking for an earlier success counts the same conversion twice. Track each conversion once and clear the stored ID after it succeeds.
  • Wrong macros or parameter names. An unfilled placeholder like {click_id} arriving as literal text means the macro name didn't match the sender's format.
  • Revenue in the wrong unit. Some systems expect whole currency units, others the smallest unit, like cents. Check which one before going live.
  • Client side sends. Firing a revenue event from the browser or app instead of the server invites fake or altered conversions.

Test the full path before launch: click a real link, install or open the app, complete the event, and confirm the conversion appears against that exact click.

How does Smler handle postback tracking?

Smler handles postback tracking through a click ID on every link click and conversion calls your app or server makes to Smler's API. Smler doesn't describe these as postbacks, but they do the same job: they report an install, lead or sale back with the ID of the click that started it. The pieces, from Smler's attribution docs and its conversion tracking docs:

Mark an install or app action as a conversion

Smler creates a click ID for each click and passes it through the redirect. When the app opens for the first time after install, it reads the click ID (on Android from the Play Install Referrer, on iOS from the clipboard, where the link copied it before the App Store opened; a probabilistic fallback on IP address, OS, device model and recency can fill gaps, and on iOS it is off unless you enable it) and calls Smler to mark that click as converted:

Code
POST /api/v2/track/:clickId
Content-Type: application/json

{
  "shortCode": "spring-offer",
  "domain": "go.yourdomain.com"
}

Smler's docs recommend marking the download as the conversion, and you can also send it after a signup or another action. Track each conversion once. You can make this call through the Smler deferred link package for React Native (@smler/deferred-link) or Flutter (smler_deferred_link), or by calling Smler's API directly; the package is the easier route.

Report leads and sales from your server

For revenue, Smler has a server side conversion API authenticated with your API key in an x-code header: POST /api/v2/conversion/track/lead for events before a purchase, such as a signup or trial start, and POST /api/v2/conversion/track/sale for purchases. A sale takes your own customer ID and an amount in the smallest currency unit, plus whichever attribution hints you have, such as the click's touch ID. The API reference lists every field and how Smler scores each match.

Get notified of clicks with webhooks

Smler's outgoing messages are click webhooks, not conversion postbacks. You set a webhook URL per custom domain, and every click on a short link under that domain sends a JSON POST to your endpoint with the click's location, device, browser, OS, referrer and short link. Failed deliveries are retried with exponential backoff. Apps using the React Native package can also have the webhook fired when they resolve a deep link. Setup and the payload are in the webhooks docs. Smler can also forward every click server side as a GA4 link_click event and a Meta Conversions API PageView event, as described in its GA4 and Meta Pixel docs. Those are all of Smler's outbound events: click webhooks, GA4 link_click and Meta PageView, all fired on clicks. Smler sends no outbound install, lead or sale postbacks, to you or to ad networks.

For the product view of install tracking, see mobile app attribution and deferred deep linking.

Frequently asked questions

What does postback mean in tracking?

In tracking, a postback is a server-to-server request that reports a conversion, with its click ID, back to the system that sent the click, so the conversion is credited to the right ad, partner or link.

Is a postback the same as S2S tracking?

Yes. Postback tracking, server-to-server tracking and S2S tracking describe the same method: the converting server reports the event directly, without a browser pixel.

Do postbacks need cookies?

No. A postback relies on a click ID that your server or app stores and sends back. Cookies may help carry the ID on a website, but the postback itself is a server request.

Why use postbacks for app installs instead of pixels?

A pixel needs a browser page to load, and an install happens in an app store and an app. A postback can be sent from the app's backend once the app reads the click ID on first open.

Does Smler send postbacks to ad networks?

No. Smler sends no outbound install, lead or sale postbacks. It receives conversion events from your app or server through its API. Its outbound events all fire on clicks: click webhooks to an endpoint you set for each custom domain, a GA4 link_click event and a Meta Conversions API PageView event.