Field Name | Description | Default Value |
---|---|---|
token | The token used for tracking events. | - |
serverGeoZone | The server geo zone for Amplitude server. | ServerGeoZone.EU |
optOut | Indicates whether opt-out is enabled. | false |
minTimeBetweenSessionsMillis | Minimum time between sessions in milliseconds. | 10000 |
Note: The default values mentioned above can be overridden by providing custom values during initialization.
- Download Amplitude analytics add-on:
implementation 'io.github.aminekarimii:analytiks-amplitude:1.0.0'
- Create your own client:
class AmplitudeClient(
token: "TOUR_TOKEN",
serverGeoZone = ServerGeoZone.EU,
optOut = false,
minTimeBetweenSessionsMillis = 10000
)