:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(onboarding): ship 2026-05-30 sdk defaults in install snippets (#64863)
Paul D'Ambra332d49181b66
diff --git a/docs/onboarding/product-analytics/_snippets/sdkDefaults.ts b/docs/onboarding/product-analytics/_snippets/sdkDefaults.tsnew file mode 100644index 000000000000..bf14f863f9ab--- /dev/null+++ b/docs/onboarding/product-analytics/_snippets/sdkDefaults.ts@@ -0,0 +1,4 @@+// Docs track their own SDK defaults date, deliberately separate from the app's+// SDK_DEFAULTS_DATE in frontend/src/loadPostHogJS: the app dogfoods new defaults+// ahead of customers, so this date is promoted only once a default is released.+export const SDK_DEFAULTS_DATE = '2026-05-30'diff --git a/docs/onboarding/product-analytics/angular.tsx b/docs/onboarding/product-analytics/angular.tsxindex 50536404efb6..f200e71cb23a 100644--- a/docs/onboarding/product-analytics/angular.tsx+++ b/docs/onboarding/product-analytics/angular.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getAngularSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, dedent, snippets, Tab } = ctx@@ -90,7 +91,7 @@ export const getAngularSteps = (ctx: OnboardingComponentsContext): StepDefinitiothis.ngZone.runOutsideAngular(() => {posthog.init(environment.posthogKey, {api_host: environment.posthogHost,- defaults: '2026-01-30',+ defaults: '${SDK_DEFAULTS_DATE}',});});}@@ -156,7 +157,7 @@ export const getAngularSteps = (ctx: OnboardingComponentsContext): StepDefinitioimport posthog from 'posthog-js'posthog.init(environment.posthogKey, {api_host: environment.posthogHost,- defaults: '2025-11-30'+ defaults: '${SDK_DEFAULTS_DATE}'})bootstrapApplication(AppComponent, appConfig).catch((err) => console.error(err));diff --git a/docs/onboarding/product-analytics/astro.tsx b/docs/onboarding/product-analytics/astro.tsxindex 96347f30bfe7..875edf8d2521 100644--- a/docs/onboarding/product-analytics/astro.tsx+++ b/docs/onboarding/product-analytics/astro.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getAstroSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, dedent, snippets } = ctx@@ -44,7 +45,7 @@ export const getAstroSteps = (ctx: OnboardingComponentsContext): StepDefinition[!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group identify setPersonProperties setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags resetGroups onFeatureFlags addFeatureFlagsHandler onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);posthog.init('<ph_project_token>', {api_host: '<ph_client_api_host>',- defaults: '2026-01-30'+ defaults: '${SDK_DEFAULTS_DATE}'})</script>`,diff --git a/docs/onboarding/product-analytics/bubble.tsx b/docs/onboarding/product-analytics/bubble.tsxindex 233ad2ae4250..08d2d508f769 100644--- a/docs/onboarding/product-analytics/bubble.tsx+++ b/docs/onboarding/product-analytics/bubble.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getBubbleSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, dedent, snippets } = ctx@@ -24,7 +25,7 @@ export const getBubbleSteps = (ctx: OnboardingComponentsContext): StepDefinition!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group identify setPersonProperties setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags resetGroups onFeatureFlags addFeatureFlagsHandler onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);posthog.init('<ph_project_token>', {api_host: '<ph_client_api_host>',- defaults: '2026-01-30'+ defaults: '${SDK_DEFAULTS_DATE}'})</script>`,diff --git a/docs/onboarding/product-analytics/flutter.tsx b/docs/onboarding/product-analytics/flutter.tsxindex f0214e6468d0..cd13773f864d 100644--- a/docs/onboarding/product-analytics/flutter.tsx+++ b/docs/onboarding/product-analytics/flutter.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getFlutterSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, Tab, dedent } = ctx@@ -124,7 +125,7 @@ export const getFlutterSteps = (ctx: OnboardingComponentsContext): StepDefinitio!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group identify setPersonProperties setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags resetGroups onFeatureFlags addFeatureFlagsHandler onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);posthog.init('<ph_project_token>', {api_host: '<ph_client_api_host>',- defaults: '2026-01-30',+ defaults: '${SDK_DEFAULTS_DATE}',})</script></head>diff --git a/docs/onboarding/product-analytics/framer.tsx b/docs/onboarding/product-analytics/framer.tsxindex 3a579928f73a..a05b125eaa83 100644--- a/docs/onboarding/product-analytics/framer.tsx+++ b/docs/onboarding/product-analytics/framer.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getFramerSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, dedent, snippets } = ctx@@ -24,7 +25,7 @@ export const getFramerSteps = (ctx: OnboardingComponentsContext): StepDefinition!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group identify setPersonProperties setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags resetGroups onFeatureFlags addFeatureFlagsHandler onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);posthog.init('<ph_project_token>', {api_host: '<ph_client_api_host>',- defaults: '2026-01-30'+ defaults: '${SDK_DEFAULTS_DATE}'})</script>`,diff --git a/docs/onboarding/product-analytics/google-tag-manager.tsx b/docs/onboarding/product-analytics/google-tag-manager.tsxindex 1b538784f9f4..46c90a4776f4 100644--- a/docs/onboarding/product-analytics/google-tag-manager.tsx+++ b/docs/onboarding/product-analytics/google-tag-manager.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getGoogleTagManagerSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, dedent, snippets } = ctx@@ -32,7 +33,7 @@ export const getGoogleTagManagerSteps = (ctx: OnboardingComponentsContext): Step!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group identify setPersonProperties setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags resetGroups onFeatureFlags addFeatureFlagsHandler onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);posthog.init('<ph_project_token>', {api_host: '<ph_client_api_host>',- defaults: '2026-01-30'+ defaults: '${SDK_DEFAULTS_DATE}'})</script>`,diff --git a/docs/onboarding/product-analytics/nextjs.tsx b/docs/onboarding/product-analytics/nextjs.tsxindex 1037cfe999ac..5ce2f48a897f 100644--- a/docs/onboarding/product-analytics/nextjs.tsx+++ b/docs/onboarding/product-analytics/nextjs.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getNextJSClientSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, CalloutBox, Tab, dedent } = ctx@@ -94,7 +95,7 @@ export const getNextJSClientSteps = (ctx: OnboardingComponentsContext): StepDefiposthog.init(process.env.NEXT_PUBLIC_POSTHOG_PROJECT_TOKEN!, {api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST,- defaults: '2026-01-30'+ defaults: '${SDK_DEFAULTS_DATE}'})`,},@@ -125,7 +126,7 @@ export const getNextJSClientSteps = (ctx: OnboardingComponentsContext): StepDefiuseEffect(() => {posthog.init(process.env.NEXT_PUBLIC_POSTHOG_PROJECT_TOKEN as string, {api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST,- defaults: '2026-01-30'+ defaults: '${SDK_DEFAULTS_DATE}'})}, [])@@ -189,7 +190,7 @@ export const getNextJSClientSteps = (ctx: OnboardingComponentsContext): StepDefiuseEffect(() => {posthog.init(process.env.NEXT_PUBLIC_POSTHOG_PROJECT_TOKEN as string, {api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST,- defaults: '2026-01-30',+ defaults: '${SDK_DEFAULTS_DATE}',loaded: (posthog) => {if (process.env.NODE_ENV === 'development') posthog.debug()}diff --git a/docs/onboarding/product-analytics/nuxt.tsx b/docs/onboarding/product-analytics/nuxt.tsxindex 99b00d0cff29..e0d85354a3b9 100644--- a/docs/onboarding/product-analytics/nuxt.tsx+++ b/docs/onboarding/product-analytics/nuxt.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getNuxtClientSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, CalloutBox, dedent } = ctx@@ -63,7 +64,7 @@ export const getNuxtClientSteps = (ctx: OnboardingComponentsContext): StepDefinipublic: {posthogPublicKey: '<ph_project_token>',posthogHost: '<ph_client_api_host>',- posthogDefaults: '2026-01-30'+ posthogDefaults: '${SDK_DEFAULTS_DATE}'}}})diff --git a/docs/onboarding/product-analytics/react-router.tsx b/docs/onboarding/product-analytics/react-router.tsxindex 7de8fb1a1ffc..f666a21b8492 100644--- a/docs/onboarding/product-analytics/react-router.tsx+++ b/docs/onboarding/product-analytics/react-router.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getReactRouterSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, dedent, snippets } = ctx@@ -97,7 +98,7 @@ export const getReactRouterSteps = (ctx: OnboardingComponentsContext): StepDefinposthog.init("<ph_project_token>", {api_host: "<ph_client_api_host>",- defaults: "2026-01-30",+ defaults: "${SDK_DEFAULTS_DATE}",});startTransition(() => {diff --git a/docs/onboarding/product-analytics/react.tsx b/docs/onboarding/product-analytics/react.tsxindex 7aebdee873e0..04797687db8f 100644--- a/docs/onboarding/product-analytics/react.tsx+++ b/docs/onboarding/product-analytics/react.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getReactSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, CalloutBox, dedent, snippets } = ctx@@ -92,7 +93,7 @@ export const getReactSteps = (ctx: OnboardingComponentsContext): StepDefinition[const options = {api_host: import.meta.env.VITE_POSTHOG_HOST,- defaults: '2026-01-30',+ defaults: '${SDK_DEFAULTS_DATE}',} as constcreateRoot(document.getElementById('root')).render(diff --git a/docs/onboarding/product-analytics/remix.tsx b/docs/onboarding/product-analytics/remix.tsxindex e20cab081f19..52d6400dd527 100644--- a/docs/onboarding/product-analytics/remix.tsx+++ b/docs/onboarding/product-analytics/remix.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getRemixSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, CalloutBox, dedent, snippets } = ctx@@ -114,7 +115,7 @@ export const getRemixSteps = (ctx: OnboardingComponentsContext): StepDefinition[useEffect(() => {posthog.init("<ph_project_token>", {api_host: "<ph_client_api_host>",- defaults: "2026-01-30"+ defaults: "${SDK_DEFAULTS_DATE}"});setHydrated(true);diff --git a/docs/onboarding/product-analytics/retool.tsx b/docs/onboarding/product-analytics/retool.tsxindex 8a1597ee04a1..fba3aea8270a 100644--- a/docs/onboarding/product-analytics/retool.tsx+++ b/docs/onboarding/product-analytics/retool.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getRetoolSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, CalloutBox, dedent } = ctx@@ -32,7 +33,7 @@ export const getRetoolSteps = (ctx: OnboardingComponentsContext): StepDefinition!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group identify setPersonProperties setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags resetGroups onFeatureFlags addFeatureFlagsHandler onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);posthog.init('<ph_project_token>', {api_host: '<ph_client_api_host>',- defaults: '2026-01-30'+ defaults: '${SDK_DEFAULTS_DATE}'})</script>`,diff --git a/docs/onboarding/product-analytics/sentry.tsx b/docs/onboarding/product-analytics/sentry.tsxindex 8e29508604e4..7ca1c4530b87 100644--- a/docs/onboarding/product-analytics/sentry.tsx+++ b/docs/onboarding/product-analytics/sentry.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getSentrySteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, CalloutBox, dedent } = ctx@@ -52,7 +53,7 @@ export const getSentrySteps = (ctx: OnboardingComponentsContext): StepDefinition// Initialize PostHog with Sentry integrationposthog.init('<ph_project_token>', {api_host: '<ph_client_api_host>',- defaults: '2026-01-30'+ defaults: '${SDK_DEFAULTS_DATE}'})// Set PostHog session ID on Sentry scopediff --git a/docs/onboarding/product-analytics/shopify.tsx b/docs/onboarding/product-analytics/shopify.tsxindex e68fd3f9a521..078fc8439dc4 100644--- a/docs/onboarding/product-analytics/shopify.tsx+++ b/docs/onboarding/product-analytics/shopify.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getShopifySteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, dedent } = ctx@@ -34,7 +35,7 @@ export const getShopifySteps = (ctx: OnboardingComponentsContext): StepDefinitio!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group identify setPersonProperties setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags resetGroups onFeatureFlags addFeatureFlagsHandler onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);posthog.init('<ph_project_token>', {api_host: '<ph_client_api_host>',- defaults: '2026-01-30'+ defaults: '${SDK_DEFAULTS_DATE}'})</script>`,diff --git a/docs/onboarding/product-analytics/svelte.tsx b/docs/onboarding/product-analytics/svelte.tsxindex ed11a7ba341f..4335355828c6 100644--- a/docs/onboarding/product-analytics/svelte.tsx+++ b/docs/onboarding/product-analytics/svelte.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getSvelteClientSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, CalloutBox, dedent } = ctx@@ -65,7 +66,7 @@ export const getSvelteClientSteps = (ctx: OnboardingComponentsContext): StepDefi'<ph_project_token>',{api_host: '<ph_client_api_host>',- defaults: '2026-01-30'+ defaults: '${SDK_DEFAULTS_DATE}'})}diff --git a/docs/onboarding/product-analytics/tanstack.tsx b/docs/onboarding/product-analytics/tanstack.tsxindex 688696e0838b..7ac25e1d5241 100644--- a/docs/onboarding/product-analytics/tanstack.tsx+++ b/docs/onboarding/product-analytics/tanstack.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getTanStackSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, CalloutBox, dedent, snippets } = ctx@@ -86,7 +87,7 @@ export const getTanStackSteps = (ctx: OnboardingComponentsContext): StepDefiniticonst options = {api_host: import.meta.env.VITE_POSTHOG_HOST,- defaults: '2026-01-30',+ defaults: '${SDK_DEFAULTS_DATE}',} as constcreateRoot(document.getElementById('root')).render(diff --git a/docs/onboarding/product-analytics/vue.tsx b/docs/onboarding/product-analytics/vue.tsxindex b3765b667d4f..e30b3693aeab 100644--- a/docs/onboarding/product-analytics/vue.tsx+++ b/docs/onboarding/product-analytics/vue.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getVueSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, CalloutBox, dedent, snippets } = ctx@@ -65,7 +66,7 @@ export const getVueSteps = (ctx: OnboardingComponentsContext): StepDefinition[]export function usePostHog() {posthog.init('<ph_project_token>', {api_host: '<ph_client_api_host>',- defaults: '2026-01-30'+ defaults: '${SDK_DEFAULTS_DATE}'})return { posthog }diff --git a/docs/onboarding/product-analytics/webflow.tsx b/docs/onboarding/product-analytics/webflow.tsxindex 219f568af67b..f1cf657168e9 100644--- a/docs/onboarding/product-analytics/webflow.tsx+++ b/docs/onboarding/product-analytics/webflow.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getWebflowSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, dedent, snippets } = ctx@@ -24,7 +25,7 @@ export const getWebflowSteps = (ctx: OnboardingComponentsContext): StepDefinitio!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group identify setPersonProperties setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags resetGroups onFeatureFlags addFeatureFlagsHandler onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);posthog.init('<ph_project_token>', {api_host: '<ph_client_api_host>',- defaults: '2026-01-30'+ defaults: '${SDK_DEFAULTS_DATE}'})</script>`,diff --git a/docs/onboarding/product-analytics/wordpress.tsx b/docs/onboarding/product-analytics/wordpress.tsxindex 8e3c5b1fdb94..3e5c86ad8ac6 100644--- a/docs/onboarding/product-analytics/wordpress.tsx+++ b/docs/onboarding/product-analytics/wordpress.tsx@@ -1,6 +1,7 @@import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'import { StepDefinition } from '../steps'+import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'export const getWordpressSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {const { CodeBlock, Markdown, CalloutBox, dedent } = ctx@@ -26,7 +27,7 @@ export const getWordpressSteps = (ctx: OnboardingComponentsContext): StepDefinit!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group identify setPersonProperties setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags resetGroups onFeatureFlags addFeatureFlagsHandler onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);posthog.init('<ph_project_token>', {api_host: '<ph_client_api_host>',- defaults: '2026-01-30'+ defaults: '${SDK_DEFAULTS_DATE}'})</script>`,