Skip to content

Commit 8a84ce4

Browse files
committed
update to gatsby 4 and add cookieconsent
1 parent 5515428 commit 8a84ce4

File tree

4 files changed

+40613
-23313
lines changed

4 files changed

+40613
-23313
lines changed

gatsby-config.js

+31
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,37 @@ module.exports = {
1111
siteBanner: config.siteBanner,
1212
},
1313
plugins: [
14+
// DSGVO
15+
{
16+
resolve: `gatsby-plugin-gdpr-cookies`,
17+
options: {
18+
googleAnalytics: {
19+
trackingId: 'dummy_id', // leave empty if you want to disable the tracker
20+
cookieName: 'gatsby-gdpr-google-analytics', // default
21+
anonymize: true, // default
22+
allowAdFeatures: false // default
23+
},
24+
googleTagManager: {
25+
trackingId: 'dummy_thing', // leave empty if you want to disable the tracker
26+
cookieName: 'gatsby-gdpr-google-tagmanager', // default
27+
dataLayerName: 'dataLayer', // default
28+
},
29+
facebookPixel: {
30+
pixelId: 'no_id', // leave empty if you want to disable the tracker
31+
cookieName: 'gatsby-gdpr-facebook-pixel', // default
32+
},
33+
tikTokPixel: {
34+
pixelId: 'nothing', // leave empty if you want to disable the tracker
35+
cookieName: 'gatsby-gdpr-tiktok-pixel', // default
36+
},
37+
linkedin: {
38+
trackingId: 'no_linkedin', // leave empty if you want to disable the tracker
39+
cookieName: 'gatsby-gdpr-linked-in', // default
40+
},
41+
// defines the environments where the tracking should be available - default is ["production"]
42+
environments: ['production', 'development']
43+
},
44+
},
1445
// MARKDOWN
1546
{
1647
resolve: `gatsby-transformer-remark`,

0 commit comments

Comments
 (0)