Skip to content

Commit

Permalink
chore: Use gatsby-plugin-gdpr-cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
timglaser committed Jul 2, 2020
1 parent dc81263 commit f27ca69
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 19 deletions.
11 changes: 8 additions & 3 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,15 @@ module.exports = {
},
},
{
resolve: 'gatsby-plugin-google-tagmanager',
resolve: `gatsby-plugin-gdpr-cookies`,
options: {
id: 'GTM-W77XWWH',
includeInDevelopment: true,
googleTagManager: {
trackingId: 'GTM-W77XWWH', // leave empty if you want to disable the tracker
cookieName: 'newrelic-gdpr-consent', // default
dataLayerName: 'dataLayer', // default
},
// defines the environments where the tracking should be available - default is ["production"]
environments: ['production', 'development'],
},
},
{
Expand Down
50 changes: 35 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"eslint-plugin-react-hooks": "^4.0.4",
"gatsby": "^2.23.3",
"gatsby-image": "^2.4.9",
"gatsby-plugin-google-tagmanager": "^2.3.5",
"gatsby-plugin-gdpr-cookies": "^1.0.7",
"gatsby-plugin-manifest": "^2.4.11",
"gatsby-plugin-mdx": "^1.2.14",
"gatsby-plugin-meta-redirect": "^1.1.1",
Expand All @@ -26,6 +26,7 @@
"gatsby-source-filesystem": "^2.3.11",
"gatsby-transformer-remark": "^2.8.15",
"gatsby-transformer-sharp": "^2.5.7",
"js-cookie": "^2.2.1",
"node-sass": "^4.14.1",
"normalize.css": "^8.0.1",
"prism-react-renderer": "^1.1.1",
Expand Down

0 comments on commit f27ca69

Please sign in to comment.