r/iOSProgramming • u/OPrudnikov • 6d ago
Question Tracking installs source?
Hi, everyone! I am running my IOS application and I am thinking to by some ads, but I want to be able to track how much customers will it bring to me.
Apart from discount code can I do it in any other manner or discount code is the only thing I can use to be sure people are comming from some source?
I was expecting what I can add something to appstore url and it will be passed in my app so I will be able to collect it, but it looks like I will not be able to do so, right?
The goal here is to be able to see where each user came from
4
Upvotes
2
u/DimensionMindless336 6d ago
You're right that nothing you tack onto the App Store URL survives into the app — Apple strips all query params, so there's no
?ref=fooyou can read at first launch. The existing answers cover the Apple-side options well (pt/ct campaign links in App Analytics, AdServices for ASA, SKAdNetwork/AdAttributionKit for Meta/TikTok), but those are either aggregated or platform-specific. If your actual goal is "know where each user came from," the practical missing piece is a first-party approach:The reliable way is to run the attribution through a landing page you control before the App Store hop. Put a token in your own short link (
yourdomain.com/x/reddit), store it in a first-party cookie (plus a fallback), and do one of two things at install:REDDIT,TIKTOK) and you get clean per-source numbers without any SDK. The trick is to make redemption effortless: auto-fill it from the cookie on first launch so the user doesn't have to remember it, and still let them type it manually.Two things that bit me when I set this up: first, App Store Connect campaign links (pt/ct) only report downloads and proceeds per campaign, and they exclude users who turn off share-with-developers — fine for ROI at the channel level, useless for per-user. Second, if you go the MMP route, the SDK init must happen at the very first launch before any gating, or you lose the attribution window. And the ATT prompt affects cross-app tracking, but the click-to-install match from an MMP or an AdServices token doesn't need ATT consent, so don't conflate the two.
For a small budget starting out, honestly: distinct discount codes per channel + distinct pt/ct campaign links will tell you 90% of what you need without spending a cent on infrastructure. Add a deferred deep-link provider only when the per-user granularity is worth paying for.
2
u/The_Pivot 5d ago
One data point from running Meta install ads for a small iOS game this month, in case it helps you decide what to trust.
For the same two weeks I lined up four counts of new iOS users: App Store Connect first-time downloads 214, AppsFlyer installs 203, RevenueCat new customers 232, our own analytics 203. They agree within about 15%, so any of them is fine for "how many".
"From where" is the hard part. AppsFlyer credited only 37 installs to Meta, because most iOS users don't opt in to tracking. App Store Connect → Analytics → Sources showed about 184 first-time downloads as "App referrer", with Instagram as the named app. The day we paused the campaign, App referrer downloads went from about 13 a day to zero. That on/off test told us more than any per-user attribution did.
For a first test I'd run one channel at a time, use ct campaign links wherever you control the link, and watch App referrer in Sources.
1
u/brkaydev 6d ago
Right, nothing you add to the App Store URL makes it into the app. What does work is an App Store Connect campaign link: add pt (your provider ID) and ct (a campaign name) to the URL, and App Analytics shows page views, downloads and proceeds per campaign. It's aggregated, not per user, and only counts people who share analytics with developers. For Apple Search Ads the AdServices framework gives you attribution per install inside the app, while Meta or TikTok ads go through SKAdNetwork / AdAttributionKit, which is aggregated again.
1
u/Difficult_Duty2198 6d ago
custom product page links in app store connect work well for this, you get separate numbers per link so you can tell which campaign brought the installs
1
u/dahiya_xa 5d ago
+1 to campaign links, just know they only count people who opted in to share analytics with developers, so the numbers undercount. for meta or google ads you'll mostly rely on their own reporting. on a small app i'd also add a one tap "how did you hear about us" on first launch, it's been surprisingly accurate for me