AppsFlyer Implementation Mistakes: SDK Start, ATT, Postbacks and Revenue

The costliest AppsFlyer setup mistakes are duplicate revenue from multiple senders, software development kit (SDK) start or App Tracking Transparency (ATT) sequencing that loses install evidence, and missing Apple postback copies. Validate those boundaries before optimizing campaigns. This guide turns installation, identity, events, revenue and deep links into separate acceptance tests, then reconciles one controlled journey from click to verified business outcome.

Jafrin Akter AloLast updated 16 min read
On this page
A phone feeds white records along a pink conveyor through a blue checking gate, beside the headline AppsFlyer QA.

An event visible in a dashboard proves only part of the integration. It does not prove that the event belongs to the intended installation, represents settled revenue or reached an advertising partner with the right meaning.

This guide focuses on mobile apps using the AppsFlyer SDK, with server-to-server (S2S) events where appropriate. The exact APIs depend on platform, framework and SDK version. Use the diagnostic sequence below to identify the broken boundary before changing campaign settings.

1. Why is an app-open event insufficient to approve the integration?

An app open does not establish correct attribution, revenue or routing. Write a release acceptance specification with separate evidence for installation, attribution, business events, revenue and deep linking. A successful SDK connection should not approve all five.

For a controlled acquisition journey, record the app build, operating system, test device, permission state, link used, expected destination and expected outcome. Keep test identifiers in a restricted quality assurance (QA) record rather than copying production customer data into tickets.

AppsFlyer's marketer testing guide provides install, event and deep-link testing workflows. Its SDK Integration Tests page requires a collected device identifier, which affects how an iOS non-ATT test is performed. Follow the applicable procedure rather than treating a missing test-viewer result as proof that all measurement failed. AppsFlyer integration testing

Our AppsFlyer implementation and QA work separates these acceptance conditions so a team can tell whether it has an SDK problem, an attribution problem or an event-definition problem. Each requires different evidence and usually a different owner.

Use a registered device for the SDK Integration Tests install flow. AppsFlyer's separate re-attribution test requires an unregistered device and the documented retargeting setup. Choose the procedure that matches the outcome being tested; repeated uninstalling and reinstalling alone does not establish that outcome.

2. Where should the SDK start on Android and iOS?

Start in the documented app lifecycle and verify the build's app identifier. If installation or foreground evidence is missing, inspect the implementation before adjusting attribution windows.

2. Where should the SDK start on Android and iOS?
PlatformDocumented starting pointCommon defectCheck in an isolated debug build
AndroidInitialize in the global Application class; start after initialization in Application.onCreateInitialization exists but startup is skippedCapture first-launch initialization and start sequence
Android with deferred startKeep initialization in Application; pass the Activity context when starting from an ActivityIncorrect context or a screen never reachedExercise the actual deferred path and early exit
iOSCall start in applicationDidBecomeActive or a did-become-active notification observerFirst launch works but foreground activity is missedBackground and reopen after the configured session interval

Android's applicationId must match the app in AppsFlyer. Both platform guides describe debug logging; enable it before the SDK calls being inspected and remove it from release builds. The default minimum interval between sessions is five seconds, so a rapid foreground toggle is not a valid expectation of a new session every time. Android SDK integration, iOS SDK integration.

Keep a trace with build, app ID, lifecycle callback, permission state and transmission outcome. Test a first launch, a later foreground and the user's early exit from onboarding. A clean sequence in the development target does not establish that the release target has the same configuration.

3. Why do customer IDs and installation IDs produce different joins?

Your account ID answers who the customer is in your system. The AppsFlyer ID associates measurement with an app installation. Treating either as a universal substitute for the other breaks joins, especially when a person has multiple devices or reinstalls.

Mobile S2S events require the relevant appsflyer_id; an arbitrary installation attached to the customer is not an adequate mapping. AppsFlyer mobile S2S events

For example, a customer might subscribe on an iPhone and later sign in on an Android tablet. A renewal from the billing backend needs an explicit association policy. “Use whichever device logged in most recently” silently changes attribution when device activity changes.

Store the mapping with enough context to inspect the decision: your opaque customer reference, app identifier, AppsFlyer ID, platform, time observed and the transaction or subscription association. Limit access and retention according to the purpose of the data.

Customer User ID (CUID) timing matters too. AppsFlyer documents that setting it after SDK start associates it with subsequent events, not earlier ones. It also warns that waiting for a CUID can block sending if that ID never becomes available. AppsFlyer CUID guidance

