Skip to content

Commit

Permalink
chore: limit analytics events capture (#1012)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan authored Dec 14, 2023
1 parent 4f41dab commit 137bc0e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/utils/posthog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -11,5 +14,4 @@ export const trackEvent = (name: string, properties?: Properties) => {
posthog.capture(name, properties)
}

export enum AnalyticsEvent {
}
export enum AnalyticsEvent {}

0 comments on commit 137bc0e

Please sign in to comment.