fix google analysis v4

This commit is contained in:
2022-10-24 18:03:09 +08:00
parent 712fe1b96e
commit 635fa675f1
3 changed files with 32 additions and 2 deletions

View File

@@ -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",

27
package-lock.json generated
View File

@@ -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",

View File

@@ -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",