Skip to content

Commit

Permalink
add posthog
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech committed May 12, 2024
1 parent fe771b5 commit 7244f9c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,19 @@ module.exports = {
},
};

module.exports = {
plugins: [
[
"posthog-docusaurus",
{
apiKey: "phc_x2uy37fA6ConsPdNndl4JF0CoqyIpu1999jQsOfRaT9",
appUrl: "https://eu.i.posthog.com",
enableInDevelopment: false, // optional
// other options are passed to posthog-js init as is
// NOTE: options are passed through JSON.stringify(), so functions (such as `sanitize_properties`) are not supported.
},
],
],
};

module.exports = config;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"clsx": "^1.1.1",
"docusaurus-lunr-search": "2.1.15",
"docusaurus-plugin-sass": "^0.2.2",
"posthog-docusaurus": "^2.0.0",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand Down

0 comments on commit 7244f9c

Please sign in to comment.