diff --git a/basics/next-app-router/README.md b/basics/next-app-router/README.md index 4c14656..d0912d1 100644 --- a/basics/next-app-router/README.md +++ b/basics/next-app-router/README.md @@ -78,7 +78,7 @@ import posthog from "posthog-js" posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, { api_host: "/ingest", ui_host: "https://us.posthog.com", - defaults: '2025-05-24', + defaults: '2025-11-30', capture_exceptions: true, debug: process.env.NODE_ENV === "development", }); diff --git a/basics/next-app-router/instrumentation-client.ts b/basics/next-app-router/instrumentation-client.ts index 1fbcc33..628c99f 100644 --- a/basics/next-app-router/instrumentation-client.ts +++ b/basics/next-app-router/instrumentation-client.ts @@ -4,7 +4,7 @@ posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, { api_host: "/ingest", ui_host: "https://us.posthog.com", // Include the defaults option as required by PostHog - defaults: '2025-05-24', + defaults: '2025-11-30', // Enables capturing unhandled exceptions via Error Tracking capture_exceptions: true, // Turn on debug in development mode diff --git a/basics/next-pages-router/README.md b/basics/next-pages-router/README.md index e935435..2bd59f1 100644 --- a/basics/next-pages-router/README.md +++ b/basics/next-pages-router/README.md @@ -77,7 +77,7 @@ import posthog from "posthog-js" posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, { api_host: "/ingest", ui_host: "https://us.posthog.com", - defaults: '2025-05-24', + defaults: '2025-11-30', capture_exceptions: true, debug: process.env.NODE_ENV === "development", }); diff --git a/basics/next-pages-router/instrumentation-client.ts b/basics/next-pages-router/instrumentation-client.ts index 1fbcc33..628c99f 100644 --- a/basics/next-pages-router/instrumentation-client.ts +++ b/basics/next-pages-router/instrumentation-client.ts @@ -4,7 +4,7 @@ posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, { api_host: "/ingest", ui_host: "https://us.posthog.com", // Include the defaults option as required by PostHog - defaults: '2025-05-24', + defaults: '2025-11-30', // Enables capturing unhandled exceptions via Error Tracking capture_exceptions: true, // Turn on debug in development mode diff --git a/basics/react-react-router/README.md b/basics/react-react-router/README.md index 1f0b50b..bf85476 100644 --- a/basics/react-react-router/README.md +++ b/basics/react-react-router/README.md @@ -71,7 +71,7 @@ import posthog from "posthog-js" posthog.init(import.meta.env.VITE_POSTHOG_KEY!, { api_host: import.meta.env.VITE_POSTHOG_HOST, ui_host: import.meta.env.VITE_POSTHOG_HOST || "https://us.i.posthog.com", - person_profiles: 'identified_only', + defaults: '2025-11-30', capture_exceptions: true, debug: import.meta.env.DEV, }); diff --git a/basics/react-react-router/src/lib/posthog-client.ts b/basics/react-react-router/src/lib/posthog-client.ts index fa25a05..cefb11c 100644 --- a/basics/react-react-router/src/lib/posthog-client.ts +++ b/basics/react-react-router/src/lib/posthog-client.ts @@ -6,7 +6,7 @@ if (typeof window !== 'undefined' && !posthog.__loaded) { api_host: "/ingest", ui_host: import.meta.env.VITE_POSTHOG_HOST || "https://us.i.posthog.com", // Include the defaults option as required by PostHog - person_profiles: 'identified_only', + defaults: '2025-11-30', // Enables capturing unhandled exceptions via Error Tracking capture_exceptions: true, // Turn on debug in development mode diff --git a/basics/react-tanstack-router/README.md b/basics/react-tanstack-router/README.md index c2de542..a486985 100644 --- a/basics/react-tanstack-router/README.md +++ b/basics/react-tanstack-router/README.md @@ -71,7 +71,7 @@ import posthog from "posthog-js" posthog.init(import.meta.env.VITE_POSTHOG_KEY!, { api_host: "/ingest", ui_host: import.meta.env.VITE_POSTHOG_HOST || "https://us.i.posthog.com", - person_profiles: 'identified_only', + defaults: '2025-11-30', capture_exceptions: true, debug: import.meta.env.DEV, }); diff --git a/basics/react-tanstack-router/src/lib/posthog-client.ts b/basics/react-tanstack-router/src/lib/posthog-client.ts index fa25a05..cefb11c 100644 --- a/basics/react-tanstack-router/src/lib/posthog-client.ts +++ b/basics/react-tanstack-router/src/lib/posthog-client.ts @@ -6,7 +6,7 @@ if (typeof window !== 'undefined' && !posthog.__loaded) { api_host: "/ingest", ui_host: import.meta.env.VITE_POSTHOG_HOST || "https://us.i.posthog.com", // Include the defaults option as required by PostHog - person_profiles: 'identified_only', + defaults: '2025-11-30', // Enables capturing unhandled exceptions via Error Tracking capture_exceptions: true, // Turn on debug in development mode diff --git a/basics/tanstack-start/README.md b/basics/tanstack-start/README.md index a537c08..1c6d1a5 100644 --- a/basics/tanstack-start/README.md +++ b/basics/tanstack-start/README.md @@ -78,7 +78,7 @@ export function initPostHog() { posthog.init(import.meta.env.VITE_POSTHOG_KEY!, { api_host: '/ingest', ui_host: import.meta.env.VITE_POSTHOG_HOST || 'https://us.posthog.com', - defaults: '2025-05-24', + defaults: '2025-11-30', capture_exceptions: true, debug: import.meta.env.DEV, loaded: (posthog) => { diff --git a/basics/tanstack-start/src/lib/posthog-client.ts b/basics/tanstack-start/src/lib/posthog-client.ts index a4ebcfa..919b1a9 100644 --- a/basics/tanstack-start/src/lib/posthog-client.ts +++ b/basics/tanstack-start/src/lib/posthog-client.ts @@ -7,7 +7,7 @@ export function initPostHog() { api_host: '/ingest', ui_host: import.meta.env.VITE_POSTHOG_HOST || 'https://us.posthog.com', // Include the defaults option as required by PostHog - defaults: '2025-05-24', + defaults: '2025-11-30', // Enables capturing unhandled exceptions via Error Tracking capture_exceptions: true, // Turn on debug in development mode