DaffAnalyticsTracker

The tracker type.

Trackers can either be classes:

export class MyTracker implements DaffAnalyticsTracker {
   track(event: DaffAnalyticsEvent) {
      return of(true);
   }
}

or functions:

export const trackThis = (event: DaffAnalyticsEvent) => {
   return of(true);
}

Type Options
DaffAnalyticsTracker DaffAnalyticsTrackerFunction | DaffAnalyticsTrackerClass
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.