Skip to content

Commit a5d0a43

Browse files
Add Posthog analytics #285
2 parents f359bab + cccc504 commit a5d0a43

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

docusaurus.config.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,15 @@ const config: Config = {
6363
],
6464
],
6565

66-
scripts: [
67-
{
68-
src: 'https://plausible.io/js/script.js', defer: true, 'data-domain': 'docs.plane.so'
69-
}
66+
plugins: [
67+
[
68+
"posthog-docusaurus",
69+
{
70+
apiKey: "phc_HskAKGRy7x0BEoWfyeHzYWWzcMmKG9DCail7ot7WQkA",
71+
appUrl: "https://docs.plane.so/",
72+
enableInDevelopment: false, // optional
73+
},
74+
],
7075
],
7176

7277
themeConfig: {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@docusaurus/preset-classic": "3.5.2",
2020
"@mdx-js/react": "^3.0.0",
2121
"clsx": "^2.0.0",
22+
"posthog-docusaurus": "^2.0.4",
2223
"prism-react-renderer": "^2.3.0",
2324
"react": "^18.0.0",
2425
"react-dom": "^18.0.0",

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6695,6 +6695,11 @@ postcss@^8.4.21, postcss@^8.4.24, postcss@^8.4.26, postcss@^8.4.33, postcss@^8.4
66956695
picocolors "^1.0.1"
66966696
source-map-js "^1.2.0"
66976697

6698+
posthog-docusaurus@^2.0.4:
6699+
version "2.0.4"
6700+
resolved "https://registry.yarnpkg.com/posthog-docusaurus/-/posthog-docusaurus-2.0.4.tgz#26fdd4071b081385b5f2a6a3dfd41bdaf4c8c221"
6701+
integrity sha512-xnEVCBovSuvQvYXGny03CDTc0yZCl7O3Mz21sJpXmE1Gvs21gM33WzWaA9Cm6WvWGYZtQy8t8/g8OjCkmTWlXA==
6702+
66986703
pretty-error@^4.0.0:
66996704
version "4.0.0"
67006705
resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-4.0.0.tgz#90a703f46dd7234adb46d0f84823e9d1cb8f10d6"

0 commit comments

Comments
 (0)