TrackerConfiguration

This class represents the configuration of the tracker and the core tracker properties. The TrackerConfiguration can be used to setup the tracker behaviour indicating what should be tracked in term of automatic tracking and contexts/entities to track with the events.

Default values: devicePlatform = DevicePlatform.Mobile; base64encoding = true; logLevel = LogLevel.OFF; loggerDelegate = null; sessionContext = true; applicationContext = true; platformContext = true; geoLocationContext = false; screenContext = true; deepLinkContext = true; screenViewAutotracking = true; lifecycleAutotracking = false; installAutotracking = true; exceptionAutotracking = true; diagnosticAutotracking = false; userAnonymisation = false;

Parameters

appId

Identifier of the app.

Constructors

Link copied to clipboard
fun TrackerConfiguration(appId: String, jsonObject: JSONObject)
Link copied to clipboard

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Identifer of the app.

Link copied to clipboard

Whether application context is sent with all the tracked events.

Link copied to clipboard

It indicates whether the JSON data in the payload should be base64 encoded.

Link copied to clipboard
open override fun copy(): Configuration
Link copied to clipboard

Whether deepLink context is sent with all the ScreenView events.

Link copied to clipboard

It sets the device platform the tracker is running on.

Link copied to clipboard

Whether enable diagnostic reporting.

Link copied to clipboard

Whether enable crash reporting.

Link copied to clipboard

Whether geo-location context is sent with all the tracked events.

Link copied to clipboard

Whether enable automatic tracking of install event.

Link copied to clipboard

Whether enable automatic tracking of background and foreground transitions.

Link copied to clipboard

It sets the logger delegate that receive logs from the tracker.

Link copied to clipboard

It sets the log level of tracker logs.

Link copied to clipboard

Whether mobile/platform context is sent with all the tracked events.

Link copied to clipboard

Whether screen context is sent with all the tracked events.

Link copied to clipboard

Whether enable automatic tracking of ScreenView events.

Link copied to clipboard

Whether session context is sent with all the tracked events.

Link copied to clipboard
fun trackerVersionSuffix(trackerVersionSuffix: String?): TrackerConfiguration

Decorate the v_tracker field in the tracker protocol.

Link copied to clipboard

Whether to anonymise client-side user identifiers in session (userId, previousSessionId), subject (userId, networkUserId, domainUserId, ipAddress) and platform context entities (IDFA)

Properties

Link copied to clipboard
open override var appId: String
Link copied to clipboard
open override var applicationContext: Boolean
Link copied to clipboard
open override var base64encoding: Boolean
Link copied to clipboard
open override var deepLinkContext: Boolean
Link copied to clipboard
open override var devicePlatform: DevicePlatform
Link copied to clipboard
open override var diagnosticAutotracking: Boolean
Link copied to clipboard
open override var exceptionAutotracking: Boolean
Link copied to clipboard
open override var geoLocationContext: Boolean
Link copied to clipboard
open override var installAutotracking: Boolean
Link copied to clipboard
open override var lifecycleAutotracking: Boolean
Link copied to clipboard
open override var loggerDelegate: LoggerDelegate? = null
Link copied to clipboard
open override var logLevel: LogLevel
Link copied to clipboard
open override var platformContext: Boolean
Link copied to clipboard
open override var screenContext: Boolean
Link copied to clipboard
open override var screenViewAutotracking: Boolean
Link copied to clipboard
open override var sessionContext: Boolean
Link copied to clipboard
open override var trackerVersionSuffix: String? = null
Link copied to clipboard
open override var userAnonymisation: Boolean

Inheritors

Link copied to clipboard