diff --git a/gatsby-config.js b/gatsby-config.js index f038278..2c78105 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -12,9 +12,11 @@ module.exports = { }, }, { - resolve: 'gatsby-plugin-google-analytics', + resolve: 'gatsby-plugin-google-gtag', options: { - trackingId: "G-TVTHN7455T", + trackingIds: [ + "G-TVTHN7455T", + ], }, }, "gatsby-plugin-image", diff --git a/package-lock.json b/package-lock.json index 9b7f627..3820847 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "gatsby": "^4.24.4", "gatsby-plugin-google-analytics": "^4.24.0", + "gatsby-plugin-google-gtag": "^4.24.0", "gatsby-plugin-image": "^2.24.0", "gatsby-plugin-sharp": "^4.24.0", "gatsby-source-filesystem": "^4.24.0", @@ -7996,6 +7997,23 @@ "node": "*" } }, + "node_modules/gatsby-plugin-google-gtag": { + "version": "4.24.0", + "resolved": "https://registry.npmmirror.com/gatsby-plugin-google-gtag/-/gatsby-plugin-google-gtag-4.24.0.tgz", + "integrity": "sha512-2GHzg727Xr+48kxS5+3xSc246gdQLlAk4L0vn5+KauJsP1aCGb2XpumlUQj8H81TA/BnroBc1wlW4N+k7J4I5Q==", + "dependencies": { + "@babel/runtime": "^7.15.4", + "minimatch": "^3.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.npmmirror.com/gatsby-plugin-image/-/gatsby-plugin-image-2.24.0.tgz", @@ -20722,6 +20740,15 @@ } } }, + "gatsby-plugin-google-gtag": { + "version": "4.24.0", + "resolved": "https://registry.npmmirror.com/gatsby-plugin-google-gtag/-/gatsby-plugin-google-gtag-4.24.0.tgz", + "integrity": "sha512-2GHzg727Xr+48kxS5+3xSc246gdQLlAk4L0vn5+KauJsP1aCGb2XpumlUQj8H81TA/BnroBc1wlW4N+k7J4I5Q==", + "requires": { + "@babel/runtime": "^7.15.4", + "minimatch": "^3.1.2" + } + }, "gatsby-plugin-image": { "version": "2.24.0", "resolved": "https://registry.npmmirror.com/gatsby-plugin-image/-/gatsby-plugin-image-2.24.0.tgz", diff --git a/package.json b/package.json index d1d3f23..783cbb2 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "dependencies": { "gatsby": "^4.24.4", "gatsby-plugin-google-analytics": "^4.24.0", + "gatsby-plugin-google-gtag": "^4.24.0", "gatsby-plugin-image": "^2.24.0", "gatsby-plugin-sharp": "^4.24.0", "gatsby-source-filesystem": "^4.24.0",