add google analytics

This commit is contained in:
71590811+lingdocs@users.noreply.github.com 2022-08-23 10:32:43 +04:00
parent 012966af8d
commit 568cb84922
2 changed files with 14490 additions and 0 deletions

View File

@ -101,5 +101,22 @@ module.exports = {
// this (optional) plugin enables Progressive Web App + Offline functionality // this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline // To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`, // `gatsby-plugin-offline`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
// The property ID; the tracking code won't be generated without it
trackingId: "G-FNB8658Z2J",
// Defines where to place the tracking script - `true` in the head and `false` in the body
head: false,
// Setting this parameter is optional
anonymize: true,
// Setting this parameter is also optional
respectDNT: true,
// Delays sending pageview hits on route update (in milliseconds)
pageTransitionDelay: 0,
// Defers execution of google analytics script after page load
defer: false,
},
},
], ],
} }

14473
yarn.lock Normal file

File diff suppressed because it is too large Load Diff