Adding google analytics with anon functionality for restricted areas

This commit is contained in:
Moris Zen
2018-09-05 13:43:09 +02:00
parent e0f416ddd7
commit 619982e56c
3 changed files with 17 additions and 0 deletions

View File

@@ -27,6 +27,16 @@ module.exports = {
icon: 'src/images/favicon.png', // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: 'UA-125227964-1',
head: false,
anonymize: true,
respectDNT: true,
exclude: ['/preview/**', '/do-not-track/me/too/'],
},
},
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
],