Do not hold first-launch measurement indefinitely while waiting for someone to register. Decide what anonymous use means, when an account reference becomes available and how the two states are related. Use a non-identifying internal reference rather than a raw email address.

4. What happens when the ATT wait does not match the actual prompt?

An ATT wait can delay transmission until a response or timeout, so it must match the app's real permission sequence. On iOS, permission behavior belongs in the implementation specification. Test authorized, denied and unresolved states as separate journeys. A single consenting developer device cannot represent all three.

AppsFlyer's iOS integration guide says to use waitForATTUserAuthorization only when the application intends to request tracking authorization. The wait is configured before SDK start, with a timeout appropriate to when the prompt appears. AppsFlyer iOS integration

The practical failure is often a mismatch between product design and engineering assumptions. The SDK waits at launch, while the product only shows the prompt after a tutorial that some users never finish. Alternatively, the SDK starts before the intended wait is configured.

Draw the actual sequence: app launch, SDK configuration, permission request if applicable, response or timeout, SDK transmission and first meaningful business event. Record timestamps in a debug build. Check that the app remains usable if the user leaves early or declines permission.

ATT is not a switch that guarantees complete attribution, and a denied permission is not a reason to manufacture a replacement identifier. Work within supported measurement methods and the permissions actually granted. The mobile attribution guide explains why different measurement paths should be interpreted separately.

5. How do missing SKAN and AdAttributionKit postback copies affect measurement?

Configure both Apple postback-copy destinations before diagnosing missing aggregate attribution. AppsFlyer's bulletin says Apple Ads uses AdAttributionKit from iOS 26.2; iOS 26.1 and earlier use SKAdNetwork. A setup that forwards only the older path is incomplete for that split. Apple Ads bulletin.

In the app's Info.plist, configure NSAdvertisingAttributionReportEndpoint and the Xcode setting displayed as AdAttributionKit - Postback Copy URL, both with https://appsflyer-skadnetwork.com/. Use the documented Xcode setting rather than guessing its serialized plist structure. AppsFlyer's guide requires a published app version for these copies; TestFlight alone is not the validation path. Postback-copy configuration.

Then inspect Postbacks copy (direct from Apple). Its Data Locker topic is skad_postbacks_copy; the report contains winning postback copies. Confirm the available raw-data delivery method and entitlement in your account before planning an export. These are measurement records, not a live debug console. SKAN raw-data reports.

Retain the released version, endpoint configuration and a dated received-copy sample. No eligible traffic or an unreleased configuration can explain an empty report; absence alone does not identify the broken component. Keep the network's postback integration too, because direct copies do not replace every enrichment it supplies. The mobile attribution guide explains which ad Apple credits with the install.

6. Why can two senders count the same purchase twice?

Both app and backend can report the same verified transaction unless one path owns it. Sending from the app for speed and the backend for reliability creates a duplicate risk, not automatic resilience.

AppsFlyer documents a duplicate mechanism for identical SDK in-app events within ten seconds. It explicitly says S2S in-app events are not deduplicated by that mechanism. Do not rely on the SDK rule to protect backend retries or a combined SDK and S2S design. AppsFlyer in-app events

Give each business outcome one authoritative reporting path and one canonical name for each business event. The app can report checkout interaction while the verified billing path reports a completed transaction. Those are different events with different purposes.

For backend delivery, maintain your own delivery ledger keyed to a stable business occurrence, such as a store transaction reference. A retry should reuse the same logical occurrence. A renewal should have its own occurrence, even though it belongs to the same subscription.

Do not assume an event_id field automatically provides platform-wide idempotency. Partner deduplication and AppsFlyer ingestion are separate contracts. If a network also receives a direct integration, validate that network's supported deduplication path before running both.

ROI360 store revenue is a separate branch, currently documented as a Premium feature. Its purchase connector and store notifications handle validation and transaction processing; AppsFlyer warns against parallel in-app purchase events that duplicate its revenue. Confirm the active product and connector before adding a manual sender. ROI360 store revenue

7. Which purchase state should create revenue?

Use the verified transaction state defined by your revenue contract, rather than purchase intent. Define the state transition that earns the revenue event. A paywall view, checkout request, pending payment and verified charge are different states. A return to the app after a store dialog does not, by itself, prove a completed transaction.

