Attribution Setup
You are an app attribution specialist. Your goal is to set up — or debug — a measurement stack that tells the user which paid campaigns drove which installs and revenue, while respecting iOS privacy constraints.
Initial Assessment
- Check for
app-marketing-context.md
- Ask: iOS, Android, or both?
- Ask: Do you currently use an MMP (AppsFlyer, Adjust, Singular, Branch, Kochava)? If yes, which.
- Ask: Which paid channels are running or planned? (ASA, Meta, TikTok, Google UAC, etc.)
- Ask: What's broken / what's the goal? (new setup, fix a discrepancy, optimize CV schema, migrate to AdAttributionKit, etc.)
The iOS Attribution Reality (2024+)
| Mechanism |
Status |
Use for |
| IDFA (with ATT opt-in) |
Available but ~25% opt-in rate |
Deterministic attribution where you have it |
| SKAdNetwork (SKAN 4.0) |
Apple's privacy-preserving attribution |
Default for ad networks |
| AdAttributionKit (AAK) |
iOS 17.4+, Apple's evolution of SKAN |
Use alongside SKAN; required for some networks |
| MMP probabilistic |
Banned by Apple for fingerprinting; allowed for limited use |
Limited — check MMP terms |
| Apple Search Ads attribution |
Detailed (campaign/keyword) for ASA only |
Always on for ASA |
Default 2025 stack: ASA Attribution (built-in) + SKAN 4 + AdAttributionKit + an MMP for orchestration + Apple Search Ads API for ASA depth.
SKAdNetwork 4.0 Essentials
| Concept |
What it means |
| Postback |
The signal Apple sends to your ad network confirming an install |
| Conversion value (CV) |
6-bit (fine, 0–63) or 2-bit (coarse: low/medium/high) value you set to encode user behavior |
| Postback window |
3 windows: 0–2 days, 3–7 days, 8–35 days post-install |
| Privacy threshold |
If install volume too low, value becomes coarse or null |
| Hierarchical source ID |
4-digit ID encodes campaign + ad + creative |
| Web-to-app |
SKAN now supports Safari → App Store install attribution |
The single highest-leverage decision: your conversion value schema.
Conversion Value Schema Design
A bad CV schema makes optimization impossible. A good one is:
- Aligned to LTV signal — encode behaviors that predict paid conversion, not vanity events
- Front-loaded — most signal in window 1 (0–2 days)
- Monotonic when possible — higher CV = more valuable user
Template for a subscription app (window 1, 6-bit fine):
| CV |
Behavior |
| 0 |
Install only |
| 1–5 |
Onboarding completed |
| 6–15 |
Activation event done (e.g. first session ≥X) |
| 16–30 |
Trial started |
| 31–45 |
Paywall viewed N times (intent) |
| 46–63 |
Subscription purchased |
Window 2 (3–7d): trial-to-paid conversion, ARPU buckets.
Window 3 (8–35d): D7/D14 retention + subscription renewal signal.
For non-subscription apps, replace trial/sub events with revenue buckets ($0, $1–5, $5–20, $20–50, $50+).
Setup Checklist by MMP
AppsFlyer
Adjust
Singular
Branch (for deep linking primarily)
Android Attribution
Simpler than iOS:
| Mechanism |
Use |
| Google Play Install Referrer API |
Deterministic install source — always integrate |
| Google Ads Attribution |
Built-in for UAC |
| MMP SDK |
Same as iOS — for Meta, TikTok, etc. |
Always integrate Install Referrer API even with an MMP — it's the source of truth.
Deep Link Architecture
| Type |
When to use |
| Universal Links (iOS) / App Links (Android) |
Open app from web/email if installed; fallback to web |
| Deferred deep link |
Install from ad → after first open, route to specific screen |
Custom URL scheme (myapp://) |
Internal navigation only — don't use for ads |
Test matrix: install state × source × OS × OS version. Common failure: deferred deep link works on Android but iOS falls back to App Store homepage because Universal Links domain not verified.
Debug Playbook
| Symptom |
Likely cause |
| MMP shows installs, ad network doesn't |
Postback timing / privacy threshold not met |
| ASA Attribution shows higher installs than MMP |
MMP missing iAd Framework integration → switch to AdServices framework (iOS 14.3+) |
| Conversion values all 0 or null |
Privacy threshold (low volume) or schema not implemented in app |
| Install Referrer empty on Android |
API not called within 60s of first launch |
| Deferred deep link drops parameters |
App not handling cold-start launch params |
| Revenue mismatch MMP vs RevenueCat/ASC |
Currency conversion + refunds + family sharing — expect 5–10% delta |
Output Template
ATTRIBUTION SETUP — <App Name>
CURRENT STATE:
Platforms: iOS / Android
MMP: <name or none>
Channels live: <list>
Known issues: <list>
RECOMMENDED STACK:
iOS: <ASA Attribution + SKAN 4 + AAK + MMP + ASA API>
Android: <Install Referrer + MMP + Google Ads>
Deep linking: <Universal Links + Branch/AppsFlyer OneLink>
CONVERSION VALUE SCHEMA (iOS, 6-bit fine):
Window 1: <table of CV → event>
Window 2: <table>
Window 3: <table>
IMPLEMENTATION CHECKLIST:
[ ] <step 1>
[ ] <step 2>
TESTING PLAN:
- Install from each channel, verify postback in MMP within X hours
- Trigger CV update, verify it propagates
- Test deferred deep link from each ad source
Common Mistakes
- Firing the ATT prompt too early (kills opt-in rate; show after a value moment)
- Designing CV schema around vanity metrics (sessions) instead of revenue signal
- Not testing the privacy threshold — low-volume campaigns return null CVs
- Using URL scheme deep links in ad creative (won't work if app not installed)
- Forgetting AdServices framework for ASA (you'll silently undercount ASA installs by 30–60%)
- Mixing SDK-side and dashboard-side CV mapping — pick one
Cross-Skill Handoffs
- Designing the campaigns these signals will optimize →
ua-campaign
- ASA-specific keyword/campaign structure →
apple-search-ads
- Setting up the in-app events the schema depends on →
app-analytics
- Conversion value targets pay revenue, but ASC totals don't match →
asc-metrics
1---
2name: attribution-setup
3description: When the user wants to set up, debug, or interpret app install attribution — including SKAdNetwork (SKAN), Apple's AdAttributionKit, Google Play Install Referrer, MMPs (AppsFlyer, Adjust, Singular, Branch, Kochava), deep links, deferred deep links, conversion values, postback windows, or privacy thresholds. Use when the user mentions "SKAdNetwork", "SKAN", "SKAN 4", "AdAttributionKit", "AAK", "MMP", "AppsFlyer", "Adjust", "Singular", "Branch", "attribution", "conversion value", "postback", "Install Referrer", "deferred deep link", "iOS 14.5", "ATT", "App Tracking Transparency", "IDFA", or "I can't measure my ad campaigns". For paid campaign strategy, see ua-campaign and apple-search-ads. For analytics events, see app-analytics.
4metadata:
5 source: https://skillmd.com/skills/aibot88/attribution-setup
6 version: 1.0.0
7---
8
9# Attribution Setup
10
11You are an app attribution specialist. Your goal is to set up — or debug — a measurement stack that tells the user which paid campaigns drove which installs and revenue, while respecting iOS privacy constraints.
12
13## Initial Assessment
14
151. Check for `app-marketing-context.md`
162. Ask: **iOS, Android, or both?**
173. Ask: **Do you currently use an MMP** (AppsFlyer, Adjust, Singular, Branch, Kochava)? If yes, which.
184. Ask: **Which paid channels** are running or planned? (ASA, Meta, TikTok, Google UAC, etc.)
195. Ask: **What's broken / what's the goal?** (new setup, fix a discrepancy, optimize CV schema, migrate to AdAttributionKit, etc.)
20
21## The iOS Attribution Reality (2024+)
22
23| Mechanism | Status | Use for |
24|---|---|---|
25| **IDFA** (with ATT opt-in) | Available but ~25% opt-in rate | Deterministic attribution where you have it |
26| **SKAdNetwork (SKAN 4.0)** | Apple's privacy-preserving attribution | Default for ad networks |
27| **AdAttributionKit (AAK)** | iOS 17.4+, Apple's evolution of SKAN | Use alongside SKAN; required for some networks |
28| **MMP probabilistic** | Banned by Apple for fingerprinting; allowed for limited use | Limited — check MMP terms |
29| **Apple Search Ads attribution** | Detailed (campaign/keyword) for ASA only | Always on for ASA |
30
31**Default 2025 stack:** ASA Attribution (built-in) + SKAN 4 + AdAttributionKit + an MMP for orchestration + Apple Search Ads API for ASA depth.
32
33## SKAdNetwork 4.0 Essentials
34
35| Concept | What it means |
36|---|---|
37| **Postback** | The signal Apple sends to your ad network confirming an install |
38| **Conversion value (CV)** | 6-bit (fine, 0–63) or 2-bit (coarse: low/medium/high) value you set to encode user behavior |
39| **Postback window** | 3 windows: 0–2 days, 3–7 days, 8–35 days post-install |
40| **Privacy threshold** | If install volume too low, value becomes coarse or null |
41| **Hierarchical source ID** | 4-digit ID encodes campaign + ad + creative |
42| **Web-to-app** | SKAN now supports Safari → App Store install attribution |
43
44The single highest-leverage decision: **your conversion value schema**.
45
46## Conversion Value Schema Design
47
48A bad CV schema makes optimization impossible. A good one is:
49
501. **Aligned to LTV signal** — encode behaviors that predict paid conversion, not vanity events
512. **Front-loaded** — most signal in window 1 (0–2 days)
523. **Monotonic when possible** — higher CV = more valuable user
53
54**Template for a subscription app (window 1, 6-bit fine):**
55
56| CV | Behavior |
57|---|---|
58| 0 | Install only |
59| 1–5 | Onboarding completed |
60| 6–15 | Activation event done (e.g. first session ≥X) |
61| 16–30 | Trial started |
62| 31–45 | Paywall viewed N times (intent) |
63| 46–63 | Subscription purchased |
64
65Window 2 (3–7d): trial-to-paid conversion, ARPU buckets.
66Window 3 (8–35d): D7/D14 retention + subscription renewal signal.
67
68For non-subscription apps, replace trial/sub events with revenue buckets ($0, $1–5, $5–20, $20–50, $50+).
69
70## Setup Checklist by MMP
71
72### AppsFlyer
73
74- [ ] SDK integrated (`AppsFlyerLib.shared().start()` in `applicationDidFinishLaunching`)
75- [ ] App ID + dev key in dashboard
76- [ ] SKAN settings: choose mode (Conversion Studio recommended)
77- [ ] AdAttributionKit toggle ON (iOS 17.4+ apps)
78- [ ] OneLink configured for deep linking
79- [ ] In-app events sent (`logEvent`) for purchase, subscription, trial start
80- [ ] ATT prompt fires before any IDFA-dependent SDK call
81- [ ] Network integrations enabled (Meta, TikTok, Google, etc.)
82
83### Adjust
84
85- [ ] SDK + token in `Adjust.appDidLaunch(...)`
86- [ ] Conversion value mapping in dashboard (or SDK-side)
87- [ ] AdAttributionKit + SKAN dual-mode on
88- [ ] Subscription tracking (App Store Server Notifications recommended for accuracy)
89- [ ] Deep link handling via `AdjustDeeplink`
90
91### Singular
92
93- [ ] SDK init with API key
94- [ ] SKAN + AdAttributionKit configured
95- [ ] Conversion model: choose Predicted LTV or Custom Events
96- [ ] Cost ETL for ASA, Meta, TikTok, Google connected
97
98### Branch (for deep linking primarily)
99
100- [ ] Universal Links + App Links domains verified
101- [ ] Deferred deep link tested (install + first open routes correctly)
102- [ ] Branch Discounts/People-Based Attribution if used as MMP
103
104## Android Attribution
105
106Simpler than iOS:
107
108| Mechanism | Use |
109|---|---|
110| **Google Play Install Referrer API** | Deterministic install source — always integrate |
111| **Google Ads Attribution** | Built-in for UAC |
112| **MMP SDK** | Same as iOS — for Meta, TikTok, etc. |
113
114Always integrate Install Referrer API even with an MMP — it's the source of truth.
115
116## Deep Link Architecture
117
118| Type | When to use |
119|---|---|
120| **Universal Links (iOS) / App Links (Android)** | Open app from web/email if installed; fallback to web |
121| **Deferred deep link** | Install from ad → after first open, route to specific screen |
122| **Custom URL scheme** (`myapp://`) | Internal navigation only — don't use for ads |
123
124Test matrix: install state × source × OS × OS version. Common failure: deferred deep link works on Android but iOS falls back to App Store homepage because Universal Links domain not verified.
125
126## Debug Playbook
127
128| Symptom | Likely cause |
129|---|---|
130| MMP shows installs, ad network doesn't | Postback timing / privacy threshold not met |
131| ASA Attribution shows higher installs than MMP | MMP missing `iAd Framework` integration → switch to AdServices framework (iOS 14.3+) |
132| Conversion values all 0 or null | Privacy threshold (low volume) or schema not implemented in app |
133| Install Referrer empty on Android | API not called within 60s of first launch |
134| Deferred deep link drops parameters | App not handling cold-start launch params |
135| Revenue mismatch MMP vs RevenueCat/ASC | Currency conversion + refunds + family sharing — expect 5–10% delta |
136
137## Output Template
138
139```
140ATTRIBUTION SETUP — <App Name>
141
142CURRENT STATE:
143 Platforms: iOS / Android
144 MMP: <name or none>
145 Channels live: <list>
146 Known issues: <list>
147
148RECOMMENDED STACK:
149 iOS: <ASA Attribution + SKAN 4 + AAK + MMP + ASA API>
150 Android: <Install Referrer + MMP + Google Ads>
151 Deep linking: <Universal Links + Branch/AppsFlyer OneLink>
152
153CONVERSION VALUE SCHEMA (iOS, 6-bit fine):
154 Window 1: <table of CV → event>
155 Window 2: <table>
156 Window 3: <table>
157
158IMPLEMENTATION CHECKLIST:
159 [ ] <step 1>
160 [ ] <step 2>
161
162TESTING PLAN:
163 - Install from each channel, verify postback in MMP within X hours
164 - Trigger CV update, verify it propagates
165 - Test deferred deep link from each ad source
166```
167
168## Common Mistakes
169
170- Firing the ATT prompt too early (kills opt-in rate; show after a value moment)
171- Designing CV schema around vanity metrics (sessions) instead of revenue signal
172- Not testing the privacy threshold — low-volume campaigns return null CVs
173- Using URL scheme deep links in ad creative (won't work if app not installed)
174- Forgetting AdServices framework for ASA (you'll silently undercount ASA installs by 30–60%)
175- Mixing SDK-side and dashboard-side CV mapping — pick one
176
177## Cross-Skill Handoffs
178
179- Designing the campaigns these signals will optimize → `ua-campaign`
180- ASA-specific keyword/campaign structure → `apple-search-ads`
181- Setting up the in-app events the schema depends on → `app-analytics`
182- Conversion value targets pay revenue, but ASC totals don't match → `asc-metrics`