Skip to content

Commit

Permalink
feat: integrate PostHog for analytics (#381)
Browse files Browse the repository at this point in the history
implement `posthog-docusaurus` library
  • Loading branch information
zeucapua authored Aug 28, 2024
1 parent 2734a83 commit 93c4ab9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
13 changes: 10 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ module.exports = {
},
{
to: "community-resources",
label: "Community Resources",
label: "Community Resources",
position: "left"
},
},
],
},
colorMode: {
Expand Down Expand Up @@ -127,7 +127,7 @@ module.exports = {
label: "Watch our feature demos",
href: "https://www.youtube.com/playlist?list=PLHyZ0Wz_A44VRlE-YS9me5qxDNRgK5T3H"
}

],
},
],
Expand Down Expand Up @@ -224,5 +224,12 @@ module.exports = {
],
},
],
[
"posthog-docusaurus",
{
apiKey: "phc_Uxc9yqu1fvo0DmTMYxWAHUmh8vEzvYcB1UV3xbzUG6I",
enableInDevelopment: true
}
]
],
};
9 changes: 9 additions & 0 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.75.4",
"private": true,
"engines": {
"node": "^18.17.0 || >=20.5.0",
"node": "^18.17.0 || >=20.5.0",
"npm": ">= 9.6.0"
},
"scripts": {
Expand All @@ -29,6 +29,7 @@
"@mdx-js/react": "^3.0.0",
"axios": "^1.7.2",
"fs": "^0.0.1-security",
"posthog-docusaurus": "^2.0.1",
"prism-react-renderer": "^2.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down

0 comments on commit 93c4ab9

Please sign in to comment.