diff --git a/config.json b/config.json index 2ee7f1d..6da3819 100644 --- a/config.json +++ b/config.json @@ -6,5 +6,5 @@ "blog_description": "The Games by Tim blog. Release notes, developer ramblings, and more.", "siteurl": "https://www.gamesbytim.com", "comments_id": "858", - "google_analytics_id": "UA-159391501-5" + "google_analytics_id": "G-BJ8E8N97EF" } diff --git a/gatsby-config.js b/gatsby-config.js index 62b6d8b..5be2aae 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -82,7 +82,6 @@ module.exports = { ], }, }, - `gatsby-plugin-preact`, `gatsby-plugin-image`, { resolve: `gatsby-plugin-sharp`, @@ -248,10 +247,16 @@ module.exports = { }, }, { - resolve: `gatsby-plugin-google-analytics`, + resolve: `gatsby-plugin-google-gtag`, options: { - trackingId: config.google_analytics_id, - anonymize: true, + trackingIds: [ + config.google_analytics_id, + ], + gtagConfig: { + anonymize_ip: true, + }, + pluginConfig: { + }, }, }, { diff --git a/package-lock.json b/package-lock.json index 4896dc8..fc53e5a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,12 +12,11 @@ "gatsby-plugin-catch-links": "^5.6.0", "gatsby-plugin-dark-mode": "^1.1.2", "gatsby-plugin-feed": "^5.6.0", - "gatsby-plugin-google-analytics": "^5.6.0", + "gatsby-plugin-google-gtag": "^5.6.0", "gatsby-plugin-image": "^3.6.0", "gatsby-plugin-manifest": "^5.6.0", "gatsby-plugin-nprogress": "^5.6.0", "gatsby-plugin-offline": "^6.6.0", - "gatsby-plugin-preact": "^7.6.1", "gatsby-plugin-react-helmet": "^6.6.0", "gatsby-plugin-sass": "^6.6.0", "gatsby-plugin-sharp": "^5.6.0", @@ -3639,38 +3638,6 @@ "node": ">=12" } }, - "node_modules/@prefresh/babel-plugin": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@prefresh/babel-plugin/-/babel-plugin-0.4.3.tgz", - "integrity": "sha512-fYAWbU1WDSLn108kKY4eDaaeUcnszFqXjgaGKYXNZ5NLulpRTpsrY+Sbfo9q8LDpWrBpqIgzjrwNnvglWI1xNQ==" - }, - "node_modules/@prefresh/core": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@prefresh/core/-/core-1.4.1.tgz", - "integrity": "sha512-og1vaBj3LMJagVncNrDb37Gqc0cWaUcDbpVt5hZtsN4i2Iwzd/5hyTsDHvlMirhSym3wL9ihU0Xa2VhSaOue7g==", - "peerDependencies": { - "preact": "^10.0.0" - } - }, - "node_modules/@prefresh/utils": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@prefresh/utils/-/utils-1.1.3.tgz", - "integrity": "sha512-Mb9abhJTOV4yCfkXrMrcgFiFT7MfNOw8sDa+XyZBdq/Ai2p4Zyxqsb3EgHLOEdHpMj6J9aiZ54W8H6FTam1u+A==" - }, - "node_modules/@prefresh/webpack": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@prefresh/webpack/-/webpack-3.3.4.tgz", - "integrity": "sha512-RiXS/hvXDup5cQw/267kxkKie81kxaAB7SFbkr8ppshobDEzwgUN1tbGbHNx6Uari0Ql2XByC6HIgQGpaq2Q7w==", - "dependencies": { - "@prefresh/core": "^1.3.3", - "@prefresh/utils": "^1.1.2" - }, - "peerDependencies": { - "@prefresh/babel-plugin": "^0.4.0", - "preact": "^10.4.0", - "webpack": "^4.0.0 || ^5.0.0" - } - }, "node_modules/@sideway/address": { "version": "4.1.4", "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz", @@ -9094,14 +9061,13 @@ "react-dom": "^18.0.0 || ^0.0.0" } }, - "node_modules/gatsby-plugin-google-analytics": { + "node_modules/gatsby-plugin-google-gtag": { "version": "5.6.0", - "resolved": "https://registry.npmjs.org/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-5.6.0.tgz", - "integrity": "sha512-uAcOaDspp5yh5A+UCOH1qUCdwLTcslbZ4zvjUgOmx+QHlnKxHxPupknA3Ezu065hCznhf8gUkqZK92aIf60tyw==", + "resolved": "https://registry.npmjs.org/gatsby-plugin-google-gtag/-/gatsby-plugin-google-gtag-5.6.0.tgz", + "integrity": "sha512-GUKqBwhJZ5OU3P7BvlKn3Q6ctWMzt0Bfa+uCGouc5eREDsCswpl7TFXYuNAkNVksYMVX3TPtOS27VgDbZTznuQ==", "dependencies": { "@babel/runtime": "^7.20.13", - "minimatch": "^3.1.2", - "web-vitals": "^1.1.2" + "minimatch": "^3.1.2" }, "engines": { "node": ">=18.0.0" @@ -9259,25 +9225,6 @@ "gatsby": "^5.0.0-next" } }, - "node_modules/gatsby-plugin-preact": { - "version": "7.6.1", - "resolved": "https://registry.npmjs.org/gatsby-plugin-preact/-/gatsby-plugin-preact-7.6.1.tgz", - "integrity": "sha512-yF996hvUoMBEXyLmB16pD6CMzjGpsgFKWNG4k/iZrP0kZ/LHvmSxox8rpNk62v7/KNOEec3PKDGJJsDwIOd0lg==", - "dependencies": { - "@babel/runtime": "^7.20.13", - "@gatsbyjs/webpack-hot-middleware": "^2.25.3", - "@prefresh/babel-plugin": "^0.4.3", - "@prefresh/webpack": "^3.3.4" - }, - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "gatsby": "^5.0.0-next", - "preact": "^10.3.4", - "preact-render-to-string": "^5.1.8" - } - }, "node_modules/gatsby-plugin-react-helmet": { "version": "6.6.0", "resolved": "https://registry.npmjs.org/gatsby-plugin-react-helmet/-/gatsby-plugin-react-helmet-6.6.0.tgz", @@ -17649,11 +17596,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/web-vitals": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-1.1.2.tgz", - "integrity": "sha512-PFMKIY+bRSXlMxVAQ+m2aw9c/ioUYfDgrYot0YUa+/xa0sakubWhSDyxAKwzymvXVdF4CZI71g06W+mqhzu6ig==" - }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", @@ -20898,30 +20840,6 @@ "config-chain": "^1.1.11" } }, - "@prefresh/babel-plugin": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@prefresh/babel-plugin/-/babel-plugin-0.4.3.tgz", - "integrity": "sha512-fYAWbU1WDSLn108kKY4eDaaeUcnszFqXjgaGKYXNZ5NLulpRTpsrY+Sbfo9q8LDpWrBpqIgzjrwNnvglWI1xNQ==" - }, - "@prefresh/core": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@prefresh/core/-/core-1.4.1.tgz", - "integrity": "sha512-og1vaBj3LMJagVncNrDb37Gqc0cWaUcDbpVt5hZtsN4i2Iwzd/5hyTsDHvlMirhSym3wL9ihU0Xa2VhSaOue7g==" - }, - "@prefresh/utils": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@prefresh/utils/-/utils-1.1.3.tgz", - "integrity": "sha512-Mb9abhJTOV4yCfkXrMrcgFiFT7MfNOw8sDa+XyZBdq/Ai2p4Zyxqsb3EgHLOEdHpMj6J9aiZ54W8H6FTam1u+A==" - }, - "@prefresh/webpack": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@prefresh/webpack/-/webpack-3.3.4.tgz", - "integrity": "sha512-RiXS/hvXDup5cQw/267kxkKie81kxaAB7SFbkr8ppshobDEzwgUN1tbGbHNx6Uari0Ql2XByC6HIgQGpaq2Q7w==", - "requires": { - "@prefresh/core": "^1.3.3", - "@prefresh/utils": "^1.1.2" - } - }, "@sideway/address": { "version": "4.1.4", "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz", @@ -25095,14 +25013,13 @@ "rss": "^1.2.2" } }, - "gatsby-plugin-google-analytics": { + "gatsby-plugin-google-gtag": { "version": "5.6.0", - "resolved": "https://registry.npmjs.org/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-5.6.0.tgz", - "integrity": "sha512-uAcOaDspp5yh5A+UCOH1qUCdwLTcslbZ4zvjUgOmx+QHlnKxHxPupknA3Ezu065hCznhf8gUkqZK92aIf60tyw==", + "resolved": "https://registry.npmjs.org/gatsby-plugin-google-gtag/-/gatsby-plugin-google-gtag-5.6.0.tgz", + "integrity": "sha512-GUKqBwhJZ5OU3P7BvlKn3Q6ctWMzt0Bfa+uCGouc5eREDsCswpl7TFXYuNAkNVksYMVX3TPtOS27VgDbZTznuQ==", "requires": { "@babel/runtime": "^7.20.13", - "minimatch": "^3.1.2", - "web-vitals": "^1.1.2" + "minimatch": "^3.1.2" } }, "gatsby-plugin-image": { @@ -25203,17 +25120,6 @@ "lodash": "^4.17.21" } }, - "gatsby-plugin-preact": { - "version": "7.6.1", - "resolved": "https://registry.npmjs.org/gatsby-plugin-preact/-/gatsby-plugin-preact-7.6.1.tgz", - "integrity": "sha512-yF996hvUoMBEXyLmB16pD6CMzjGpsgFKWNG4k/iZrP0kZ/LHvmSxox8rpNk62v7/KNOEec3PKDGJJsDwIOd0lg==", - "requires": { - "@babel/runtime": "^7.20.13", - "@gatsbyjs/webpack-hot-middleware": "^2.25.3", - "@prefresh/babel-plugin": "^0.4.3", - "@prefresh/webpack": "^3.3.4" - } - }, "gatsby-plugin-react-helmet": { "version": "6.6.0", "resolved": "https://registry.npmjs.org/gatsby-plugin-react-helmet/-/gatsby-plugin-react-helmet-6.6.0.tgz", @@ -31184,11 +31090,6 @@ "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-1.1.4.tgz", "integrity": "sha512-wYxSGajtmoP4WxfejAPIr4l0fVh+jeMXZb08wNc0tMg6xsfZXj3cECqIK0G7ZAqUq0PP8WlMDtaOGVBTAWztNw==" }, - "web-vitals": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-1.1.2.tgz", - "integrity": "sha512-PFMKIY+bRSXlMxVAQ+m2aw9c/ioUYfDgrYot0YUa+/xa0sakubWhSDyxAKwzymvXVdF4CZI71g06W+mqhzu6ig==" - }, "webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", diff --git a/package.json b/package.json index 3d7945e..d65d01f 100644 --- a/package.json +++ b/package.json @@ -18,12 +18,11 @@ "gatsby-plugin-catch-links": "^5.6.0", "gatsby-plugin-dark-mode": "^1.1.2", "gatsby-plugin-feed": "^5.6.0", - "gatsby-plugin-google-analytics": "^5.6.0", + "gatsby-plugin-google-gtag": "^5.6.0", "gatsby-plugin-image": "^3.6.0", "gatsby-plugin-manifest": "^5.6.0", "gatsby-plugin-nprogress": "^5.6.0", "gatsby-plugin-offline": "^6.6.0", - "gatsby-plugin-preact": "^7.6.1", "gatsby-plugin-react-helmet": "^6.6.0", "gatsby-plugin-sass": "^6.6.0", "gatsby-plugin-sharp": "^5.6.0",