Android product analytics installation
- 1
Install the dependency
RequiredAdd the PostHog Android SDK to your
build.gradledependencies:build.gradle - 2
Configure PostHog
RequiredInitialize PostHog in your Application class:
SampleApp.kt - 3
Send events
Capture custom events using the PostHog SDK:
KotlinBy default, for backwards compatibility reasons, events are sent with person profile processing enabled. This means a person profile will be created for each user who triggers an event.
If you want to disable person profile processing for certain events, send the event with the following property:
Kotlin