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.
The number of allowed invalid visitor ID retries before a request fails, which results in tracking calls being sent anyway without an ECID.
config.adobeVisitorRetries = 5
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: