Skip to content

Commit

Permalink
➕ Add ga
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuooooo committed Dec 23, 2019
1 parent 100346d commit 71c5802
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
11 changes: 8 additions & 3 deletions gatsby-config.js
Expand Up @@ -41,8 +41,13 @@ module.exports = {
{
resolve: 'gatsby-plugin-webpack-bundle-analyser-v2',
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
// To enable google analytics,
// comment in below and replace with your tracking id
// {
// resolve: `gatsby-plugin-google-analytics`,
// options: {
// trackingId: "YOUR_GOOGLE_ANALYTICS_TRACKING_ID",
// },
// }
],
}
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -11,6 +11,7 @@
"gatsby": "^2.17.11",
"gatsby-image": "^2.2.36",
"gatsby-plugin-emotion": "^4.1.15",
"gatsby-plugin-google-analytics": "^2.1.31",
"gatsby-plugin-manifest": "^2.2.33",
"gatsby-plugin-offline": "^3.0.29",
"gatsby-plugin-react-helmet": "^3.1.14",
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Expand Up @@ -6835,6 +6835,13 @@ gatsby-plugin-emotion@^4.1.15:
"@babel/runtime" "^7.7.2"
"@emotion/babel-preset-css-prop" "^10.0.23"

gatsby-plugin-google-analytics@^2.1.31:
version "2.1.31"
resolved "https://registry.yarnpkg.com/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-2.1.31.tgz#d53d20aa26321f43fa8320c169db0316320f98f8"
integrity sha512-vwx2eB703Yatp1ZQ0lQDiAG3k9gyvDEENRmtp+myfadI8Sgtq+LA+3OYGLeT0MYdifUTW0Lhcp3qoIrng/41zg==
dependencies:
"@babel/runtime" "^7.7.6"

gatsby-plugin-manifest@^2.2.33:
version "2.2.33"
resolved "https://registry.yarnpkg.com/gatsby-plugin-manifest/-/gatsby-plugin-manifest-2.2.33.tgz#4c9dafaffef8df452f863bc0af56f36c99b15388"
Expand Down

0 comments on commit 71c5802

Please sign in to comment.