Tealium

Contents

This plugin provides a TypeScript wrapper around the Tealium Cordova plugin for Ionic Native.

https://github.com/Tealium/cordova-plugin

Stuck on a Cordova issue?

Installation

Community Enterprise
ionic cordova plugin add tealium-cordova-plugin npm install @ionic-native/tealium
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More   or   Contact Us
ionic activate-native-ee --key=YOURPRODUCTKEY ionic integrations add @ionic-native/tealium

Supported Platforms

  • Android
  • iOS]
  • // Array of platforms supported
  • example: [Android
  • iOS

Usage

import { Tealium, TealConfig } from '@ionic-native/tealium/ngx';


constructor(private tealium: Tealium) { }

...

let tealConfig: TealConfig = {
 account: "<your-account>",
 profile: "<your-profile>",
 environment: "<your-environment>", // usually "dev", "qa" or "prod"
 isLifecycleEnabled: "true", // pass "false" to disable lifecycle tracking
 isCrashReporterEnabled: "false", // pass "true" to enable crash reporter (Android only)
 instance: "<your-instance-name" // an arbitrary instance name. use the same instance name for all subsequent API calls
}

this.tealium.init(tealConfig).then(()=>{
  this.tealium.trackView({"screen_name": "homescreen"});
});