If you are using Swift 1.8.0+, this module is already included in the Core and you do not need to install it. For prior version, follow this guide to install the module.
The DataSource Module adds the data source variable to each dispatch.
Usage of this module is recommended if you are using the Tealium Customer Data Hub. Generate a data source key via the Customer Data Hub user interface. If you are using Tag Management only, it currently doesn’t have any effect, apart from adding a new variable to each dispatch. Learn more about Data Sources.
The following platforms are supported:
Install the DataSource module with CocoaPods or Carthage.
To install the DataSource module with CocoaPods, add the following pod to your Podfile:
The framework is auto-instantiated. It has a dependency on the TealiumCore pod. Learn more about CocoaPods installation for iOS.
To install the DataSource module with Carthage, following these steps:
Go to the app target’s General configuration page in Xcode.
Add the following framework to the Embedded Binaries section:
To allow the datasource parameter to be set on the TealiumConfig class instance, add the following required import statement to your project:
The framework is auto-instantiated. It has a dependency on TealiumCore. No additional import statements are necessary. Learn more about Carthage installation for iOS.
The following variables are transmitted with each tracking call while the module is enabled:
Specifies the data source name. Added to every dispatch.