Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@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 212,729 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.