diff --git a/gatsby-config.js b/gatsby-config.js index f5e37194..2fc6799a 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -20,6 +20,14 @@ module.exports = { }, 'gatsby-plugin-react-helmet', 'gatsby-plugin-glamor', + { + resolve: 'gatsby-plugin-google-analytics', + options: { + trackingId: 'GOOGLE_ANALYTICS_TRACKING_ID', + head: true, + cookieDomain: 'dsmjs.com' + } + }, { resolve: 'gatsby-plugin-google-fonts', options: { diff --git a/package-lock.json b/package-lock.json index c7a4e917..1102e9ce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11208,6 +11208,29 @@ } } }, + "gatsby-plugin-google-analytics": { + "version": "2.1.23", + "resolved": "https://registry.npmjs.org/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-2.1.23.tgz", + "integrity": "sha512-pVGGYRnx6zIDvKPmhWaK7U2coec1F1ZIGe8326hV5E/2EtgVaVsRXAiCnGrLfHs/lEVs03t6DaemomtktM57gg==", + "requires": { + "@babel/runtime": "^7.6.3" + }, + "dependencies": { + "@babel/runtime": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.6.3.tgz", + "integrity": "sha512-kq6anf9JGjW8Nt5rYfEuGRaEAaH1mkv3Bbu6rYvLOpPh/RusSJXuKPEAoZ7L7gybZkchE8+NV5g9vKF4AGAtsA==", + "requires": { + "regenerator-runtime": "^0.13.2" + } + }, + "regenerator-runtime": { + "version": "0.13.3", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz", + "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==" + } + } + }, "gatsby-plugin-google-fonts": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/gatsby-plugin-google-fonts/-/gatsby-plugin-google-fonts-1.0.1.tgz", diff --git a/package.json b/package.json index c93d8fd1..b9204719 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "gatsby": "2.15.15", "gatsby-link": "2.2.13", "gatsby-plugin-glamor": "2.1.7", + "gatsby-plugin-google-analytics": "2.1.23", "gatsby-plugin-google-fonts": "1.0.1", "gatsby-plugin-netlify": "2.1.13", "gatsby-plugin-react-helmet": "3.1.7",