mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-11-19 18:11:14 +01:00
refactor(analytics): improve PostHog integration
- Update PostHog utilities and provider configuration - Enhance analytics tracking setup
This commit is contained in:
@@ -15,7 +15,7 @@ export function PostHogProvider({ children }: { children: React.ReactNode }) {
|
|||||||
api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST || "https://eu.i.posthog.com",
|
api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST || "https://eu.i.posthog.com",
|
||||||
capture_pageview: false, // We capture pageviews manually
|
capture_pageview: false, // We capture pageviews manually
|
||||||
capture_pageleave: true, // Enable pageleave capture
|
capture_pageleave: true, // Enable pageleave capture
|
||||||
person_profiles: 'identified_only',
|
person_profiles: "identified_only",
|
||||||
loaded(posthogInstance) {
|
loaded(posthogInstance) {
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
window.posthog = posthogInstance
|
window.posthog = posthogInstance
|
||||||
|
|||||||
Reference in New Issue
Block a user