Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@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.
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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.