Adding google analytics with anon functionality for restricted areas
This commit is contained in:
@@ -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',
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user