Last active
August 15, 2020 21:43
-
-
Save xbojch/00af1950b382e9f0ef4605f20d6f7b64 to your computer and use it in GitHub Desktop.
configure gatsby-plugin-gdpr-cookies plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
plugins: [ | |
{ | |
resolve: `gatsby-plugin-gdpr-cookies`, | |
options: { | |
googleAnalytics: { | |
trackingId: 'YOUR_GOOGLE_ANALYTICS_TRACKING_ID', | |
// Setting this parameter is optional | |
anonymize: true | |
}, | |
facebookPixel: { | |
pixelId: 'YOUR_FACEBOOK_PIXEL_ID' | |
}, | |
// Defines the environments where the tracking should be available - default is ["production"] | |
environments: ['production', 'development'] | |
}, | |
}, | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment