16 lines
401 B
TypeScript
16 lines
401 B
TypeScript
import type { AnalyticsService, AnalyticsEventProperties } from "./service";
|
|
|
|
/**
|
|
* No-operation analytics service.
|
|
* Used when analytics are disabled or for local development.
|
|
*/
|
|
export class NoopAnalyticsService implements AnalyticsService {
|
|
track(eventName: string, props?: AnalyticsEventProperties): void {
|
|
// Do nothing
|
|
}
|
|
|
|
trackPageview(url?: string): void {
|
|
// Do nothing
|
|
}
|
|
}
|