1.2.1 ā€¢ Published 2 months ago

docusaurus-plugin-yandex-metrica v1.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

šŸ“¦ docusaurus-plugin-yandex-metrica

Yandex Metrica plugin for Docusaurus v3.

āš ļø Production only (by default)

By default this plugin inactive in development and only active in production to avoid polluting the analytics statistics.

Installation

Install the plugin with npm:

npm install --save docusaurus-plugin-yandex-metrica

or with yarn:

yarn add docusaurus-plugin-yandex-metrica

Add the plugin to the config file

Add the plugin and the counter ID to your docusaurus.config.js:

export default {
  plugins: [
    ['docusaurus-plugin-yandex-metrica', {
      counterID: '86645179',
    }],
  ],
};

Configuration

Accepted fields:

NameTypeDefaultDescription
counterIDnumberRequiredThe tracking ID of your Metrica service.
enableInProdOnlybooleantrueEnable plugin only in Production or Development also
webvisorbooleanfalseEnable Session Replay (Webvisor), scroll map, form analysis
ecommercestringfalseEnable E-commerce (to use it pass the "Container name")
trackHashbooleanfalseEnable Hash tracking in the browser address bar
alternativeCdnbooleanfalseUse Alternative CDN

šŸ¤·ā€ā™‚ļø Didn't find the required field? Create an Issue and request the desired field.

1.2.1

2 months ago

1.2.0

5 months ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago