Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@docusaurus/plugin-google-tag-manager

Package Overview
Dependencies
Maintainers
5
Versions
411
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@docusaurus/plugin-google-tag-manager

Google Tag Manager (gtm.js) plugin for Docusaurus.

  • 0.0.0-5505
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
225K
decreased by-8.78%
Maintainers
5
Weekly downloads
 
Created

What is @docusaurus/plugin-google-tag-manager?

@docusaurus/plugin-google-tag-manager is a plugin for Docusaurus that allows you to integrate Google Tag Manager (GTM) into your Docusaurus site. This enables you to manage and deploy marketing tags (snippets of code or tracking pixels) on your website without modifying the codebase.

What are @docusaurus/plugin-google-tag-manager's main functionalities?

Basic Integration

This feature allows you to integrate Google Tag Manager into your Docusaurus site by adding the plugin to your Docusaurus configuration file. Replace 'GTM-XXXXXX' with your actual GTM container ID.

{
  "plugins": [
    [
      "@docusaurus/plugin-google-tag-manager",
      {
        "gtm": "GTM-XXXXXX"
      }
    ]
  ]
}

Custom Data Layer

This feature allows you to push custom data to the GTM data layer. You can specify additional data that you want to track, such as user ID or page category.

{
  "plugins": [
    [
      "@docusaurus/plugin-google-tag-manager",
      {
        "gtm": "GTM-XXXXXX",
        "dataLayer": {
          "userId": "USER_ID",
          "pageCategory": "CATEGORY"
        }
      }
    ]
  ]
}

Other packages similar to @docusaurus/plugin-google-tag-manager

FAQs

Package last updated on 09 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc