Skip to content

Commit

Permalink
added google analytics tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderProd committed Feb 13, 2019
1 parent a5d4477 commit dd51d07
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ module.exports = {
verbose: true,
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-134421805-1",
anonymize: true,
respectDNT: true,
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.app/offline
// 'gatsby-plugin-offline',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"dependencies": {
"gatsby": "^2.0.111",
"gatsby-image": "^2.0.20",
"gatsby-plugin-google-analytics": "^2.0.13",
"gatsby-plugin-layout": "^1.0.11",
"gatsby-plugin-manifest": "^2.0.9",
"gatsby-plugin-offline": "^2.0.16",
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4795,6 +4795,13 @@ gatsby-node-helpers@^0.3.0:
lodash "^4.17.4"
p-is-promise "^1.1.0"

gatsby-plugin-google-analytics@^2.0.13:
version "2.0.13"
resolved "https://registry.yarnpkg.com/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-2.0.13.tgz#31ecf6be05815ba2047ec8cd5129f0bea9d7fd75"
integrity sha512-cOfQ+f3FRl0yPm5J9atj23Xp7uGILMpYuPXHpm9nh74Tgg9R8rJyaLZaHpEiA2jdnqGvfLIBsqm6Sh0x/wepGQ==
dependencies:
"@babel/runtime" "^7.0.0"

gatsby-plugin-layout@^1.0.11:
version "1.0.11"
resolved "https://registry.yarnpkg.com/gatsby-plugin-layout/-/gatsby-plugin-layout-1.0.11.tgz#02f9a0103cbd17bdf66fd9a5ca5434d5c089ce88"
Expand Down

0 comments on commit dd51d07

Please sign in to comment.