Tealium

Contents

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

For full documentation, see https://community.tealiumiq.com/t5/Mobile-Libraries/Tealium-for-Cordova/ta-p/17618

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

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Ionic Tealium插件的安装(Installation)

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 enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/tealium

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

  • Android
  • iOS

Ionic Tealium插件的用法(Usage)

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


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"});
});