Skip to content

Commit 3658177

Browse files
authored
PostHog integration (#2122)
* Add Posthog plugin * Add placeholder config. for Posthog * Update * Update docusaurus/docusaurus.config.js
1 parent 193bf24 commit 3658177

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

docusaurus/docusaurus.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,14 @@ const config = {
276276
'docusaurus-plugin-hubspot',
277277
'docusaurus-plugin-sass',
278278
'docusaurus-plugin-image-zoom',
279+
[
280+
"posthog-docusaurus",
281+
{
282+
apiKey: "phc_DETCfjmHIm184mceL8duwutdQgOnVTZSC59xontNRWN",
283+
// appUrl: "<ph_client_api_host>", // optional, defaults to "https://us.i.posthog.com"
284+
enableInDevelopment: false, // optional
285+
},
286+
],
279287
/**
280288
* Seems like we have an issue where a medium-zoom--hidden class is applied on the second, top-most (z-index wise) image,
281289
* actually hiding the image when zoomed in. Found no related issue in the plugin's repo, might have to dig whether it's

docusaurus/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"embla-carousel-autoplay": "^7.1.0",
2929
"embla-carousel-react": "^7.1.0",
3030
"embla-carousel-wheel-gestures": "^3.0.0",
31+
"posthog-docusaurus": "^2.0.0",
3132
"prism-react-renderer": "^1.3.5",
3233
"qs": "^6.11.1",
3334
"react": "^17.0.2",

docusaurus/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7044,6 +7044,11 @@ postcss@^8.4.13, postcss@^8.4.7:
70447044
picocolors "^1.0.0"
70457045
source-map-js "^1.0.2"
70467046

7047+
posthog-docusaurus@^2.0.0:
7048+
version "2.0.0"
7049+
resolved "https://registry.yarnpkg.com/posthog-docusaurus/-/posthog-docusaurus-2.0.0.tgz#8b8ac890a2d780c8097a1a9766a3d24d2a1f1177"
7050+
integrity sha512-nDSTIhmH/Fexv347Gx6wBCE97Z+fZTj0p/gqVYAaolMwSdVuzwyFWcFA+aW9uzA5Y5hjzRwwKJJOrIv8smkYkA==
7051+
70477052
prepend-http@^2.0.0:
70487053
version "2.0.0"
70497054
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"

0 commit comments

Comments
 (0)