Attribution Setup logo

Attribution Setup

CommunityPopular
Eronred
attribution-setup

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.

Overview

PublisherEronred
Repositoryaso-skills
Skill nameattribution-setup
Stars
1.9K
Forks
116
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Eronred on GitHub. Read the source before you install it.

Installation

Install the Attribution Setup AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Eronred/aso-skills.git /tmp/aso-skills
mkdir -p .claude/skills
cp -r /tmp/aso-skills/skills/attribution-setup .claude/skills/attribution-setup
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Attribution Setup in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Attribution Setup on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Attribution Setup is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

  1. Check for app-marketing-context.md
  2. Ask: iOS, Android, or both?
  3. Ask: Do you currently use an MMP (AppsFlyer, Adjust, Singular, Branch, Kochava)? If yes, which.
  4. Ask: Which paid channels are running or planned? (ASA, Meta, TikTok, Google UAC, etc.)
  5. 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+)

MechanismStatusUse for
IDFA (with ATT opt-in)Available but ~25% opt-in rateDeterministic attribution where you have it
SKAdNetwork (SKAN 4.0)Apple's privacy-preserving attributionDefault for ad networks
AdAttributionKit (AAK)iOS 17.4+, Apple's evolution of SKANUse alongside SKAN; required for some networks
MMP probabilisticBanned by Apple for fingerprinting; allowed for limited useLimited — check MMP terms
Apple Search Ads attributionDetailed (campaign/keyword) for ASA onlyAlways 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

ConceptWhat it means
PostbackThe 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 window3 windows: 0–2 days, 3–7 days, 8–35 days post-install
Privacy thresholdIf install volume too low, value becomes coarse or null
Hierarchical source ID4-digit ID encodes campaign + ad + creative
Web-to-appSKAN 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:

  1. Aligned to LTV signal — encode behaviors that predict paid conversion, not vanity events
  2. Front-loaded — most signal in window 1 (0–2 days)
  3. Monotonic when possible — higher CV = more valuable user

Template for a subscription app (window 1, 6-bit fine):

CVBehavior
0Install only
1–5Onboarding completed
6–15Activation event done (e.g. first session ≥X)
16–30Trial started
31–45Paywall viewed N times (intent)
46–63Subscription 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

  • SDK integrated (AppsFlyerLib.shared().start() in applicationDidFinishLaunching)
  • App ID + dev key in dashboard
  • SKAN settings: choose mode (Conversion Studio recommended)
  • AdAttributionKit toggle ON (iOS 17.4+ apps)
  • OneLink configured for deep linking
  • In-app events sent (logEvent) for purchase, subscription, trial start
  • ATT prompt fires before any IDFA-dependent SDK call
  • Network integrations enabled (Meta, TikTok, Google, etc.)

Adjust

  • SDK + token in Adjust.appDidLaunch(...)
  • Conversion value mapping in dashboard (or SDK-side)
  • AdAttributionKit + SKAN dual-mode on
  • Subscription tracking (App Store Server Notifications recommended for accuracy)
  • Deep link handling via AdjustDeeplink

Singular

  • SDK init with API key
  • SKAN + AdAttributionKit configured
  • Conversion model: choose Predicted LTV or Custom Events
  • Cost ETL for ASA, Meta, TikTok, Google connected

Branch (for deep linking primarily)

  • Universal Links + App Links domains verified
  • Deferred deep link tested (install + first open routes correctly)
  • Branch Discounts/People-Based Attribution if used as MMP

Android Attribution

Simpler than iOS:

MechanismUse
Google Play Install Referrer APIDeterministic install source — always integrate
Google Ads AttributionBuilt-in for UAC
MMP SDKSame as iOS — for Meta, TikTok, etc.

Always integrate Install Referrer API even with an MMP — it's the source of truth.

Deep Link Architecture

TypeWhen to use
Universal Links (iOS) / App Links (Android)Open app from web/email if installed; fallback to web
Deferred deep linkInstall 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

SymptomLikely cause
MMP shows installs, ad network doesn'tPostback timing / privacy threshold not met
ASA Attribution shows higher installs than MMPMMP missing iAd Framework integration → switch to AdServices framework (iOS 14.3+)
Conversion values all 0 or nullPrivacy threshold (low volume) or schema not implemented in app
Install Referrer empty on AndroidAPI not called within 60s of first launch
Deferred deep link drops parametersApp not handling cold-start launch params
Revenue mismatch MMP vs RevenueCat/ASCCurrency 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

Frequently asked questions

What does the Attribution Setup AI skill do?

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 "...

Why use Attribution Setup on TypingMind?

Because you install it once and use it with any model. Attribution Setup is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Attribution Setup in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Eronred/aso-skills/tree/main/skills/attribution-setup. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Attribution Setup?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Attribution Setup?

As many as you like. As long as a model supports skills, you can use Attribution Setup with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Attribution Setup AI skill free?

Yes. It is published on GitHub by Eronred under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