The trustedcollector library exported as a node module.
$ npm i trustedcollector --save-dev
Using npm:
$ npm i trustedcollector --save-dev
Angular Project: import trustedcollector module in 'app.module.ts'
import { TrustedcollectorModule} from 'trustedcollector';
...
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule, TrustedcollectorModule
],
providers: [],
bootstrap: [AppComponent]
})
Import inside the component where we want to push the event.
import {TrustedcollectorService, PaymentEvent, LoginEvent } from 'trustedcollector';
Vaidate the event data by typecasting into respective interface.
const loginEventData: LoginEvent = {...};
Push the event using trustedcollector service
this.trustedcollectorService.pushEvent("frontline.login", loginEventData);
This SDK is a simple typescript library which will push telemetry Events to a dedicated trusted collector Engine which collects this event data in a data pool and serves as a source to analytics framework.
- Easy to Integrate.
- Lightweight.
- Extensible.
MIT