Swift Module: Collect

Swift Module: Collect

by ‎12-22-2017 06:36 AM - edited ‎12-22-2017 08:00 AM (319 Views)


Dispatches tracking calls to Tealium's Universal Data Hub (UDH).

In the Objective-C library (GitHub:tealium-ios), the Collect module dispatched events to the main profile by default, unless overridden. By contrast, the Swift Collect module sends data to the profile passed in the TealiumConfig object.

Supported Platforms

  • iOS
  • tvOS
  • watchOS
  • macOS

External Dependencies


Recommended Usage

Usage of this module is strongly recommended if you are using Tealium's UDH. As an alternative, if you are using the Tag Management module, you may instead use the Collect tag via Tealium iQ. This may give greater control over the data and events dispatched to the UDH, as you may then use load rules and extensions to manipulate the data prior to dispatch. If you are using the Collect tag via Tealium iQ, please ensure the Collect module is disabled to avoid duplicate tracking requests.

Included Variables

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

Variable Description Example Value
dispatch_service Static string to indicate which module the tracking call came from collect

Public API

There are no public API methods for the Collect module. Dispatch successes and failures may be monitored through the Delegate module.

Future Improvements

  • Switch to POST instead of GET requests to allow larger requests.
  • Migrate from vdata to the new "event" endpoint

Change Log

Build 1.4.0

  • Added config method to override collect URL

Build 1

  • Send dispatches to vdata endpoint