Analytics and Tracking
AppsFlyer
Initialize AppsFlyer in Android builds for attribution, install and open tracking, and bridge-driven custom events.
Before you start
- AppsFlyer account and app record
- AppsFlyer Dev Key
- Android package name or numeric iOS App Store ID
Configure and verify
Create the AppsFlyer app
Add the correct platform app in AppsFlyer and copy its Dev Key.
Enter identifiers
Android App ID is normally the package name. iOS uses the numeric App Store ID without the id prefix.
Enable and save
Turn on AppsFlyer, enter Dev Key and App ID, save, and rebuild.
Verify automatic startup
Install the test APK, launch it, and confirm the device appears in AppsFlyer test or debug tools.
Log custom events
Use webtoapp.logAppsFlyerEvent for documented analytics-safe events.
Android build behavior
When configured, the worker keeps appsflyer_sdk, initializes AppsFlyer during WebView startup, and exposes event logging.
Privacy
Test before release
- Dev Key belongs to the correct account
- App ID matches the platform
- Install/open appears in AppsFlyer
- Custom test event arrives
- Consent requirements are met