If enabled (default), the connectivity module checks for a connection at a specified interval (controlled via setConnectivityRefreshInterval). Queued dispatches are then sent as soon as a connection is resumed.
config.connectivityRefreshEnabled = true
Sets the default connectivity refresh interval in seconds. Default is 30 seconds if not set on the TealiumConfig instance.
config.connectivityRefreshInterval = 30
Enables the Consent Logging feature, which sends all consent status changes to Tealium Customer Data Hub for auditing purposes.
config.consentLoggingEnabled = true
Returns an array of the currently-enabled delegates.
The following example shows how to get an array of currently-enabled delegate:
letdelegates = config.delegates
Number of events after which to automatically flush the queue.
config.dispatchAfter = 20
Sets the dispatch expiration in days. If the device is offline for an extended period. Older events are deleted.
config.dispatchExpiration = 5
Sets the maximum number of events to store in the event queue. If this number is reached, and the queue has not been flushed, the oldest events are deleted.
Sets the existing visitor ID, used as the first party ID in the app extension |
config.existingVisitorId = id
Sets the name of a local geofences file asset. Do not include the file extension.
config.geofenceFileName = <String>
The JSON file name
Sets the URL of a hosted geofences file.
config.geofenceUrl = <String (url)>
The URL of a geofences file
Sets the user’s initial consent categories when the library starts up for the first time. If there are saved preferences, these override any preferences passed in the config object. Sets the consent status to .consented.
Sets the initial user consent status. This happens for the user when the library starts up for the first time. If there are saved preferences, these override any preferences passed in the config object.
Sets the list of consented categories to include ALL available consent categories, if the status is .consented. Does not allow categories to be set selectively.
Use this method to ignore all tracked events prior to consent, overriding the default behavior of queueing events prior to consent being granted. Add the following line to the config object:
config.initialUserConsentStatus = .notConsented
A value from TealiumConsentStatus enum
[.unknown, .consented, .notConsented]
The following define the different types of Tealium consent statuses from the TealiumConsentStatus enum.
The unknown status is the default setting for the Consent Manager. In this state, the Consent Manager queues events locally until an affirmative consented/notConsented status is provided.
The consented status is set when the user has consented to tracking. In this state, the Consent Manager allow all tracking calls to continue as normal.
The notConsented status is set when the user has declined tracking. In this state, the Consent Manager drops all tracking calls and halt further processing by the SDK.
Sets the current UIView for WKWebView to be attached to. Only required if you have a complex view hierarchy, such as with a push notification, where auto-detection may fail.
letview = self.view
config.rootView = view
Enables or disables memory reporting in the DeviceData module (default: disabled). |
config.searchAdsEnabled = true
If set to true (default), this method determines if a cookie observer should be added in order to successfully migrate all cookies. If set to false, if multiple cookie observers are present then only one of them is called, which may cause some cookies to not migrate.
config.shouldAddCookieObserver = false
The shouldAddCookieObserver property allows you to use your own cookie observer during cookie synchronization, which requires a cookie observer to retrieve cookies on the main thread after setting them. This issue is caused by bugs in WKWebView, which prevents your own observer from being called.
In version 1.9.0+, Mobile Publish Settings are enabled by default, and must be disabled if you don’t wish to use them. Configure the Mobile Publish Settings in iQ Tag Management, or disable it using config.shouldUseRemotePublishSettings = false in the Swift installation. Failure to do causes initialization failures and prevent tracking.
The following example shows how to override the default URL used by the Tag Management module.
Sets the location precision to low accuracy (default) or high accuracy.
The property is disabled (false) by default, which sets the location precision to low accuracy. If the location enabled device moves 500 meters or more, then this is considered a significant location changes causing a location update. Location updates typically take longer than five minutes with this setting.
If enabled (true), the property sets the location of data precision to the highest possible accuracy. The initial event is delivered as quickly as possible and then continues to determine the location and delivers additional events, as necessary, when that data is available.