In a mobile app with 1000 user actions, only 900 reach the database. Ten percent are lost due to network failures, force-closes, or misconfiguration. Firebase Analytics provides basic metrics, but for deep funnels you have to write SQL and dig into BigQuery. Amplitude solves this—funnels, retention, cohorts are available via UI right after integration. We have been integrating Amplitude into mobile apps for over 5 years: 20+ projects with event tracking, revenue, and B2B groups under our belt. Our experience shows that correct user properties boost conversion by 15–30% and cut BigQuery costs by up to 30%. Integration costs start at $500 and can save you up to 30% on analytics infrastructure. Let's walk through SDK integration without losing data.
How Amplitude Integration Improves Mobile App Analytics
Amplitude is not just an event tracker. It's a product analytics platform that lets you build funnels, cohorts, and behavioral paths without SQL. Unlike Firebase, you can set custom user properties, track revenue natively, and group users by organizations for B2B. For funnel building, Amplitude is 3x faster than Firebase because it doesn't require SQL queries. All of this is available in the UI immediately after SDK setup.
Connecting the SDK
Follow these steps to integrate the SDK:
- Add the SDK via package manager: iOS uses Swift Package Manager with the
Amplitude-Swiftpackage; Android uses Gradle. - Initialize with custom tracking options:
import AmplitudeSwift
let amplitude = Amplitude(configuration: Configuration(
apiKey: "YOUR_API_KEY",
defaultTracking: DefaultTrackingOptions(
sessions: true,
appLifecycles: true,
screenViews: false
)
))
// build.gradle
implementation("com.amplitude:analytics-android:1.+")
// Application class
val amplitude = Amplitude(
Configuration(
apiKey = "YOUR_API_KEY",
context = applicationContext,
defaultTracking = DefaultTrackingOptions(
sessions = true,
appLifecycles = true
)
)
)
- Inject the singleton instance via a DI container—it simplifies testing and future SDK replacement.
- For Flutter, use the
amplitude_flutterpackage; for React Native,@amplitude/analytics-react-native. We update SDK versions quarterly to leverage the latest fixes and features.
Events and Properties
Amplitude uses a model of Event → Event Properties + User Properties. Unlike Firebase, event and user properties are separate, and each event is enriched with current user properties at the time of sending.
amplitude.track(
eventType: "Purchase Completed",
eventProperties: [
"product_id": "sku_12345",
"price": 990.0,
"currency": "RUB",
"payment_method": "card"
]
)
amplitude.setUserId("user_\(userId)")
let identify = Identify()
identify.set(property: "plan", value: "premium")
identify.add(property: "total_purchases", value: 1)
amplitude.identify(identifyEvent: identify)
Identify.add() is an atomic server-side increment. With concurrent sessions, set() overwrites the last value, while add() sums correctly.
| Method | Description | Example |
|---|---|---|
setUserId |
Binds events to a user | amplitude.setUserId("user_123") |
identify |
Updates user properties | identify.set(property: "plan", value: "premium") |
revenue |
Tracks revenue | revenue.price = 9.99 |
setGroup |
Sets a group for B2B | amplitude.setGroup(groupType: "company", groupName: "Acme Corp") |
Typed Tracker Layer
We create a typed tracker layer that maps business events to Amplitude calls. This ensures consistent naming and parameter types. For example, a PurchaseCompleted structure with mandatory fields—productId, price, currency. All events are documented in a shared dictionary. Otherwise, after a month you'll have both purchase and Purchase Completed as different funnels.
Revenue Tracking
Amplitude has a built-in Revenue object for monetization—no need to manually add purchase events. Amplitude Documentation recommends using it for LTV calculations.
let revenue = Revenue()
revenue.productId = "premium_monthly"
revenue.price = 9.99
revenue.quantity = 1
revenue.revenueType = "subscription"
amplitude.revenue(revenue: revenue)
Revenue automatically flows into a dashboard with cohort-based LTV. This gives you an accurate monetization picture without SQL.
Groups and Account-Level Analytics
For B2B apps, Amplitude supports group analytics—events are tied to an organization, not just the user:
amplitude.setGroup(groupType: "company", groupName: "Acme Corp")
amplitude.groupIdentify(
groupType: "company",
groupName: "Acme Corp",
identifyObj: Identify().set(property: "plan", value: "enterprise")
)
This is an Enterprise feature, but we architecturally include group support from the first sprint. Otherwise, you'll later have to rewrite the tracker and recalculate history. Note that group type is case-sensitive: "Company" and "company" are different groups.
Why Amplitude Over Firebase for Product Analytics?
Firebase Analytics is great for marketing metrics, but for deep product analytics you need a tool that lets you build funnels, cohorts, and behavioral paths without SQL. Amplitude does this 3x faster via UI, with real-time user property enrichment. Here's a comparison:
| Feature | Firebase Analytics | Amplitude |
|---|---|---|
| Funnels | Limited via BigQuery | Full-featured in UI, up to 10 steps |
| Cohorts | Only retention | Any cohort by properties |
| User Properties | Only default | Custom, atomic operations |
| Revenue Tracking | No built-in | Built-in Revenue object |
| Group Analytics | No | setGroup + groupIdentify |
Our guaranteed integration ensures no data loss and certified best practices. With 5+ years of experience and 20+ projects, we deliver reliable analytics infrastructure.
How to Avoid Event Loss?
Amplitude buffers events and sends them in batches (by default every 30 seconds or 30 events). On force-close, the last events may be lost—for critical events (purchase, activation), call amplitude.flush() immediately after tracking. Also, send events in applicationDidEnterBackground. Typical mistakes: inconsistent event name casing (purchase vs Purchase), missing flush on exit, ignoring groupIdentify for B2B, using Amplitude.instance() instead of DI. Our integration addresses all of these from the start—we lay down the right architecture in the first sprint.
What's Included
- SDK integration (iOS, Android, Flutter, React Native)
- Instance configuration with proper tracking options
- Typed tracker layer with naming convention
- User properties and Identify for segmentation
- Revenue tracking for monetization
- Event verification via Amplitude DebugMode
- Event model documentation
We handle the full Amplitude integration: from SDK to dashboards. Contact us for an analytics audit and get a project estimate within one day.
Timelines
Integration with events and user properties: 1–2 days. With revenue tracking and groups: up to 3 days. Pricing is individual and depends on your logic complexity.







