@rainyjune/docusaurus-plugin-baidu-analytics
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

docusaurus-plugin-baidu-analytics

Baidu Analytics plugin for Docusaurus.

npm i @rainyjune/docusaurus-plugin-baidu-analytics

Note: This plugin is inactive in development by default and active in production to avoid polluting the analytics statistics. If you want to activate it in development environment, please set the isDebugMode to true.

Usage

docusaurus.config.js

module.exports = {
  plugins: [
    [
      "@rainyjune/docusaurus-plugin-baidu-analytics",
      {
        trackingID: "xxxxxxxxxxx", // Your Baidu Analytics Tracking ID. Required.
        isDebugMode: false, // Enable debug mode or not. Optional, default to `false`.
      },
    ],
  ],
};

Readme

Keywords

none

Package Sidebar

Install

npm i @rainyjune/docusaurus-plugin-baidu-analytics

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

19.2 kB

Total Files

10

Last publish

Collaborators

  • rainyjune