Analytics and Tracking
Meta SDK
Initialize the Meta Android SDK and log app events from website JavaScript.
Before you start
- Meta developer app
- Meta App ID and Client Token
- Event and privacy policy
Configure and verify
Create or select the Meta app
Open Meta for Developers and use the app intended for this mobile product.
Copy credentials
Copy App ID and Client Token from the app settings.
Enable and save
Turn on Meta SDK, enter both values, save, and rebuild.
Verify initialization
Install the APK and use Meta Events Manager test tools to confirm the app connects.
Log events
Call webtoapp.logMetaEvent with approved non-sensitive parameters.
Android build behavior
When App ID is present, the worker includes the Meta SDK dependency, adds manifest metadata and string resources, initializes the SDK, and exposes event logging.
Privacy
Test before release
- Credentials belong to the correct Meta app
- Test event arrives
- No personal data is sent
- Consent and store disclosures are complete