From badc455c4401996da10e8501f411a734c3a7acc1 Mon Sep 17 00:00:00 2001 From: Martin Jagodic Date: Thu, 9 Nov 2023 13:34:12 +0100 Subject: [PATCH] feat: add GTM (#6966) Add Google Tag Manager to website --- website/gatsby-config.js | 6 ++++++ website/package.json | 1 + website/yarn.lock | 25 +++++++++++++++++++++++++ 3 files changed, 32 insertions(+) diff --git a/website/gatsby-config.js b/website/gatsby-config.js index 524b264effce..34286797e4bf 100644 --- a/website/gatsby-config.js +++ b/website/gatsby-config.js @@ -13,6 +13,12 @@ module.exports = { menu: staticConfig.menu, }, plugins: [ + { + resolve: "gatsby-plugin-google-tagmanager", + options: { + id: "GTM-WQFP7W4H", + }, + }, { resolve: 'gatsby-plugin-manifest', options: { diff --git a/website/package.json b/website/package.json index 3c9f57e81bee..2aff70284280 100644 --- a/website/package.json +++ b/website/package.json @@ -22,6 +22,7 @@ "gatsby": "4.25.7", "gatsby-plugin-catch-links": "3.14.0", "gatsby-plugin-emotion": "^4.0.0", + "gatsby-plugin-google-tagmanager": "^5.12.3", "gatsby-plugin-manifest": "3.14.0", "gatsby-plugin-netlify-cms": "5.14.0", "gatsby-plugin-react-helmet": "4.14.0", diff --git a/website/yarn.lock b/website/yarn.lock index 35d7e280b862..44bc616f9024 100644 --- a/website/yarn.lock +++ b/website/yarn.lock @@ -1419,6 +1419,13 @@ dependencies: regenerator-runtime "^0.13.11" +"@babel/runtime@^7.20.13": + version "7.23.2" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.2.tgz#062b0ac103261d68a966c4c7baf2ae3e62ec3885" + integrity sha512-mM8eg4yl5D6i3lu2QKPuPH4FArvJ8KhTofbE7jwMUv9KX5mBvwPAqnV3MlyBNqdp9RyRKP6Yck8TrfYrPvX3bg== + dependencies: + regenerator-runtime "^0.14.0" + "@babel/template@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.16.7.tgz#8d126c8701fde4d66b264b3eba3d96f07666d155" @@ -6346,6 +6353,14 @@ gatsby-plugin-emotion@^4.0.0: "@babel/runtime" "^7.12.5" "@emotion/babel-preset-css-prop" "^10.0.27" +gatsby-plugin-google-tagmanager@^5.12.3: + version "5.12.3" + resolved "https://registry.yarnpkg.com/gatsby-plugin-google-tagmanager/-/gatsby-plugin-google-tagmanager-5.12.3.tgz#b9e3a9825c4afb77b60d5da20d6091cc55b8c11d" + integrity sha512-qq5S+YmyZkC4LM6eRG24r3CqeIzdUZhcsR/x4MwJOYbIsy/X+Ify43YpQWlCrG2Mkbd0vMuyiRsv4IMELaB38g== + dependencies: + "@babel/runtime" "^7.20.13" + web-vitals "^1.1.2" + gatsby-plugin-manifest@3.14.0: version "3.14.0" resolved "https://registry.yarnpkg.com/gatsby-plugin-manifest/-/gatsby-plugin-manifest-3.14.0.tgz#1f17e35f2e51b86f627d74a6fd6ccfefc4968ddd" @@ -11357,6 +11372,11 @@ regenerator-runtime@^0.13.11, regenerator-runtime@^0.13.7: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== +regenerator-runtime@^0.14.0: + version "0.14.0" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz#5e19d68eb12d486f797e15a3c6a918f7cec5eb45" + integrity sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA== + regenerator-transform@^0.15.0: version "0.15.0" resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.15.0.tgz#cbd9ead5d77fae1a48d957cf889ad0586adb6537" @@ -13537,6 +13557,11 @@ web-namespaces@^1.0.0, web-namespaces@^1.1.2: resolved "https://registry.yarnpkg.com/web-namespaces/-/web-namespaces-1.1.4.tgz#bc98a3de60dadd7faefc403d1076d529f5e030ec" integrity sha512-wYxSGajtmoP4WxfejAPIr4l0fVh+jeMXZb08wNc0tMg6xsfZXj3cECqIK0G7ZAqUq0PP8WlMDtaOGVBTAWztNw== +web-vitals@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/web-vitals/-/web-vitals-1.1.2.tgz#06535308168986096239aa84716e68b4c6ae6d1c" + integrity sha512-PFMKIY+bRSXlMxVAQ+m2aw9c/ioUYfDgrYot0YUa+/xa0sakubWhSDyxAKwzymvXVdF4CZI71g06W+mqhzu6ig== + web-worker@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/web-worker/-/web-worker-1.2.0.tgz#5d85a04a7fbc1e7db58f66595d7a3ac7c9c180da"