docusaurus-gtm-plugin

0.0.2 • Public • Published

docusaurus-gtm-plugin

Adds a Google Tag Manager script and noscript html tag to your docusaurus site.

Add Plugin

To add the plugin to your docusaurus v2 site, do this:

  1. yarn add docusaurus-gtm-plugin (alternatively: npm install --save docusaurus-gtm-plugin)
  2. Add the plugin to your docusaurus.config.js like this:
module.exports = {
  plugins: [
    [
      require.resolve('docusaurus-gtm-plugin'),
      {
        id: 'GTM-XXXXXXX', // GTM Container ID
      }
    ]
  ],
  ...
};

/docusaurus-gtm-plugin/

    Package Sidebar

    Install

    npm i docusaurus-gtm-plugin

    Weekly Downloads

    3,785

    Version

    0.0.2

    License

    Apache-2.0

    Unpacked Size

    13.4 kB

    Total Files

    4

    Last publish

    Collaborators

    • gentele