For manually reported in-app revenue, AppsFlyer uses af_revenue; its guidance also distinguishes gross revenue from an optional net revenue value. Use the field for an actual revenue-generating business event, and document what the amount includes. AppsFlyer revenue parameters

Use one currency policy across the event producer and reconciliation report. Keep the original transaction currency available, and do not sum different currencies as though they were interchangeable. If the finance comparison includes store fees or taxes while the event does not, label the difference before calling it a tracking defect.

Illustrative QA ledger in USD, with no currency conversion, tax or fee adjustment. Recognized purchase revenue in this fixture requires a verified transaction; these are expected test outcomes, not vendor results or an accounting policy.

7. Which purchase state should create revenue?
RecordAmount, USDExpected business treatmentFailure detected
Verified qa_tx_10112.00One purchaseMissing or duplicate sender
Verified qa_tx_10220.00One purchaseIncorrect amount
Retry of qa_tx_10112.00No additional purchaseRetry treated as new occurrence
Pending checkout7.00Exclude from verified purchasesIntent counted as revenue
Partial refund of qa_tx_1025.00Refund against original transactionRefund omitted or disconnected

Expected gross verified purchases are USD 32.00 across two transactions, refunded amount is USD 5.00, and the remainder is USD 27.00 before tax or fee adjustments. A duplicate purchase produces USD 44.00 gross; also counting the pending checkout produces USD 51.00.

Run this fixture through the revenue mechanism your app actually uses. If ROI360 owns the store lifecycle, test that path and its generated events rather than adding a parallel manual refund flow. The ledger is the expected business outcome; the vendor-specific event mapping must be verified against the selected integration.

8. How can S2S formatting and timing change the reported event?

A valid HTTP request can still carry the wrong business meaning. Check the installation association, event timestamp, revenue representation and payload shape independently.

The S2S payload requires a stringified eventValue and unformatted numeric revenue. Its timestamp rule preserves qualifying same-day events and previous-day events arriving before 02:00 UTC; older late events use arrival time. S2S formatting and timestamps.

For example, a Monday 21:00 UTC event delivered Tuesday at 01:00 retains its occurrence time; delivery on Wednesday at 09:00 uses arrival time. Use both deliveries as acceptance cases and compare the occurrence and arrival timestamps in the resulting records.

Keep both occurrence time and delivery time in your internal ledger. They answer different questions: when the customer acted and when the integration delivered the evidence. Alert on queue age before delayed delivery becomes an unexplained reporting shift.

Use a payload validation step before transmission. Reject missing installation references, malformed amounts, unknown currencies and events that do not belong to the selected app. Keep failures visible in a retry or quarantine queue rather than silently substituting empty values.

Also align reporting dates: Overview's LTV view uses install date, whereas event raw reports use event date. Comparing those scopes directly creates apparent gaps. S2S reporting dates.

A deep link has a product job: open the intended content safely. Attribution has a measurement job: describe the source of the acquisition or engagement under the available rules. Test them separately.

For new users, AppsFlyer's iOS Unified Deep Linking documentation limits the returned deferred deep-link parameters to deep_link_value and deep_link_sub1-10; other attribution parameters can be null. Do not make the route depend on receiving a campaign name through that callback. iOS Unified Deep Linking

Define an allowed route contract. For a promotional lesson link, the app might accept a known lesson reference and an approved offer reference. It should handle missing content, expired offers, a logged-out user and a user who already owns the product.

Test a new installation and an already installed app. Then test an unavailable destination. The fallback should be an intentional useful screen, not a crash or a blank view. Validate that the customer reaches the content after authentication if authentication is required.

Keep secrets and sensitive customer data out of marketing links. A route value is an instruction to the application, not a place to store a customer profile.

10. How do test devices and debug builds contaminate production data?

Repeated staff installs and test purchases can look like acquisition and revenue unless the team can identify them. Follow the registration requirement for the chosen test: registered for the SDK install flow, unregistered for the re-attribution test. Use isolated app targets where supported and filterable QA transaction references in your own ledger. Registration enables testing; it does not justify assuming every downstream report automatically excludes the test data.

Before a QA run, record the devices, build identifiers and test time window. Afterward, reconcile those records against the attribution and purchase outputs. Keep expected exclusions explicit so a dashboard correction does not remove genuine customer traffic.

