diff --git a/gatsby-config.js b/gatsby-config.js index 00de9f0d23..d9c07174df 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -220,12 +220,10 @@ if (shouldAnnouncementBannerBeShown) { if (isProduction) { plugins.push({ - resolve: 'gatsby-plugin-google-analytics', + resolve: 'gatsby-plugin-google-tagmanager', options: { - trackingId: 'UA-158196577-1', - head: false, - cookieDomain: 'k6.io', - allowLinker: true, + id: 'G-YQE19WEB36', + includeInDevelopment: false, }, }); diff --git a/package-lock.json b/package-lock.json index c4e689b6b6..a3c007948b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,6 +23,7 @@ "gatsby-plugin-catch-links": "^4.24.0", "gatsby-plugin-google-analytics": "^4.24.0", "gatsby-plugin-google-fonts": "^1.0.1", + "gatsby-plugin-google-tagmanager": "^4.24.0", "gatsby-plugin-image": "^2.24.0", "gatsby-plugin-manifest": "^4.24.0", "gatsby-plugin-mdx": "^3.20.0", @@ -12167,6 +12168,23 @@ "resolved": "https://registry.npmjs.org/gatsby-plugin-google-fonts/-/gatsby-plugin-google-fonts-1.0.1.tgz", "integrity": "sha512-p1NVkn27GUnDA5qHM+Z4cCcLCJIardzZXMon3640sT4xuL/AZJbsx3HEt2KY/5oZu0UXIkytkxzV2Da4rQeUIg==" }, + "node_modules/gatsby-plugin-google-tagmanager": { + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/gatsby-plugin-google-tagmanager/-/gatsby-plugin-google-tagmanager-4.24.0.tgz", + "integrity": "sha512-S82kPmkGvse3RkD6AivbNV8qhSapXEHXMjv0Yh2LomrO2w1EIzLjLkhmQV/Dkv1nioRn3TdigMGA1LVYH8fdzQ==", + "dependencies": { + "@babel/runtime": "^7.15.4", + "web-vitals": "^1.1.2" + }, + "engines": { + "node": ">=14.15.0" + }, + "peerDependencies": { + "gatsby": "^4.0.0-next", + "react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^0.0.0", + "react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^0.0.0" + } + }, "node_modules/gatsby-plugin-image": { "version": "2.24.0", "resolved": "https://registry.npmjs.org/gatsby-plugin-image/-/gatsby-plugin-image-2.24.0.tgz", @@ -37090,6 +37108,15 @@ "resolved": "https://registry.npmjs.org/gatsby-plugin-google-fonts/-/gatsby-plugin-google-fonts-1.0.1.tgz", "integrity": "sha512-p1NVkn27GUnDA5qHM+Z4cCcLCJIardzZXMon3640sT4xuL/AZJbsx3HEt2KY/5oZu0UXIkytkxzV2Da4rQeUIg==" }, + "gatsby-plugin-google-tagmanager": { + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/gatsby-plugin-google-tagmanager/-/gatsby-plugin-google-tagmanager-4.24.0.tgz", + "integrity": "sha512-S82kPmkGvse3RkD6AivbNV8qhSapXEHXMjv0Yh2LomrO2w1EIzLjLkhmQV/Dkv1nioRn3TdigMGA1LVYH8fdzQ==", + "requires": { + "@babel/runtime": "^7.15.4", + "web-vitals": "^1.1.2" + } + }, "gatsby-plugin-image": { "version": "2.24.0", "resolved": "https://registry.npmjs.org/gatsby-plugin-image/-/gatsby-plugin-image-2.24.0.tgz", diff --git a/package.json b/package.json index d5caed2849..b60c5622cd 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "gatsby-plugin-catch-links": "^4.24.0", "gatsby-plugin-google-analytics": "^4.24.0", "gatsby-plugin-google-fonts": "^1.0.1", + "gatsby-plugin-google-tagmanager": "^4.24.0", "gatsby-plugin-image": "^2.24.0", "gatsby-plugin-manifest": "^4.24.0", "gatsby-plugin-mdx": "^3.20.0",