docs: improved analytics and tracking (#13671)
* docs: improved analytics and tracking * remove detailed feedback component * remove ignore build script for api reference * improvements * fix pathname
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import posthog from "posthog-js"
|
||||
|
||||
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
|
||||
api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST,
|
||||
person_profiles: "always",
|
||||
defaults: "2025-05-24",
|
||||
})
|
||||
@@ -24,6 +24,7 @@
|
||||
"clsx": "^2.1.0",
|
||||
"docs-ui": "*",
|
||||
"next": "15.3.5",
|
||||
"posthog-js": "^1.269.1",
|
||||
"react": "rc",
|
||||
"react-dom": "rc",
|
||||
"rehype-mdx-code-props": "^2.0.0",
|
||||
|
||||
@@ -28,8 +28,6 @@ const Providers = ({ children }: ProvidersProps) => {
|
||||
<AnalyticsProvider
|
||||
segmentWriteKey={process.env.NEXT_PUBLIC_SEGMENT_API_KEY}
|
||||
reoDevKey={process.env.NEXT_PUBLIC_REO_DEV_CLIENT_ID}
|
||||
postHogKey={process.env.NEXT_PUBLIC_POSTHOG_KEY}
|
||||
postHogApiHost={process.env.NEXT_PUBLIC_POSTHOG_HOST}
|
||||
>
|
||||
<SiteConfigProvider config={config}>
|
||||
<MobileProvider>
|
||||
|
||||
Reference in New Issue
Block a user