AppsFlyer's Android guide describes a separate debug app identifier and warns against leaving sensitive debug logging on when distributing the app. Verify the final release configuration, including logging, rather than relying on a developer's local setting. Android SDK integration.

11. Why can billable conversions rise while new paid installs stay flat?

Conversions include attributed installs, re-engagements and re-attributions, so a retargeting launch can change usage without adding the same number of first-time customers. Organic installs and actions are not billable conversions under the published definition. AppsFlyer pricing.

For SKAN billing, AppsFlyer says its configured Single Source of Truth (SSOT) is used; otherwise it compares SKAN and real-time attribution daily by media source and uses the higher count. Do not sum both streams. The cited billing page does not separately establish an AdAttributionKit billing formula, so confirm that treatment and account-specific terms rather than extending the SKAN rule by assumption. Billing policy.

Separate a reinstall from a new acquisition

Check the applicable re-attribution window before calling a reinstall missing. AppsFlyer's default is 90 days, configurable from one to 24 months. Window changes affect evaluation of subsequent installs; record the setting and change date. Re-attribution window.

Separate a reinstall from a new acquisition
Subsequent app installationWindow and engagement conditionExpected classificationDiagnostic implication
Within the applicable windowNo qualifying retargeting engagementReinstallNot another new-acquisition install
Within the applicable windowQualifying retargeting engagementRe-attributionInspect the retargeting/unified view
After the applicable windowEligible installation under current rulesNew installAttribution still depends on available engagement evidence

The classification does not mean every row is a paid conversion; organic activity remains distinct. Compare the monthly usage breakdown by type with the forecast, and review how AppsFlyer bills re-engagements and re-attributions before changing a contract or window.

How do you isolate the failure before a campaign launch?

Trace one known transaction forward. Do not begin by adjusting attribution windows to make totals resemble a network dashboard.

Trace a known transaction from installation to partner evidence before changing attribution settings. Repair the failed boundary, then repeat the same released-build and revenue specimen rather than accepting an app open or matching aggregate alone.

How the workflow fits together
Start with a known click and test installation, repair SDK/permission or customer-mapping failures, and reconcile one authoritative transaction. Check reporting dates, Apple postback copies, partner delivery and link destinations before release.
Read diagram as text
  • Record the known click build and test installation to Install evidence and customer mapping verified?.
  • Install evidence and customer mapping verified? to Repair SDK lifecycle permission timing or ID mapping: No.
  • Repair SDK lifecycle permission timing or ID mapping to Record the known click build and test installation.
  • Install evidence and customer mapping verified? to Trace one authoritative verified transaction: Yes.
  • Trace one authoritative verified transaction to Occurrence amount currency and refund checks agree?.
  • Occurrence amount currency and refund checks agree? to Repair sender ownership identity or payload mapping: No.
  • Repair sender ownership identity or payload mapping to Trace one authoritative verified transaction.
  • Occurrence amount currency and refund checks agree? to Inspect reporting dates and required Apple copies: Yes.
  • Inspect reporting dates and required Apple copies to Reports, required Apple copies, partner delivery and links pass?.
  • Reports, required Apple copies, partner delivery and links pass? to Repair the failed reporting, postback or link boundary: No.
  • Repair the failed reporting, postback or link boundary to Inspect reporting dates and required Apple copies.
  • Reports, required Apple copies, partner delivery and links pass? to Release with evidence and repeat affected journey tests: Yes
Open full diagram

At every boundary, record expected versus observed evidence and the responsible system. If the app never reports the verified outcome, investigate application instrumentation. If the backend reports it twice, investigate delivery ownership. If AppsFlyer has the event but the partner does not, investigate the partner mapping and sharing configuration.

A disciplined tracking plan should include event trigger, owner, amount definition, transaction reference and destination. The guide to choosing between AppsFlyer and other mobile measurement partners (MMPs) is useful when selecting an attribution platform, but an implementation defect should be diagnosed before treating a vendor change as the fix.

Before release, use this AppsFlyer implementation checklist and require evidence for each line:

Checklist

  • The SDK install test uses a registered device; any re-attribution test follows its unregistered-device procedure.
  • SDK start follows the documented lifecycle on both platforms.
  • Both Apple postback-copy destinations are configured and a released build is verified.
  • Debug logging is off in release builds and test identities remain traceable in QA records.
  • CUID timing and installation mapping are explicit for anonymous and signed-in use.
  • ATT decline, timeout and early exit leave the app usable with documented measurement behavior.
  • Each verified transaction has one authoritative revenue sender.
  • The USD 32.00 gross and USD 5.00 refund fixture reconciles without counting retries or pending checkout.
  • S2S queue delays and report date semantics are understood.
  • New-user and existing-user deep links reach the intended screen or a safe fallback.

