docusaurus-plugin-ackee-improved

0.0.2 • Public • Published

docusaurus-plugin-ackee

Note Modified to fix the "ackeeTracker is not defined" bug!

Use Ackee in your Docusaurus site.

Requires a running Ackee server.

Install

yarn add docusaurus-plugin-ackee-improved

or

npm install docusaurus-plugin-ackee-improved

Usage

// In your docusaurus.config.js
module.exports = {
  plugins: [
    [
      "docusaurus-plugin-ackee-improved",
      {
        // Ackee domain ID
        domainId: "your_ackee_domain_id",

        // URL to your Ackee server
        // MUST NOT END WITH SLASH ('/')
        server: "https://analytics.example.com",

        // Enable or disable tracking of personal data (OS, device, browser, screen size, user language)
        detailed: false,

        // Enable or disable tracking when on localhost
        ignoreLocalhost: true,

        // Enable or disable the tracking of your own visits
        // Enabled by default, should be turned off when using a wildcard Access-Control-Allow-Origin header
        // Some browsers may strictly block third-party cookies and this option will have no impact in this situation
        ignoreOwnVisits: true,

        // Ackee tracker file name
        // More information can be found [here](https://github.com/electerious/Ackee/blob/master/docs/Options.md#tracker)
        ackeeTrackerFile: "tracer.js",
      },
    ],
  ],
};

License

MIT

Package Sidebar

Install

npm i docusaurus-plugin-ackee-improved

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

6.31 kB

Total Files

5

Last publish

Collaborators

  • archgryphon9362