Skip to content

Instantly share code, notes, and snippets.

@xbojch
Last active August 15, 2020 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xbojch/00af1950b382e9f0ef4605f20d6f7b64 to your computer and use it in GitHub Desktop.
Save xbojch/00af1950b382e9f0ef4605f20d6f7b64 to your computer and use it in GitHub Desktop.
configure gatsby-plugin-gdpr-cookies plugin
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