- Analytics
- Promotion
- iOS
- Android
In-app event tracking: what to log and how to set it up
In-app event tracking for iOS and Android apps: which events to log, Firebase setup, Google Ads key events, AdAttributionKit values and privacy rules.
AppRanker team13 min read
On this page
In-app event tracking means recording the actions people take inside your app, such as finishing onboarding, starting a trial or making a purchase, as named events you can count and compare. The stores already tell you how many people installed. Events tell you which of those installs turned into users, which promotion brought the good ones, and what an ad network should optimize for when you pay for installs.
This guide is for small iOS and Android teams that want a tracking setup they can build in a day and still trust a year later. It covers what App Store Connect and Play Console already measure for you, a short event plan, Firebase code for Android and iOS, how to use events in Google Ads, how Apple's AdAttributionKit reports post-install activity, and the privacy rules that decide what you have to disclose.
Key takeaways
- Track 8 to 15 events that map to your funnel (onboarding, first value, paywall, trial, purchase), not every tap. Google Analytics for Firebase caps an app at 500 distinct event names and 25 parameters per event.
- Store dashboards already count installs, sources, retention and purchases. Use events for what they cannot see: what users do after install.
- Ad networks optimize for the events you send. Google advises against targeting more than one action per target CPA campaign and against changes before the first 100 conversions.
- On iOS, ad-attributed activity is reported through AdAttributionKit conversion values across three windows: days 0 to 2, 3 to 7 and 8 to 35.
- Every analytics SDK you add must be reflected in your App Privacy labels and Data safety form, and cross-company tracking on iOS needs App Tracking Transparency permission.
In-app event tracking vs App Store In-App Events
The names collide, so one clarification first. In-app event tracking is analytics: your code logs an event such as purchase and a tool counts it. In-App Events on the App Store are promotional cards for time-limited happenings in your app, such as a challenge or a live stream, that appear on your product page and in search. If you were looking for the second, our guide to App Store In-App Events covers it. The rest of this post is about the first.
What the stores already track for you
Before you add an SDK, check what you get for free. Both stores report on the part of the funnel that happens before and around the install:
| Question | App Store Connect | Google Play Console |
|---|---|---|
| How many people saw and installed the app? | Impressions, product page views, downloads | Store listing visitors, acquisitions |
| Where did they come from? | Source types: search, browse, app referrer, web referrer | Google Play search, Google Play explore, ads and referrals |
| Which of my own links worked? | Campaign links with a ct= token |
utm_source and utm_campaign on your Play link |
| Did they keep using it? | Retention and sessions, for users who share data with developers | Retention, uninstalls, active devices |
| Did they pay? | Sales, proceeds, subscriptions | Revenue, subscriptions |
Apple's campaign links guide explains that each campaign link carries a provider token (pt=) that identifies your account and a campaign token (ct=) you name, and that Analytics "captures the impressions, product page views, downloads, usage, sales, and subscriptions tied to each campaign token." Google's acquisition reports help describes the equivalent utm_source and utm_campaign dimensions for links to your store listing. Our App Store Connect analytics guide walks through the Apple side in detail.

