Skip to content

Commit

Permalink
fix: avoid duplicate $pageview events
Browse files Browse the repository at this point in the history
  • Loading branch information
mitjans committed Mar 22, 2024
1 parent f2062bd commit 9a5d42f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runtime/plugins/posthog.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default defineNuxtPlugin({

const clientOptions = defu<PostHogConfig, Partial<PostHogConfig>[]>(config.clientOptions ?? {}, {
api_host: config.host,
capture_pageview: false,
bootstrap: {
featureFlags: posthogFeatureFlags.value,
featureFlagPayloads: posthogFeatureFlagPayloads.value,
Expand Down

0 comments on commit 9a5d42f

Please sign in to comment.