If your project is in the US, change the URL prefix to us.posthog.com.
2
Click Create key
Open the Personal API keys section and select Create personal API key.
PostHog API Keys settings with Create personal API key button
3
Fill in the form
Select Projects
Choose the project you want to integrate
Create personal API key form with project selection
4
Set access permissions
Select MCP Server from the Scopes dropdown.
Select MCP Server from the Scopes dropdown
5
Create and copy your API key
Click Create key and paste it into the form at userjourneys.
You’re all set
⌘I
{"docsConfig":{"theme":"willow","$schema":"https://mintlify.com/docs.json","name":"userjourneys.ai","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/userjourneysai/CLMVyZUzWvXxqRzG/logo/light.svg?fit=max\u0026auto=format\u0026n=CLMVyZUzWvXxqRzG\u0026q=85\u0026s=39befce5d43110153aa7885eac903adf","dark":"https://mintcdn.com/userjourneysai/CLMVyZUzWvXxqRzG/logo/dark.svg?fit=max\u0026auto=format\u0026n=CLMVyZUzWvXxqRzG\u0026q=85\u0026s=986b7bd4d833365a9d4c63cbed9cdcdd"},"favicon":"https://mintcdn.com/userjourneysai/nyd8dtu6vaKtnDQc/favicon.ico?fit=max\u0026auto=format\u0026n=nyd8dtu6vaKtnDQc\u0026q=85\u0026s=807aaa241dbbdbc106acf92f3539a6d5","navbar":{"links":[{"href":"/support","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.userjourneys.ai"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/userjourneys-ai"}},"contextual":{"options":["copy","view"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"userjourneysai","hasAudioNarration":false,"actualSubdomain":"userjourneysai","customDomains":["docs.userjourneys.ai"],"gitSource":{"type":"github","owner":"userjourneys-ai","repo":"userjourneys","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae16820cac930da9a384c15","collectionId":"c787d868-d08c-490f-a6d6-d852740b4381","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae16820cac930da9a384c15"},"entitlements":{},"buildId":"6ae16820cac930da9a384c15","clientVersion":"0.0.4054","searchFilterCounts":[{"language":"default","tag":"API","count":10},{"language":"default","tag":"Interviews","count":9},{"language":"default","tag":"React Native SDK","count":9},{"language":"default","tag":"Integrations","count":3},{"language":"default","tag":"Guides","count":3},{"language":"default","tag":"AI Agent","count":2},{"language":"default","tag":"CLI","count":2},{"language":"default","tag":"Getting Started","count":1},{"language":"default","tag":"Support","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"#sidebar,#sidebar-content{overflow-x:hidden!important}#sidebar,#sidebar-content,.stable-scrollbar-gutter{scrollbar-gutter:auto!important}"}],"page":{"pagePath":"funnels/posthog","slug":"/funnels/posthog","pageMetadata":{"title":"PostHog Setup","description":"Follow these steps to create and configure your PostHog API key with userjourneys.ai","sidebarTitle":"PostHog Setup","href":"/funnels/posthog"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Follow these steps to create and configure your PostHog API key with userjourneys.ai\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Check,Frame,Heading,OptimizedImage,Step,Steps,Tip}=_components;if(!Check)_missingMdxReference(`Check`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`creating-your-api-key`,children:`Creating your API key`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Navigate to PostHog API settings`,children:[_jsxs(_components.p,{children:[`Go to `,_jsx(`a`,{href:`https://eu.posthog.com/settings/user-api-keys`,target:`_blank`,rel:`noreferrer`,children:`eu.posthog.com/settings/user-api-keys`}),`.`]}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`If your project is in the US, change the URL prefix to `,_jsx(`code`,{children:`us.posthog.com`}),`.`]})})]}),_jsxs(Step,{title:`Click Create key`,children:[_jsxs(_components.p,{children:[`Open the `,_jsx(`strong`,{children:`Personal API keys`}),` section and select `,_jsx(`strong`,{children:`Create personal API key`}),`.`]}),_jsx(Frame,{caption:`PostHog API Keys settings with Create personal API key button`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/userjourneysai/d38eSOYmSu1pe0V2/images/posthog_create_key_1.jpg?fit=max\u0026auto=format\u0026n=d38eSOYmSu1pe0V2\u0026q=85\u0026s=506e18a6d890e07b2a5aadfebb5d2d89`,alt:`PostHog API Keys settings page showing the Create personal API key button`,\"data-og-width\":`965`,width:`965`,\"data-og-height\":`293`,height:`293`,\"data-path\":`images/posthog_create_key_1.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/userjourneysai/d38eSOYmSu1pe0V2/images/posthog_create_key_1.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=d38eSOYmSu1pe0V2\u0026q=85\u0026s=0d14e4c6ef09e2fb8d6f23f58a825ba3 280w, https://mintcdn.com/userjourneysai/d38eSOYmSu1pe0V2/images/posthog_create_key_1.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=d38eSOYmSu1pe0V2\u0026q=85\u0026s=75c64475d58912ea63302c5ed7d73103 560w, https://mintcdn.com/userjourneysai/d38eSOYmSu1pe0V2/images/posthog_create_key_1.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=d38eSOYmSu1pe0V2\u0026q=85\u0026s=f29eb67e3b1a454b1c283feeec81fc44 840w, https://mintcdn.com/userjourneysai/d38eSOYmSu1pe0V2/images/posthog_create_key_1.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=d38eSOYmSu1pe0V2\u0026q=85\u0026s=dac81aec4a636fe25b8a34d0dfdd706c 1100w, https://mintcdn.com/userjourneysai/d38eSOYmSu1pe0V2/images/posthog_create_key_1.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=d38eSOYmSu1pe0V2\u0026q=85\u0026s=569d109fd3c5b0730fdd3e9443508e16 1650w, https://mintcdn.com/userjourneysai/d38eSOYmSu1pe0V2/images/posthog_create_key_1.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=d38eSOYmSu1pe0V2\u0026q=85\u0026s=be1a91da78b14f2711343994a3761b31 2500w`})})]}),_jsxs(Step,{title:`Fill in the form`,children:[_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Select `,_jsx(`strong`,{children:`Projects`})]}),`\n`,_jsx(_components.li,{children:`Choose the project you want to integrate`}),`\n`]}),_jsx(Frame,{caption:`Create personal API key form with project selection`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/userjourneysai/d38eSOYmSu1pe0V2/images/posthog_project_selection_2.jpg?fit=max\u0026auto=format\u0026n=d38eSOYmSu1pe0V2\u0026q=85\u0026s=4824571b23723ea5e81485746b6c25a5`,alt:`Create personal API key form showing project selection and access tabs`,\"data-og-width\":`903`,width:`903`,\"data-og-height\":`459`,height:`459`,\"data-path\":`images/posthog_project_selection_2.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/userjourneysai/d38eSOYmSu1pe0V2/images/posthog_project_selection_2.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=d38eSOYmSu1pe0V2\u0026q=85\u0026s=ae88fd980e072735fd81b8d2ec2be828 280w, https://mintcdn.com/userjourneysai/d38eSOYmSu1pe0V2/images/posthog_project_selection_2.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=d38eSOYmSu1pe0V2\u0026q=85\u0026s=9b70bf1b03ad87cb2e9a1c19345089b6 560w, https://mintcdn.com/userjourneysai/d38eSOYmSu1pe0V2/images/posthog_project_selection_2.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=d38eSOYmSu1pe0V2\u0026q=85\u0026s=4bc1b262b6e112ca8b8b5ce2698a2aa5 840w, https://mintcdn.com/userjourneysai/d38eSOYmSu1pe0V2/images/posthog_project_selection_2.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=d38eSOYmSu1pe0V2\u0026q=85\u0026s=848f2a7cc663204f5fe16625d6b8311d 1100w, https://mintcdn.com/userjourneysai/d38eSOYmSu1pe0V2/images/posthog_project_selection_2.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=d38eSOYmSu1pe0V2\u0026q=85\u0026s=277f62a7ec2cba9c9b296f71fc1b6e43 1650w, https://mintcdn.com/userjourneysai/d38eSOYmSu1pe0V2/images/posthog_project_selection_2.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=d38eSOYmSu1pe0V2\u0026q=85\u0026s=ccf882a2087f9c8396c92501eef04ccb 2500w`})})]}),_jsxs(Step,{title:`Set access permissions`,children:[_jsxs(_components.p,{children:[`Select `,_jsx(_components.strong,{children:`MCP Server`}),` from the Scopes dropdown.`]}),_jsx(Frame,{caption:`Select MCP Server from the Scopes dropdown`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/userjourneysai/gZzoJ8JJo7m8EEpt/images/mcp_server.png?fit=max\u0026auto=format\u0026n=gZzoJ8JJo7m8EEpt\u0026q=85\u0026s=ae68cd0ed7008610a9a9b0a65ab5fde7`,alt:`PostHog Scopes dropdown with MCP Server selected`,\"data-og-width\":`625`,width:`625`,\"data-og-height\":`373`,height:`373`,\"data-path\":`images/mcp_server.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/userjourneysai/gZzoJ8JJo7m8EEpt/images/mcp_server.png?w=280\u0026fit=max\u0026auto=format\u0026n=gZzoJ8JJo7m8EEpt\u0026q=85\u0026s=916fca68f31f764704bfcc9972b379bb 280w, https://mintcdn.com/userjourneysai/gZzoJ8JJo7m8EEpt/images/mcp_server.png?w=560\u0026fit=max\u0026auto=format\u0026n=gZzoJ8JJo7m8EEpt\u0026q=85\u0026s=fe3d5220e42fe1d5ac7227ffeb637bc0 560w, https://mintcdn.com/userjourneysai/gZzoJ8JJo7m8EEpt/images/mcp_server.png?w=840\u0026fit=max\u0026auto=format\u0026n=gZzoJ8JJo7m8EEpt\u0026q=85\u0026s=f1c6d4c89f958a3c3427148d89a2dffd 840w, https://mintcdn.com/userjourneysai/gZzoJ8JJo7m8EEpt/images/mcp_server.png?w=1100\u0026fit=max\u0026auto=format\u0026n=gZzoJ8JJo7m8EEpt\u0026q=85\u0026s=57b42a064053139527b2bebb7f06bf32 1100w, https://mintcdn.com/userjourneysai/gZzoJ8JJo7m8EEpt/images/mcp_server.png?w=1650\u0026fit=max\u0026auto=format\u0026n=gZzoJ8JJo7m8EEpt\u0026q=85\u0026s=27c85694d2c551e5db4ee8fb5dfe4a96 1650w, https://mintcdn.com/userjourneysai/gZzoJ8JJo7m8EEpt/images/mcp_server.png?w=2500\u0026fit=max\u0026auto=format\u0026n=gZzoJ8JJo7m8EEpt\u0026q=85\u0026s=67e7e2a7ce59960d9e872001a454c67c 2500w`})})]}),_jsx(Step,{title:`Create and copy your API key`,children:_jsxs(_components.p,{children:[`Click `,_jsx(`strong`,{children:`Create key`}),` and paste it into the form at userjourneys.`]})})]}),`\n`,_jsx(Check,{children:_jsx(_components.p,{children:`You’re all set`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"PostHog Setup","description":"Follow these steps to create and configure your PostHog API key with userjourneys.ai","sidebarTitle":"PostHog Setup","href":"/funnels/posthog"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Creating your API key","slug":"creating-your-api-key","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"userjourneysai","siteName":"userjourneys.ai","title":"PostHog Setup - userjourneys.ai","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-16T13:02:38.873Z","originalFileLocation":"funnels/posthog.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Follow these steps to create and configure your PostHog API key with userjourneys.ai\">\u003cmeta data-mint-head name=\"application-name\" content=\"userjourneys.ai\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/userjourneysai/aLsg9aMqhRDyP_Xa/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/userjourneysai/aLsg9aMqhRDyP_Xa/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/userjourneysai/aLsg9aMqhRDyP_Xa/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/userjourneysai/aLsg9aMqhRDyP_Xa/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/userjourneysai/aLsg9aMqhRDyP_Xa/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/userjourneysai/aLsg9aMqhRDyP_Xa/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/userjourneysai/aLsg9aMqhRDyP_Xa/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/userjourneysai/aLsg9aMqhRDyP_Xa/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/userjourneysai/aLsg9aMqhRDyP_Xa/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"PostHog Setup - userjourneys.ai\">\u003cmeta data-mint-head property=\"og:description\" content=\"Follow these steps to create and configure your PostHog API key with userjourneys.ai\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"userjourneys.ai\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.userjourneys.ai/funnels/posthog\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://userjourneysai.mintlify.app/_mintlify/api/og/v2?division=Integrations\u0026amp;title=PostHog+Setup\u0026amp;description=Follow+these+steps+to+create+and+configure+your+PostHog+API+key+with+userjourneys.ai\u0026amp;theme=54bacf214afce6224fbdc59b\u0026amp;signature=d232cd9bf9fd6b478e42a226704e8a32cb8d0e3ddfb83a776d5ee48df8dce7f2\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"PostHog Setup - userjourneys.ai\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Follow these steps to create and configure your PostHog API key with userjourneys.ai\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://userjourneysai.mintlify.app/_mintlify/api/og/v2?division=Integrations\u0026amp;title=PostHog+Setup\u0026amp;description=Follow+these+steps+to+create+and+configure+your+PostHog+API+key+with+userjourneys.ai\u0026amp;theme=54bacf214afce6224fbdc59b\u0026amp;signature=d232cd9bf9fd6b478e42a226704e8a32cb8d0e3ddfb83a776d5ee48df8dce7f2\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/userjourneysai/aLsg9aMqhRDyP_Xa/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"userjourneys.ai\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.userjourneys.ai/funnels/posthog\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/funnels/posthog.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.userjourneys.ai/#organization\",\"name\":\"userjourneys.ai\",\"url\":\"https://docs.userjourneys.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/userjourneysai/CLMVyZUzWvXxqRzG/logo/light.svg?fit=max\u0026auto=format\u0026n=CLMVyZUzWvXxqRzG\u0026q=85\u0026s=39befce5d43110153aa7885eac903adf\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.userjourneys.ai#website\",\"name\":\"userjourneys.ai\",\"url\":\"https://docs.userjourneys.ai\",\"publisher\":{\"@id\":\"https://docs.userjourneys.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.userjourneys.ai/funnels/posthog#webpage\",\"url\":\"https://docs.userjourneys.ai/funnels/posthog\",\"name\":\"PostHog Setup\",\"description\":\"Follow these steps to create and configure your PostHog API key with userjourneys.ai\",\"dateModified\":\"2026-02-16T13:02:38.873Z\",\"isPartOf\":{\"@id\":\"https://docs.userjourneys.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.userjourneys.ai/funnels/posthog#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.userjourneys.ai/funnels/posthog#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"userjourneys.ai\",\"item\":\"https://docs.userjourneys.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PostHog Setup\",\"item\":\"https://docs.userjourneys.ai/funnels/posthog\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.userjourneys.ai/funnels/posthog#article\",\"headline\":\"PostHog Setup\",\"name\":\"PostHog Setup\",\"description\":\"Follow these steps to create and configure your PostHog API key with userjourneys.ai\",\"url\":\"https://docs.userjourneys.ai/funnels/posthog\",\"mainEntityOfPage\":{\"@id\":\"https://docs.userjourneys.ai/funnels/posthog#webpage\"},\"dateModified\":\"2026-02-16T13:02:38.873Z\",\"publisher\":{\"@id\":\"https://docs.userjourneys.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.userjourneys.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"userjourneys.ai\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"userjourneys.ai","nav":{"global":{},"groups":[{"group":"Getting Started","pages":[{"title":"Getting Started","href":"/index"}]},{"group":"Interviews","pages":[{"title":"Interviews Overview","href":"/interviews/index"},{"title":"Writing Good Interview Questions","sidebarTitle":"Questions","href":"/interviews/questions"},{"title":"Creating and Managing Experiments","sidebarTitle":"Experiments","href":"/interviews/experiments"},{"title":"Study Launch Rules","sidebarTitle":"Targeting rules","href":"/interviews/targeting-rules"},{"title":"Success metrics","sidebarTitle":"Success metrics","href":"/experiments/metrics"},{"title":"Understanding Themes \u0026 Results","href":"/interviews/insights"},{"title":"Quality Evaluation","href":"/interviews/quality"},{"title":"Multi-Language Support","href":"/interviews/languages"},{"title":"Troubleshooting","href":"/interviews/troubleshooting"}]},{"group":"React Native SDK","pages":[{"title":"How launches work","href":"/react-native-interviews/how-launches-work"},{"title":"Get started","href":"/react-native-interviews/quickstart"},{"title":"Event-triggered interviews","href":"/react-native-interviews/event-triggered-interviews"},{"title":"Audience prompts","href":"/react-native-interviews/audience-prompts"},{"title":"Invite links","href":"/react-native-interviews/invite-links"},{"title":"Customize the prompt","href":"/react-native-interviews/customize-prompt"},{"title":"Mixpanel setup","sidebarTitle":"Use Mixpanel with the SDK","href":"/react-native-interviews/mixpanel"},{"title":"Test your integration","href":"/react-native-interviews/testing"},{"title":"API reference","description":"Reference for UserJourneys React Native SDK options, event wrapping, link handling, and WebView host props.","href":"/react-native-interviews/reference"}]},{"group":"Integrations","pages":[{"title":"PostHog Setup","sidebarTitle":"PostHog Setup","href":"/funnels/posthog"},{"title":"Mixpanel Setup","description":"Connect Mixpanel to UserJourneys with a Service Account and cohort webhook sync.","sidebarTitle":"Mixpanel Setup","href":"/funnels/mixpanel"},{"title":"Amplitude Setup","sidebarTitle":"Amplitude Setup","href":"/funnels/amplitude"}]},{"group":"AI Agent","pages":[{"title":"AI Agent","href":"/chat/index"},{"title":"GitHub App Setup","sidebarTitle":"GitHub App Setup","href":"/chat/github-app"}]},{"group":"CLI","pages":[{"title":"CLI","sidebarTitle":"Overview","href":"/cli/index"},{"title":"Study Manager commands","sidebarTitle":"Study Manager","href":"/cli/study-manager"}]},{"group":"Guides","pages":[{"title":"Guides","sidebarTitle":"Overview","href":"/guides/index"},{"title":"Rolling out in-app interviews","sidebarTitle":"Roll out in-app interviews","href":"/guides/rolling-out-in-app-interviews"},{"title":"Track Interview Completions","sidebarTitle":"Track Completions","href":"/guides/track-completions"}]},{"group":"API","pages":[{"title":"API Overview","sidebarTitle":"Overview","href":"/api/index"},{"title":"Authentication","sidebarTitle":"Authentication","href":"/api/authentication"},{"title":"Studies","sidebarTitle":"Studies","href":"/api/studies"},{"title":"Study ledger and events","sidebarTitle":"Study ledger","href":"/api/study-ledger"},{"title":"Interviews","sidebarTitle":"Interviews","href":"/api/interviews"},{"title":"Releases","sidebarTitle":"Releases","href":"/api/releases"},{"title":"Chats","sidebarTitle":"Chats","href":"/api/chats"},{"title":"Chat Messages","sidebarTitle":"Chat Messages","href":"/api/chat-messages"},{"title":"Webhooks","sidebarTitle":"Webhooks","href":"/api/webhooks"},{"title":"Experiments (Deprecated)","sidebarTitle":"Experiments","href":"/api/experiments"}]},{"group":"Support","pages":[{"title":"Support \u0026 Contact","href":"/support"}]}]},"basePath":"","title":"PostHog Setup - userjourneys.ai","buildId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","deploymentId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-PS-3COT9.js","DynamicMarkdown-BcnBltEQ.js","zoom-image-lightbox-B4-wUcHm.js","lightbox-handle-r17bVUz3.js"]}