Retain the test build, configuration version and acceptance record. When a later release changes onboarding, payments or identity, rerun the relevant journey rather than assuming the earlier integration approval still covers it.

When should you bring in implementation help?

Bring in help when the defect crosses mobile, backend, attribution and finance ownership, or the team cannot produce one reconciled acceptance record. A fixed scope can cover SDK placement, ATT timing, both postback-copy destinations, one authoritative revenue path and the deep-link route contract.

Martechdevs sells fixed price packages, from USD 4,800 (compare packages). Request a detailed AppsFlyer implementation scope with the build versions and failing journey. If the failure is not yet isolated, start with the $99 martech audit.

Keep reading

Browse all Product Analytics guides

Questions people ask

Why do S2S events appear as organic?

Inspect the installation mapping and delivery order first. AppsFlyer notes that an S2S event arriving before install processing completes can be treated as organic. Retain the SDK-install evidence, AppsFlyer ID and send timestamps for the same app. Fix the ordering or association before changing campaign settings; a campaign label cannot repair an event attached to the wrong installation.

Does AppsFlyer automatically deduplicate purchases?

Protection depends on the integration path. The identical SDK-event mechanism does not cover S2S events, and ROI360 store revenue has separate transaction handling. Document which sender owns each verified occurrence, then test a timeout retry and a legitimate renewal. A transaction identifier in your ledger is useful evidence, but does not by itself prove AppsFlyer will reject a duplicate request.

Should I wait for login before starting measurement?

Not without deciding what happens when the user never logs in. A CUID wait can leave the SDK unable to send if the ID never arrives. Specify anonymous use, the moment the internal customer reference becomes available and the later mapping. Test an early exit from onboarding as well as successful login so the design does not silently discard first-launch evidence.

Why does a working deep link return no campaign name?

For new users, iOS Unified Deep Linking returns supported routing parameters rather than a complete acquisition record. Route through deep_link_value and the relevant sub-parameters, with a safe fallback for unavailable content. Retrieve attribution from its supported reporting path. A successful route and a missing campaign field can coexist without either proving that install attribution failed.

How do I confirm AppsFlyer is receiving SKAN and AdAttributionKit postbacks?

Verify both documented postback-copy settings in the released app, then inspect Postbacks copy (direct from Apple) through the account's available reporting method. Retain the release version and a received record. TestFlight alone is not sufficient, and no eligible traffic can leave the report empty. Investigate configuration, release adoption and traffic separately before treating absence as a confirmed integration defect.

Sources

  1. AppsFlyer: SDK integration testing.
  2. AppsFlyer: Mobile S2S events.
  3. AppsFlyer: Customer User ID.
  4. AppsFlyer: iOS SDK integration.
  5. AppsFlyer: Android SDK integration.
  6. AppsFlyer: In-app events.
  7. AppsFlyer: ROI360 store revenue.
  8. AppsFlyer: iOS Unified Deep Linking.
  9. AppsFlyer: Apple Ads SKAN and AdAttributionKit bulletin.
  10. AppsFlyer: Configure Apple postback copies.
  11. AppsFlyer: SKAN raw-data reports.
  12. AppsFlyer: AppsFlyer pricing.
  13. AppsFlyer: Billing policy.
  14. AppsFlyer: Re-attribution window.
Portrait of Jafrin Akter Alo

Written by

Jafrin Akter Alo

Data Engineer and Co-founder at Martechdevs and Growth and Analytics Partners

Jafrin writes practical guides to marketing technology, customer data, analytics and AI workflows. Martechdevs is a Growth and Analytics Partners company.

View LinkedIn profile

Book a Free Call

Thirty minutes on your stack and what it needs. Free, and no pitch.

Thirty minutes, and you leave with a plan

We look at what you have, what it is costing you and what to do about it first.

  • 30 minutes
  • Video call, link on booking
  • No obligation

What we'll cover

  • Your current stack and where it hurts
  • Quick wins we can ship first
  • An integration roadmap
  • Timeline, scope and next steps

Calendar not loading? Open it in a new tab or email hello@martechdevs.com.