From 137bc0e8a522e1595cb765344fb0badbd72bb5dd Mon Sep 17 00:00:00 2001 From: Louis Date: Thu, 14 Dec 2023 20:11:07 +0700 Subject: [PATCH] chore: limit analytics events capture (#1012) --- web/utils/posthog.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/utils/posthog.ts b/web/utils/posthog.ts index b490842da..b46abf8b5 100644 --- a/web/utils/posthog.ts +++ b/web/utils/posthog.ts @@ -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 {}