import { Tealium, TealConfig } from '@awesome-cordova-plugins/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"});
});