chore: limit analytics events capture (#1012)

This commit is contained in:
Louis 2023-12-14 20:11:07 +07:00 committed by GitHub
parent 4f41dab9b5
commit 137bc0e8a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,9 @@ import posthog, { Properties } from 'posthog-js'
posthog.init(ANALYTICS_ID, {
api_host: ANALYTICS_HOST,
autocapture: {
url_allowlist: ['*'],
},
})
export const instance = posthog
@ -11,5 +14,4 @@ export const trackEvent = (name: string, properties?: Properties) => {
posthog.capture(name, properties)
}
export enum AnalyticsEvent {
}
export enum AnalyticsEvent {}