Store reports answer where installs came from. Events answer what those people did next. Photo: AS Photography / Pexels
What neither store sees is the inside of your app: whether someone finished onboarding, used the feature you built the app for, opened the paywall, or came back to do it again. That is the gap in-app event tracking fills.
Which in-app events to track
Start from the questions you need answered, not from a list of everything users can do. For most apps, the funnel is the same shape: install, first open, onboarding, first real use, a reason to pay, payment, and coming back.
A starter plan that fits most utility and subscription apps:
| Event | When it fires | Why it matters |
|---|---|---|
first_open |
First launch after install | Collected automatically by Firebase. Your install baseline inside analytics. |
sign_up |
Account created, if you have accounts | Firebase recommended event. Drop it if you have no accounts. |
tutorial_complete |
Onboarding finished | Firebase recommended event. Shows where new users drop off. |
core_action (rename it) |
The first time a user gets the app's value: first budget saved, first habit logged, first photo edited | The best early predictor you have. Name it after the action, such as budget_created. |
paywall_view |
The paywall or upgrade screen appears | Separates "never saw the offer" from "saw it and said no". |
trial_start |
A free trial starts | For subscription apps, the event you usually want ads to optimize toward. |
purchase / in_app_purchase |
A purchase completes | Firebase collects in_app_purchase automatically for store purchases in apps that include its SDK. |
share |
User shares content or an invite | Firebase recommended event. Measures word of mouth. |
Add more only when a decision depends on them. A few rules keep the data usable:
- Use the recommended names where they fit. Google's Firebase events guide says that to "get the maximum detail in reports, log the recommended events", and reports understand their parameters.
- Use lowercase snake_case, consistently. Event names are case-sensitive, so
Purchaseandpurchasecount as two events. - Stay inside the limits. Google Analytics' event collection limits for apps: event and parameter names up to 40 characters, parameter values up to 100 characters, 25 parameters per event, 500 distinctly named events, and user property names up to 24 characters with values up to 36. Firebase's error codes page lists what happens when you exceed them: extra parameters are dropped and events past the 500th type are dropped.
- Never put personal data in parameters. No emails, names or free text a user typed. Parameters are for things like
plan: "yearly"orsource: "onboarding". - Write the plan down in a shared file with each event's name, trigger, parameters and owner. It becomes your contract for the Data safety and privacy label answers later.
How to set up in-app event tracking with Firebase
Firebase's Google Analytics SDK is free, works on both platforms, and feeds Google Ads directly, which is why most indie teams start there. After adding Firebase to your project, logging a custom event is one call. These examples log the budget_created core action with one parameter.
On Android (Kotlin):
import com.google.firebase.analytics.analytics
import com.google.firebase.analytics.logEvent
import com.google.firebase.Firebase
fun onBudgetCreated(template: String) {
Firebase.analytics.logEvent("budget_created") {
param("template", template) // e.g. "envelope", "zero_based"
}
}
On iOS (Swift):
import FirebaseAnalytics
func budgetCreated(template: String) {
Analytics.logEvent("budget_created", parameters: [
"template": template // e.g. "envelope", "zero_based"
])
}
For a recommended event, use the constant the SDK provides, such as FirebaseAnalytics.Event.TUTORIAL_COMPLETE on Android or AnalyticsEventTutorialComplete on iOS, so the name is always spelled the way reports expect.
Check that events arrive
The Firebase console updates periodically, so do not wait on it to test. On iOS, Google's guide suggests adding -FIRAnalyticsVerboseLoggingEnabled to your scheme's launch arguments so events print in the Xcode console as they are logged. Firebase's DebugView shows events from a debug device in near real time, and invalid events show up there as error events with a firebase_error parameter that tells you what went wrong.
Test each event on a clean install: first launch, onboarding, the core action, the paywall and a sandbox purchase. Check names, parameters and the order they fire in.
Use your events to steer paid campaigns
Once events are flowing, the most valuable thing you can do with them is tell your ad networks what a good user looks like. An install campaign that optimizes only for installs will find people who install. One that optimizes for trial_start will look for people who start trials.
Google Ads: mark key events and import them
Google's guide to measuring key events in apps sets out the path:
- In Google Analytics, open Key events, choose New key event, and enter the event name exactly as your app sends it. For an event already arriving, switch on Mark as key event in the All events list.
- In Google Ads, open the Conversions page, add a new conversion action, choose App, then Google Analytics (Firebase).
- Select the events to import and save.
Google's App campaign best practices then add three rules worth following on a small budget:
- One action per campaign. "It isn't recommended to target more than one action as doing so effectively makes your set tCPA a 'blended target' for 2 or more actions."
- Do not change the goal mid-flight. Google says to "Avoid changing the targeted install or in-app event," and that changes "before the first 100 conversions have registered may disrupt learning."
- Budget for the event. Google suggests a daily budget of at least 50 times your bid for target cost per install, and at least 10 times your bid for target cost per action.
That last rule is why the choice of event matters. If only a handful of users start a trial each day, a campaign optimizing for trials may never get enough conversions to learn. Pick the deepest event that still happens often enough, such as tutorial_complete or your core action, and move down the funnel as volume grows. Our guide to Google App campaigns covers the rest of the setup, and the post on app install campaigns compares how Google, Apple Ads, Meta and TikTok use your events.
iOS: AdAttributionKit conversion values
On iOS, ad networks do not get a user-level stream of your events. Apple's AdAttributionKit, available from iOS 17.4, reports installs and re-engagements from ads through anonymous postbacks. Your app can attach a conversion value that summarizes what the user did, and the system sends it later.
Apple's documentation on conversion windows describes three windows, starting when the user first launches the app: days 0 to 2, days 3 to 7 and days 8 to 35. "Apps can update conversion values during all three time-windows," and each postback arrives after a random delay of 24 to 48 hours for the first, and 24 to 144 hours for the second and third.
![]()
Your funnel events decide which value you report in each window. Chart: AppRanker
In code, you map your funnel to a fine value (an integer) and a coarse value (low, medium or high) and update it as the user progresses:
import AdAttributionKit
enum FunnelStep: Int {
case opened = 0, onboarded = 1, coreAction = 2, trialStarted = 3, purchased = 4
}
func reportProgress(_ step: FunnelStep) async {
let coarse: CoarseConversionValue = switch step {
case .opened, .onboarded: .low
case .coreAction, .trialStarted: .medium
case .purchased: .high
}
do {
try await Postback.updateConversionValue(step.rawValue, coarseConversionValue: coarse, lockPostback: false)
} catch {
// No attributed ad, or the window has closed. Nothing to report.
}
}
Call it from the same places you log the matching Firebase events. If you work with an ad network or attribution provider, ask them which value scheme they expect before you ship, because the network has to decode the values you send. Apple also notes that the level of detail in a postback depends on a "postback data tier" designed to protect crowd anonymity, so small campaigns may only receive coarse values.
Measure your own promotion, not just paid ads
Most indie apps get more installs from free and low-cost promotion than from ads: launch posts, newsletters, directories, communities, and listings on sites like AppRanker. Events tell you whether those visitors are any good, but only if you can tell them apart.
- On the App Store, use a campaign link with its own
ct=token wherever you control the link. Traffic from links you cannot tag shows up by source type, and a plain link on a website opened in Safari is counted as a web referrer with the site's domain. - On Google Play, add
utm_sourceandutm_campaignto your listing link where you can, and compare acquisitions by source in Play Console. - Inside your app, compare cohorts: of the users who installed in the week of a launch post, how many reached your core action compared with an ordinary week?
Our guide to app retention rate shows how to read the cohort side of that comparison.
Privacy rules for in-app event tracking
Analytics is data collection, and both stores expect you to disclose it accurately.
- App Tracking Transparency. Apple's user privacy and data use page defines tracking as "linking user or device data collected from your app with user or device data collected from other companies' apps, websites, or offline properties for targeted advertising or advertising measurement purposes," and requires ATT permission for it. Counting events for your own product decisions is not the same as tracking, but an SDK that combines your users' data with other apps' data for advertising is, "even if you don't use the SDK for these purposes."
- You are responsible for your SDKs. Apple's answer to whether a third-party SDK's collection is your responsibility is "Yes. Developers are responsible for all code included in their apps."
- App Privacy labels. Analytics data such as product interaction and purchase history must appear in your labels. Our guide to App Store privacy labels explains each category.
- Google Play Data safety. Google publishes a Play data disclosure guide for Google Analytics for Firebase listing what the SDK collects automatically. Use it, and your event plan, to answer the Google Play data safety form.
- No fingerprinting. Apple says you "may not derive data from a device for the purpose of uniquely identifying it," and that apps using SDKs that do so "may be rejected from the App Store."
Collect only what your event plan needs, keep personal data out of event parameters, and update your disclosures in the same release that adds a new SDK or event type.
In-app event tracking checklist
- A written event plan: 8 to 15 events, each with a trigger, parameters and owner
- Recommended event names used where they fit, snake_case everywhere else
- No personal data in event names, parameters or user properties
- Events verified on a clean install with verbose logging or DebugView
- One key event per paid campaign, deep enough to matter and frequent enough to learn from
- AdAttributionKit conversion values mapped to the same funnel, agreed with your ad network
- Campaign links (App Store) and UTM parameters (Google Play) on every link you control
- App Privacy labels and Data safety answers updated for every SDK and event type
Know what your promotion is worth
Event tracking turns "we got 300 installs from that launch" into "we got 300 installs and 40 of them created a budget." That is the number that tells you which promotion to repeat.
AppRanker is one promotion channel you can measure this way: an Outbid alternative for apps and extensions, where App Store, Google Play and browser extension listings are ranked by a plain sort on what each has paid, with no account. A listing sends visitors to your store page, so they arrive in your store reports as referral traffic and in your analytics as new users. Rank buys visibility on the board, not installs, and our post on what a leaderboard listing buys is candid about that. You can check what a position costs before you decide.
For more free channels to compare, see our playbook on how to promote your app for free.
FAQ
What is in-app event tracking?
In-app event tracking is recording what users do inside your app, such as completing onboarding, starting a trial or making a purchase, as named events you can count. It shows what happens after the install, which store dashboards do not.
Which in-app events should I track first?
Start with first open, onboarding complete, your app's core action, paywall view, trial start and purchase. Those cover the path from install to revenue. Add other events only when a specific decision depends on them.
How many events can I track with Firebase?
Google Analytics for Firebase allows up to 500 distinctly named events per app, with up to 25 parameters per event. Event names can be up to 40 characters. There is no cap on how many times an event is logged.
Do I need ATT permission for in-app event tracking?
Not for analytics you use only for your own app. Apple requires App Tracking Transparency permission when you link your app's user or device data with other companies' data for advertising or ad measurement, or share it with data brokers, including through a third-party SDK.
How do I use in-app events in Google Ads?
Mark the event as a key event in Google Analytics, then import it in Google Ads as an App conversion from Google Analytics (Firebase). Optimize each campaign for one event and avoid changing it before the first 100 conversions.
What is the difference between in-app event tracking and App Store In-App Events?
In-app event tracking is analytics inside your app. App Store In-App Events are promotional cards for timely events in your app, such as challenges or live sessions, that appear on your product page and in App Store search.
Image credits
- Cover, a hand holding an iPhone with a dashboard app: photo by Balázs Kétyi on Unsplash, Unsplash License. Cropped to 1200x630.
- Tablet showing a traffic sources chart: photo by AS Photography on Pexels, Pexels License. Resized.
- AdAttributionKit conversion windows chart: AppRanker, from Apple's AdAttributionKit documentation.


