Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@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.
3.5.1 (2024-08-09)
docusaurus-plugin-content-blog
, docusaurus-theme-search-algolia
docusaurus-theme-search-algolia
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.