diff --git a/documentation/docusaurus.config.js b/documentation/docusaurus.config.js index 8498ead608..bcd395e37a 100644 --- a/documentation/docusaurus.config.js +++ b/documentation/docusaurus.config.js @@ -182,6 +182,15 @@ const config = { } }), plugins: [ + [ + "posthog-docusaurus", + { + apiKey: "phc_XjXhELHuFbPUWBfkaYiivwe1kEKVIFOJZuWfA0K9YU0", + appUrl: "https://eu.i.posthog.com", + person_profiles: "always", + enableInDevelopment: false, + }, + ], "rive-loader", require.resolve("./plugins/tailwind/tailwind-config.js"), require.resolve("./plugins/compression/index.js"), diff --git a/documentation/package-lock.json b/documentation/package-lock.json index 6bf2eac852..6553379e5e 100644 --- a/documentation/package-lock.json +++ b/documentation/package-lock.json @@ -15,6 +15,7 @@ "@mdx-js/react": "^3.0.1", "@rive-app/react-canvas": "^4.13.3", "clsx": "^2.1.1", + "posthog-docusaurus": "^2.0.0", "prism-react-renderer": "^2.3.1", "react": "^18.3.1", "react-dom": "^18.3.1", @@ -15106,6 +15107,14 @@ "postcss": "^8.4.31" } }, + "node_modules/posthog-docusaurus": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/posthog-docusaurus/-/posthog-docusaurus-2.0.0.tgz", + "integrity": "sha512-nDSTIhmH/Fexv347Gx6wBCE97Z+fZTj0p/gqVYAaolMwSdVuzwyFWcFA+aW9uzA5Y5hjzRwwKJJOrIv8smkYkA==", + "engines": { + "node": ">=10.15.1" + } + }, "node_modules/prebuild-install": { "version": "7.1.2", "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.2.tgz", diff --git a/documentation/package.json b/documentation/package.json index a1b321c4dc..b038225e18 100644 --- a/documentation/package.json +++ b/documentation/package.json @@ -22,6 +22,7 @@ "@mdx-js/react": "^3.0.1", "@rive-app/react-canvas": "^4.13.3", "clsx": "^2.1.1", + "posthog-docusaurus": "^2.0.0", "prism-react-renderer": "^2.3.1", "react": "^18.3.1", "react-dom": "^18.3.1",