Skip to content

Commit 7244f9c

Browse files
committed
add posthog
1 parent fe771b5 commit 7244f9c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docusaurus.config.js

+15
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,19 @@ module.exports = {
190190
},
191191
};
192192

193+
module.exports = {
194+
plugins: [
195+
[
196+
"posthog-docusaurus",
197+
{
198+
apiKey: "phc_x2uy37fA6ConsPdNndl4JF0CoqyIpu1999jQsOfRaT9",
199+
appUrl: "https://eu.i.posthog.com",
200+
enableInDevelopment: false, // optional
201+
// other options are passed to posthog-js init as is
202+
// NOTE: options are passed through JSON.stringify(), so functions (such as `sanitize_properties`) are not supported.
203+
},
204+
],
205+
],
206+
};
207+
193208
module.exports = config;

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"clsx": "^1.1.1",
4747
"docusaurus-lunr-search": "2.1.15",
4848
"docusaurus-plugin-sass": "^0.2.2",
49+
"posthog-docusaurus": "^2.0.0",
4950
"prism-react-renderer": "^1.3.5",
5051
"react": "^17.0.2",
5152
"react-dom": "^17.0.2",

0 commit comments

Comments
 (0)