This commit is contained in:
11
lib/services/analytics/noop-analytics-service.ts
Normal file
11
lib/services/analytics/noop-analytics-service.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import type { AnalyticsEventProperties, AnalyticsService } from './analytics-service';
|
||||
|
||||
export class NoopAnalyticsService implements AnalyticsService {
|
||||
track(_eventName: string, _props?: AnalyticsEventProperties) {
|
||||
// intentionally noop
|
||||
}
|
||||
|
||||
trackPageview(_url?: string) {
|
||||
// intentionally noop
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user