Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

PostHog plugin for Docusaurus v2

Please see the main PostHog docs.

Specifically, the Docusaurus v2 integration details.

Installing the plugin

yarn add posthog-docusaurus

or

npm install posthog-docusaurus --save

Configuring the plugin

// docusaurus.config.js
module.exports = {
  plugins: ["posthog-docusaurus"],
  themeConfig: {
    posthog: {
      apiKey: "YOURAPIKEY",
      appUrl: "https://app.posthog.com",  // optional
      enableInDevelopment: false,  // optional
      // other options are passed to posthog-js init as is
    }
  }
};

Using the plugin

That's it! You're ready to go!

About

πŸ¦” PostHog plugin for Docusaurus v2

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.