Skip to content

Latest commit

History

History
32 lines (28 loc) 路 1.38 KB

README.md

File metadata and controls

32 lines (28 loc) 路 1.38 KB

Amplitude Add-on implementation


Configuration

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.

Create Add-on

  1. Download Amplitude analytics add-on:
implementation 'io.github.aminekarimii:analytiks-amplitude:1.0.0'
  1. Create your own client:
class AmplitudeClient(
    token: "TOUR_TOKEN",
    serverGeoZone = ServerGeoZone.EU,
    optOut = false,
    minTimeBetweenSessionsMillis = 10000
)

Check the official documentation for more details:

鉃★笍 Official amplitude analytics