Skip to content

LukasGentele/docusaurus-gtm-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
      }
    ]
  ],
  ...
};

About

This is a Google Tag Manager (GTM) plugin for docusaurus v2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published