Replace gatsby-plugin-google-analytics with gatsby-plugin-gtagjs

This commit is contained in:
Victor Zhou 2019-03-19 16:26:49 -04:00
parent dcfdc51b5d
commit 50b43823bc
3 changed files with 22072 additions and 3 deletions

View File

@ -123,8 +123,11 @@ module.exports = {
}
},
{
resolve: 'gatsby-plugin-google-analytics',
options: { trackingId: siteConfig.googleAnalyticsId }
resolve: 'gatsby-plugin-gtagjs',
options: {
trackingId: siteConfig.googleAnalyticsId,
head: true,
},
},
{
resolve: 'gatsby-plugin-sitemap',

22066
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -44,7 +44,7 @@
"gatsby-link": "^2.0.10",
"gatsby-plugin-catch-links": "^2.0.10",
"gatsby-plugin-feed": "^2.0.13",
"gatsby-plugin-google-analytics": "^2.0.13",
"gatsby-plugin-gtagjs": "^1.0.0",
"gatsby-plugin-manifest": "^2.0.17",
"gatsby-plugin-netlify": "^2.0.9",
"gatsby-plugin-netlify-cms": "^3.0.12",