![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
gatsby-plugin-gdpr
Advanced tools
Gatsby plugin to add google tag manager GDPR form to your site using idb-keyval.
Gatsby plugin to add google tag manager GDPR form to your site using idb-keyval.
Inspiration:
With npm:
npm install --save gatsby-plugin-gdpr
With yarn:
yarn add gatsby-plugin-gdpr
// in your gatsby-config.js
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-gdpr`,
options: {
googleTagManager: {
trackingId: 'YOUR_GOOGLE_TAG_MANAGER_TRACKING_ID',
auth: 'YOUR_GOOGLE_TAG_MANAGER_AUTH_TOKEN',
keyName: 'KEY_OF_IDB_KEYVAL',
routeChangeEventName: 'gatsby-route-change', // Tag Manager event to track gatsby route change (read below)
triggerEventName: 'acceptCookies' //Global event name to initilize GTM
},
// defines the environments where the tracking should be available
environments: ['production', 'development']
},
},
],
}
This plugin will fire a new event that you need to give a name in routeChangeEventName
option on Gatsby's onRouteUpdate
(only if the consent was given by a visitor). To record this in Google Tag Manager, we will need to add a trigger to the desired tag to listen for the event:
In order to do that, go to Tags. Under Triggering click the pencil icon, then the ”+” button to add a new trigger. In the Choose a trigger window, click on the ”+” button again. Choose the trigger type by clicking the pencil button and clicking Custom event. For event name, enter the name you've created. This tag will now catch every route change in Gatsby, and you can add Google tag services as you wish to it.
FAQs
Gatsby plugin to add google tag manager GDPR form to your site using idb-keyval.
The npm package gatsby-plugin-gdpr receives a total of 40 weekly downloads. As such, gatsby-plugin-gdpr popularity was classified as not popular.
We found that gatsby-plugin-gdpr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.