The TealiumConfig class provides methods to set configuration options for the main Tealium class. The following document summarizes the commonly used methods and properties of the TealiumConfig class for Kotlin. Individual modules may also provide their own extensions for the TealiumConfig class if they are enabled - these are documented in the relevant module’s own document.
String containing the Adobe Org ID including the @ portion. If the Org ID is not provided, the module is not initialized and no visitor ID is retrieved. Tracking calls continue as normal without an Adobe ECID.
Track all activities except those annotated with @Autotracked(track=false).
Track only the activities that are annotated with @Autotracked.
Disable all automatic tracking (for debug or dev builds of your app).
config.autoTrackingMode = AutoTrackingMode.FULL
Collectors are modules that gather supplemental information from the device and append it to the data layer before it’s transmitted to the Tealium Customer Data Hub. Some collectors are included in the core library, while others are optional and installed as separate modules.
The following table lists the available collectors. Default collectors are denoted by a * next to the collector name.
These modules are enabled or disabled using the TealiumConfigcollectors property.
The following example adds to existing list of collectors you’re using:
val config = TealiumConfig(collectors = mutableSetOf(Collectors.AdobeVisitor))
Sets the expiration time of the user consent selections. Set this property prior to Tealium initialization. The default expiration times for consent selections are: