A fintech team had clean install data in AppsFlyer, clean revenue data in Stripe, and no way to join them. AppsFlyer tracked installs with campaign and ad set IDs. Stripe recorded subscription activations against user IDs. Between the two systems sat an identity join that neither was performing. The team could report installs per campaign and revenue in total, but not revenue per campaign. Budget decisions ran on install CPI while the actual acquisition return stayed unknown.
The gap was not novel data engineering. It was an architecture decision that kept getting deferred. Most mobile stacks already contain the pieces needed to connect campaign IDs to revenue events. What goes missing is the explicit design of the join path and the server-side posting that keeps it working.
Three components, in order
Install-to-revenue tracking needs three things to line up: the attribution token stored at first install, a user record that persists through the funnel, and server-to-server posting that carries the token alongside each revenue event.
The token comes from your MMP at install time. AppsFlyer uses the af_click_id. Adjust uses the adjust_id. Branch has its own tracking token. Each encodes campaign, ad set, and creative attribution for that install. It has to be pulled from the MMP SDK callback at first launch and written to your user database as a durable field on the user record.
The common failure at this step is keeping the token only in local device storage. A reinstall, a new device, or a cleared cache erases it. For subscription products with long revenue cycles, a meaningful share of activations happens after one of those events. Storing the token server-side against the user record is the only way to survive them.
Treat token storage like a primary key rather than a marketing field. Give it its own column, a named owner, and a rule that it is written once at first install and never overwritten with a blank value. Most failures that surface months later trace back to a null token nobody flagged because the field was optional.
Campaign ID propagation through account creation
Account creation is where propagation usually breaks. The normal sequence is install, MMP attribution, token on device, onboarding, account creation, backend user record. Unless the token is explicitly passed into the account creation API call, it stays on the device and never reaches the user record.
The fix is small: add the token as a parameter on the account creation request and write it to the new user record at insert time. After that it travels with the record into every downstream server-side operation.
Guest modes and delayed registration need slightly more care. Hold the token in app state, tie it to the guest session ID, and pass it along whenever registration finally happens. Migrating it to the user record at that point preserves continuity for users who wait.
Instrument the join with two counters: installs the MMP recorded, and user records that carry a token. If the second is materially lower, the gap is in account creation, and it is measurable long before anyone builds a revenue report.
Server-to-server revenue event posting
Server-to-server posting sends revenue events from your backend to the MMP API instead of relying on the in-app SDK. For revenue, S2S is more dependable because it does not require the app to be open when the event fires.
A renewal fires on its billing date whether or not the user has opened the app that week. The billing system holds the user ID and the amount. Your backend looks up the token on the user record, builds the postback with the campaign context attached, and sends it to the MMP. None of it depends on the device.
The minimal payload carries the MMP tracking token, a hashed user ID for privacy, the event name (in-app purchase, subscription activation, renewal), revenue amount, and currency. The MMP enriches it with the attribution it already holds for that token and surfaces the result in your reports.
Revenue event schema
{
"mmp_token": "af_click_id_value_here",
"user_id_hashed": "sha256_of_user_id",
"event_name": "subscription_activated",
"revenue": 9.99,
"currency": "USD",
"timestamp": "2026-02-05T14:32:00Z",
"transaction_id": "txn_unique_id"
}
The transaction ID exists for deduplication. Any S2S system worth running retries after network failures, and a retry must not create a second revenue event in the MMP. A unique ID per event lets the MMP collapse the retry.
Currency is not a cosmetic field. Posting a JPY amount as though it were USD inflates revenue by two orders of magnitude, and that mistake is easy when a payment processor reports minor units. Decide once whether amounts are minor or major units, then validate the choice at ingest rather than at reporting time.
Validating end to end
Before trusting campaign-level revenue, test the pipeline on known transactions. Take 20 recent subscription activations from the payment system, look up each user record, confirm a token is present, build the postbacks by hand, and compare the resulting attribution with what the MMP already reports for those users. Matching campaign attribution means the path works.
The most common discrepancy is a missing token on the user record, which points back to the account creation gap. Token mismatches come next: device storage and the MMP's record disagree for the same install, usually after a reinstall or device change where the token was never refreshed.
Repeat the validation after any change to onboarding, the MMP SDK, or the payment provider. The join path is a chain, and each link has an owner who can change it without telling the analytics team.
When S2S is worth building
SDK-only attribution is not wrong at every stage. For an early app under 20,000 monthly installs with a simple immediate-purchase funnel, the S2S build may cost more than the accuracy it adds. For apps with free trials, subscriptions, or any revenue event more than 48 hours after install, server-side posting is the only dependable way to hold campaign-level revenue attribution together. The question is timing: volume and revenue cycle length decide whether it is urgent this quarter or next.
A useful forcing question: can your team produce revenue per campaign for last month without opening a spreadsheet? If not, the pipeline is a decision that has been waiting too long.