2.0.1 • Published 5 months ago

posthog-docusaurus v2.0.1

Weekly downloads
14
License
MIT
Repository
-
Last release
5 months ago

PostHog plugin for Docusaurus

Easily track and improve your Docusaurus site with PostHog. See our docs on this plugin for more information.

Installing the plugin

npm install posthog-docusaurus --save

or

yarn add posthog-docusaurus

Configuring the plugin

// docusaurus.config.js
module.exports = {
  plugins: [
    [
      "posthog-docusaurus",
      {
        apiKey: "<ph_project_api_key>",
        appUrl: "<ph_client_api_host>", // optional, defaults to "https://us.i.posthog.com"
        enableInDevelopment: false, // optional
      },
    ],
  ],
};

Note:You can pass additional PostHog config options to the plugin, but they are passed through JSON.stringify(), so functions (such as sanitize_properties) are not supported.

Using the plugin

Once running, this autocaptures pageviews, events, and session replay (if enabled) and enables usage of other PostHog features like surveys.

2.0.1

5 months ago

1.0.5

2 years ago

2.0.0

2 years ago

1.0.4

2 years ago

1.0.2

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago