Skip to content

Commit

Permalink
Switch to Google Analytics 4, Uninstall Preact due to bug: gatsbyjs/g…
Browse files Browse the repository at this point in the history
  • Loading branch information
TimTree committed Feb 19, 2023
1 parent 1656d91 commit 8d59eda
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 115 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
13 changes: 9 additions & 4 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ module.exports = {
],
},
},
`gatsby-plugin-preact`,
`gatsby-plugin-image`,
{
resolve: `gatsby-plugin-sharp`,
Expand Down Expand Up @@ -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: {
},
},
},
{
Expand Down
117 changes: 9 additions & 108 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8d59eda

Please sign in to comment.