Skip to content

Commit d4dc09a

Browse files
authored
Feat gtag plugin (#1201)
* feat: swap analytics with tagmanager * chore: add plugin dep
1 parent dcac507 commit d4dc09a

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

gatsby-config.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,10 @@ if (shouldAnnouncementBannerBeShown) {
220220

221221
if (isProduction) {
222222
plugins.push({
223-
resolve: 'gatsby-plugin-google-analytics',
223+
resolve: 'gatsby-plugin-google-tagmanager',
224224
options: {
225-
trackingId: 'UA-158196577-1',
226-
head: false,
227-
cookieDomain: 'k6.io',
228-
allowLinker: true,
225+
id: 'G-YQE19WEB36',
226+
includeInDevelopment: false,
229227
},
230228
});
231229

package-lock.json

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"gatsby-plugin-catch-links": "^4.24.0",
4848
"gatsby-plugin-google-analytics": "^4.24.0",
4949
"gatsby-plugin-google-fonts": "^1.0.1",
50+
"gatsby-plugin-google-tagmanager": "^4.24.0",
5051
"gatsby-plugin-image": "^2.24.0",
5152
"gatsby-plugin-manifest": "^4.24.0",
5253
"gatsby-plugin-mdx": "^3.20.0",

0 commit comments

Comments
 (0)