From 40cf1c86c7a12c2d760c7067d8621dfb706f1184 Mon Sep 17 00:00:00 2001 From: Zack Stickles Date: Fri, 29 May 2020 10:29:52 -0700 Subject: [PATCH] feat: added and configured Google Tagmanager --- gatsby-config.js | 7 +++++++ package-lock.json | 18 ++++++++++++++++++ package.json | 1 + 3 files changed, 26 insertions(+) diff --git a/gatsby-config.js b/gatsby-config.js index c9d9cc3ce..3187e1d9b 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -50,5 +50,12 @@ module.exports = { ], }, }, + { + resolve: `gatsby-plugin-google-tagmanager`, + options: { + id: 'GTM-W77XWWH', + includeInDevelopment: true, + }, + }, ], }; diff --git a/package-lock.json b/package-lock.json index e76da516c..ae340b730 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10867,6 +10867,24 @@ "micromatch": "^3.1.10" } }, + "gatsby-plugin-google-tagmanager": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/gatsby-plugin-google-tagmanager/-/gatsby-plugin-google-tagmanager-2.3.3.tgz", + "integrity": "sha512-7GLu3UW6qjhoj+hERN1gQhOwuX9jMGCGXugyCOcDfU/XD6hGp3MwTmeYqZ/JdvwZtIgGYPSPEc5HtsFKyuc0zw==", + "requires": { + "@babel/runtime": "^7.9.6" + }, + "dependencies": { + "@babel/runtime": { + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.10.1.tgz", + "integrity": "sha512-nQbbCbQc9u/rpg1XCxoMYQTbSMVZjCDxErQ1ClCn9Pvcmv1lGads19ep0a2VsEiIJeHqjZley6EQGEC3Yo1xMA==", + "requires": { + "regenerator-runtime": "^0.13.4" + } + } + } + }, "gatsby-plugin-manifest": { "version": "2.3.5", "resolved": "https://registry.npmjs.org/gatsby-plugin-manifest/-/gatsby-plugin-manifest-2.3.5.tgz", diff --git a/package.json b/package.json index 0124dfb7d..2ea2e284e 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "classnames": "^2.2.6", "gatsby": "^2.20.25", "gatsby-image": "^2.3.4", + "gatsby-plugin-google-tagmanager": "^2.3.3", "gatsby-plugin-manifest": "^2.3.5", "gatsby-plugin-mdx": "^1.2.11", "gatsby-plugin-offline": "^3.1.4",