Merge pull request #147 from vzhou842/gtag

Replace gatsby-plugin-google-analytics with gatsby-plugin-google-gtag
This commit is contained in:
Alexander Shelepenok 2019-03-22 18:16:34 +03:00 committed by GitHub
commit 89bf05b69b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22078 additions and 3 deletions

View File

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

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