Swift Module: Datasource

Swift Module: Datasource

by on ‎12-22-2017 06:36 AM - edited 2 weeks ago (479 Views)

Purpose

Adds the UDH-generated data source variable to each dispatch.

Supported Platforms

  • iOS
  • tvOS
  • watchOS
  • macOS

Installation

CocoaPods

Framework will be auto-instantiated, so long as the pod is installed. Depends on TealiumCore pod. No additional import statements necessary besides import TealiumSwift.

pod 'tealium-swift/TealiumDataSource

Carthage

Framework will be auto-instantiated, so long as it is compiled into your app (included in "Embedded Binaries"). Depends on TealiumCore.

TealiumDataSource.framework import TealiumDataSource // allows datasource param to be set on the TealiumConfig class instance

Recommended Usage

Usage of this module is recommended if you are using the UDH. You can generate a data source key via the UDH 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. See the Data Sources documentation for more information on this feature.

Included Variables

The following variables will be transmitted with each tracking call while the module is enabled:

Variable Name Description Example Value
tealium_datasource Specifies the data source name. Added to every dispatch. abc123

Public API

No public API methods available. The Data Source variable can be set via the TealiumConfig object (see Swift Class: TealiumConfig)

Future Improvements

No planned changes

Change Log

Build 1

  • Initial release