: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
docs(onboarding): use projectToken in the Kotlin Multiplatform setup (#129653)
Anna Garcia0207d78df50b
diff --git a/docs/onboarding/error-tracking/kmp.tsx b/docs/onboarding/error-tracking/kmp.tsxindex 891665596c0b..4b0f5d0a1884 100644--- a/docs/onboarding/error-tracking/kmp.tsx+++ b/docs/onboarding/error-tracking/kmp.tsx@@ -27,7 +27,7 @@ export const getKMPErrorTrackingSteps = (ctx: OnboardingComponentsContext): Stepcontent: (<><CalloutBox type="fyi" title="Version requirement">- <Markdown>The error tracking configuration requires PostHog KMP version 0.4.0 or higher.</Markdown>+ <Markdown>The error tracking configuration requires PostHog KMP version 0.8.0 or higher.</Markdown></CalloutBox><Markdown>Both the project setting from the previous step and `errorTracking.autoCapture` must be enabled.@@ -55,7 +55,7 @@ export const getKMPErrorTrackingSteps = (ctx: OnboardingComponentsContext): StepPostHog.setup(config = PostHogConfig(- apiKey = "<ph_project_token>",+ projectToken = "<ph_project_token>",host = "<ph_client_api_host>",errorTracking = ErrorTrackingConfig(autoCapture = true,@@ -87,7 +87,7 @@ export const getKMPErrorTrackingSteps = (ctx: OnboardingComponentsContext): StepPostHog.setup(config = PostHogConfig(- apiKey = "<ph_project_token>",+ projectToken = "<ph_project_token>",host = "<ph_client_api_host>",errorTracking = ErrorTrackingConfig(autoCapture = true,diff --git a/docs/onboarding/product-analytics/kmp.tsx b/docs/onboarding/product-analytics/kmp.tsxindex f8add741aec1..03512792c29f 100644--- a/docs/onboarding/product-analytics/kmp.tsx+++ b/docs/onboarding/product-analytics/kmp.tsx@@ -33,7 +33,8 @@ export const getKMPInstallSteps = (ctx: OnboardingComponentsContext): StepDefini`0.+` resolves to the latest `0.x` release. The SDK is a pre-release, so the API can changebetween minor versions – pin an exact version from [MavenCentral](https://central.sonatype.com/artifact/com.posthog/posthog-kmp) if you would rather- upgrade deliberately. Kotlin/Wasm support requires `0.2.0` or higher.+ upgrade deliberately. The setup below requires `0.8.0` or higher. Kotlin/Wasm support requires+ `0.2.0` or higher.</Markdown></>),@@ -72,7 +73,7 @@ export const getKMPInstallSteps = (ctx: OnboardingComponentsContext): StepDefiniPostHog.setup(config = PostHogConfig(- apiKey = "<ph_project_token>",+ projectToken = "<ph_project_token>",host = "<ph_client_api_host>",),context = PostHogContext(this),@@ -112,7 +113,7 @@ export const getKMPInstallSteps = (ctx: OnboardingComponentsContext): StepDefiniLaunchedEffect(Unit) {PostHog.setup(config = PostHogConfig(- apiKey = "<ph_project_token>",+ projectToken = "<ph_project_token>",host = "<ph_client_api_host>",),context = PostHogContext(),@@ -142,7 +143,7 @@ export const getKMPInstallSteps = (ctx: OnboardingComponentsContext): StepDefinifun main() {PostHog.setup(config = PostHogConfig(- apiKey = "<ph_project_token>",+ projectToken = "<ph_project_token>",host = "<ph_client_api_host>",),context = PostHogContext(),@@ -171,7 +172,7 @@ export const getKMPInstallSteps = (ctx: OnboardingComponentsContext): StepDefinifun main() = application {PostHog.setup(config = PostHogConfig(- apiKey = "<ph_project_token>",+ projectToken = "<ph_project_token>",host = "<ph_client_api_host>",),context = PostHogContext(),diff --git a/docs/onboarding/session-replay/kmp.tsx b/docs/onboarding/session-replay/kmp.tsxindex 20783ebab357..dd508079e24e 100644--- a/docs/onboarding/session-replay/kmp.tsx+++ b/docs/onboarding/session-replay/kmp.tsx@@ -34,7 +34,7 @@ export const getKMPSteps = (ctx: OnboardingComponentsContext): StepDefinition[]`0.+` resolves to the latest `0.x` release. The SDK is a pre-release, so the API can changebetween minor versions – pin an exact version from [MavenCentral](https://central.sonatype.com/artifact/com.posthog/posthog-kmp) if you would rather- upgrade deliberately.+ upgrade deliberately. The setup below requires `0.8.0` or higher.</Markdown><CalloutBox type="fyi" title="Supported targets"><Markdown>@@ -78,7 +78,7 @@ export const getKMPSteps = (ctx: OnboardingComponentsContext): StepDefinition[]import com.posthog.kmp.SessionRecordingConfigval config = PostHogConfig(- apiKey = "<ph_project_token>",+ projectToken = "<ph_project_token>",host = "<ph_client_api_host>",// Enable session recording. Requires enabling in your project settings as well.diff --git a/docs/onboarding/web-analytics/kmp.tsx b/docs/onboarding/web-analytics/kmp.tsxindex dcad57235e4e..8b810e7783b6 100644--- a/docs/onboarding/web-analytics/kmp.tsx+++ b/docs/onboarding/web-analytics/kmp.tsx@@ -26,7 +26,7 @@ export const getKMPSteps = (ctx: OnboardingComponentsContext): StepDefinition[]file: 'Kotlin',code: dedent`PostHogConfig(- apiKey = "<ph_project_token>",+ projectToken = "<ph_project_token>",host = "<ph_client_api_host>",captureScreenViews = true,)