Tealium

Contents

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

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

Ionic Tealium插件的安装(Installation)

ionic cordova plugin add tealium-cordova-plugin npm install @ionic-native/tealium

Ionic Tealium插件支持的平台(Supported Platforms)

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

Ionic Tealium插件的用法(Usage)

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


constructor(private tealium: Tealium) { }

...

let tealConfig: TealConfig = {
 account: "",
 profile: "",
 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: "{
  this.tealium.trackView({"screen_name": "homescreen"});
});