Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@docusaurus/plugin-google-tag-manager
Advanced tools
Google Tag Manager (gtm.js) plugin for Docusaurus.
@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.
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"
}
}
]
]
}
react-gtm-module is a package for integrating Google Tag Manager with React applications. It provides a simple API to initialize GTM and push events to the data layer. Compared to @docusaurus/plugin-google-tag-manager, it is more general-purpose and can be used with any React application, not just Docusaurus.
gatsby-plugin-google-tagmanager is a plugin for Gatsby that integrates Google Tag Manager into Gatsby sites. It offers similar functionality to @docusaurus/plugin-google-tag-manager but is specifically designed for Gatsby, another static site generator.
@docusaurus/plugin-google-tag-manager
Google Tag Manager plugin for Docusaurus.
FAQs
Google Tag Manager (gtm.js) plugin for Docusaurus.
The npm package @docusaurus/plugin-google-tag-manager receives a total of 198,871 weekly downloads. As such, @docusaurus/plugin-google-tag-manager popularity was classified as popular.
We found that @docusaurus/plugin-google-tag-manager demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.