diff --git a/gatsby-config.js b/gatsby-config.js index 235f8066..ed595b67 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -37,6 +37,13 @@ module.exports = { icon: 'static/android-chrome-512x512.png' } }, - 'gatsby-plugin-offline' + 'gatsby-plugin-offline', + { + resolve: 'gatsby-plugin-google-analytics', + options: { + trackingId: 'UA-93349937-6', + respectDNT: true + } + } ] }; diff --git a/package.json b/package.json index f8f3050a..c4ddc529 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "gatsby": "^2.0.18", "gatsby-image": "^2.0.13", "gatsby-plugin-emotion": "^2.0.5", + "gatsby-plugin-google-analytics": "^2.0.9", "gatsby-plugin-layout": "^1.0.10", "gatsby-plugin-manifest": "^2.0.7", "gatsby-plugin-offline": "^2.0.20", diff --git a/yarn.lock b/yarn.lock index 5d4ca1d9..3a51d61e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5116,6 +5116,13 @@ gatsby-plugin-emotion@^2.0.5: dependencies: "@babel/runtime" "^7.0.0" +gatsby-plugin-google-analytics@^2.0.9: + version "2.0.9" + resolved "https://registry.yarnpkg.com/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-2.0.9.tgz#c273b5660a304feced097a724ce71e8a26695b31" + integrity sha512-lnPVXnQXHBFyPSPj+TlxiWBEE8bOFFDkKBx30nvOKvo+9XMd1Totkm/KN9leJQbAdeba6AtDRjYQ6CI1gDDGJQ== + dependencies: + "@babel/runtime" "^7.0.0" + gatsby-plugin-layout@^1.0.10: version "1.0.11" resolved "https://registry.yarnpkg.com/gatsby-plugin-layout/-/gatsby-plugin-layout-1.0.11.tgz#02f9a0103cbd17bdf66fd9a5ca5434d5c089ce88"