Get Started

DaffAnalyticsTracker

The tracker type.

Type Options
DaffAnalyticsTracker DaffAnalyticsTrackerFunction | DaffAnalyticsTrackerClass

Examples

Implementing a tracker as a class

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

Implementing a tracker as a function

export const trackThis = (event: DaffAnalyticsEvent) => {
   return of(true);
}
Graycore, LLC © 2018 - 2025. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.