trustedcollector
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

trustedcollector

The trustedcollector library exported as a node module.

$ npm i trustedcollector --save-dev

Installation

Using npm:

$ npm i trustedcollector --save-dev

Usage

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

Why trustedcollector?

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.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i trustedcollector

Weekly Downloads

1

Version

0.0.3

License

none

Unpacked Size

219 kB

Total Files

41

Last publish

Collaborators

  • umshere