Skip to content

Commit

Permalink
feat(plugin): add google-analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
mdluo committed Mar 3, 2020
1 parent 8fce95b commit f91ff83
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ module.exports = {
icon: `src/assets/images/favicon.svg`,
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
// replace this with your own Tracking ID
trackingId: `UA-108097003-4`,
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
Expand Down
18 changes: 18 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"disqus-react": "^1.0.7",
"gatsby": "^2.19.17",
"gatsby-image": "^2.2.41",
"gatsby-plugin-google-analytics": "^2.1.36",
"gatsby-plugin-manifest": "^2.2.41",
"gatsby-plugin-mdx": "^1.0.73",
"gatsby-plugin-offline": "^3.0.34",
Expand Down

0 comments on commit f91ff83

Please sign in to comment.