Tealium Swift Module - TagManagement

Tealium Swift Module - TagManagement

by 4 weeks ago - edited 4 weeks ago by Community Manager (59 Views)
This guide for the Tealium-Swift TagManagement Module covers the following topics:

Features

Requirements

  • Tealium Swift Library
  • Swift 3.0+
  • Requires Apple's UIKit to be available on target platform (iOS, watchOS)

Installation & Configuration

The Tag Management module can be found in the main repo's tealium/tagmanagement folder.  Add the entire folder to the target project.  The Tealium-Swift core library will auto instantiate the module.

To disable the module, do one of the following: (1) delete or dereference the module folder files from the target project, (2) set the module's configuration 'enabled' property to 'false'

Delegate Methods

WebViewDidFinishLoad

tealiumWebViewDidFinishLoading(webView:UIWebView)
Parameters Description
webView Module instance of an unrendered UIWebView object.
// SAMPLE
func tealiumWebViewDidFinishLoading(webView:UIWebView) {

let urlString = webView.request.url.absoluteString
print("Tealium Tag Management configuration endpoint URL is: \(urlString)")

}

WebViewDidFailToLoad

tealiumWebViewDidFailToLoad(webView:UIWebView, error:Error)
Parameters Description
webView Module instance of an unrendered UIWebView object.
error The Error returned
// SAMPLE
func tealiumWebViewDidFailToLoad(webView:UIWebView, error:Error) {

print("Tealium Tag Management failed to load UTAG with error: \(error)")

}

Additional Resources

Change Log

Build 1 - Initial