Apple Ads attribution without RevenueCat or an MMP
Apple gives every app free, privacy-friendly attribution through the AdServices framework. How it works and how to get keyword-level revenue from it.
You don't need a paid attribution partner to know which Apple Ads keyword brought a user. Apple provides it for free through the AdServices framework, and it doesn't require the tracking (ATT) prompt.
How it works
- On first launch, the app asks the AdServices framework for an attribution token.
- The app (or your server) sends that token to Apple's Attribution API within its validity window (24 hours).
- Apple answers with whether the install came from Apple Ads and, if so, the campaign, ad group and keyword IDs, the country and more.
- You store that answer with your user ID.
Connecting it to revenue
Attribution alone tells you installs. To get revenue per keyword, link the same user to purchases:
- StoreKit 2: pass an
appAccountToken(a UUID for the user) when buying, or send the transaction'soriginalIDto your server with the user ID. - App Store Server Notifications V2: Apple tells your server about every renewal and refund for that original transaction.
Now every renewal can be credited to the keyword that brought the user.
Pitfalls
- Apple may not have the record yet right after install; retry a few times over the first launches.
- Send it even if the server is down — save Apple's answer on the device and resend later.
- Don't wait for a purchase — attribute on first launch, or you lose users who never pay (and can't compute cost per paying user).
The easy way
Appwind's free iOS SDK does all of this in one line: Appwind.configure(account: "…"). It reads Apple's answer on the device, sends it with an install ID, and reports purchases — no IDFA, no tracking prompt. If you already use RevenueCat or Adapty, connect them instead and the attribution flows in without an SDK change.
Free 14-day trial · no card needed.