diff --git a/modules/posthog/index.ts b/modules/posthog/index.ts index 70240fde..6f5d12d7 100644 --- a/modules/posthog/index.ts +++ b/modules/posthog/index.ts @@ -56,9 +56,7 @@ export default defineNuxtModule({ }, defaults: { publicKey: process.env.POSTHOG_API_KEY as string, - host: process.env.DEPLOY_PRIME_URL - ? `${process.env.DEPLOY_PRIME_URL}/ingest` - : (process.env.POSTHOG_API_HOST as string), + host: process.env.POSTHOG_API_HOST as string, capturePageViews: true, disabled: false, }, diff --git a/modules/posthog/runtime/plugins/posthog.client.ts b/modules/posthog/runtime/plugins/posthog.client.ts index 49ad0ddc..a687453d 100644 --- a/modules/posthog/runtime/plugins/posthog.client.ts +++ b/modules/posthog/runtime/plugins/posthog.client.ts @@ -21,7 +21,7 @@ export default defineNuxtPlugin({ const clientOptions = defu[]>(config.clientOptions ?? {}, { api_host: config.host, - ui_host: '', + ui_host: 'https://us.posthog.com', capture_pageview: false, bootstrap: { featureFlags: posthogFeatureFlags.value,