Replace gatsby-plugin-gtagjs with gatsby-plugin-google-gtag

This commit is contained in:
Victor Zhou 2019-03-21 16:53:15 -04:00
parent 50b43823bc
commit ba93dc6578
3 changed files with 14 additions and 8 deletions

View File

@ -123,10 +123,12 @@ module.exports = {
}
},
{
resolve: 'gatsby-plugin-gtagjs',
resolve: 'gatsby-plugin-google-gtag',
options: {
trackingId: siteConfig.googleAnalyticsId,
head: true,
trackingIds: [siteConfig.googleAnalyticsId],
pluginConfig: {
head: true,
},
},
},
{

12
package-lock.json generated
View File

@ -8615,10 +8615,14 @@
"rss": "^1.2.2"
}
},
"gatsby-plugin-gtagjs": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/gatsby-plugin-gtagjs/-/gatsby-plugin-gtagjs-1.0.0.tgz",
"integrity": "sha512-QogQjtTCV+P6tQX1S8/NPfaZ/IE9mzrFiVYXMaPmAzXfNjQVnr9TAgQjebCBfVoBavWn+OMy5Zma5xlh2iTxIw=="
"gatsby-plugin-google-gtag": {
"version": "1.0.16",
"resolved": "https://registry.npmjs.org/gatsby-plugin-google-gtag/-/gatsby-plugin-google-gtag-1.0.16.tgz",
"integrity": "sha512-gkMWtLVLhakElmzKqM3gBQXdYCzaiF4jHXojxQSsmeuVvASaU1SIU8bl1iUbY6K6Atpw3ZN7TYFV0BJvUYFmKg==",
"requires": {
"@babel/runtime": "^7.0.0",
"minimatch": "^3.0.4"
}
},
"gatsby-plugin-manifest": {
"version": "2.0.24",

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-gtagjs": "^1.0.0",
"gatsby-plugin-google-gtag": "^1.0.16",
"gatsby-plugin-manifest": "^2.0.17",
"gatsby-plugin-netlify": "^2.0.9",
"gatsby-plugin-netlify-cms": "^3.0.12",