Skip to content

Commit

Permalink
Update to GA4 (#20)
Browse files Browse the repository at this point in the history
* Update to GA4
  • Loading branch information
ryanwiemer authored Nov 23, 2022
1 parent a9cb89c commit 1cbc15c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
8 changes: 5 additions & 3 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ module.exports = {
'gatsby-plugin-sitemap',
'gatsby-plugin-offline',
{
resolve: 'gatsby-plugin-google-analytics',
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingId: process.env.GOOGLE_ANALYTICS || 'UA-XXXXXXXX-X',
anonymize: false,
trackingIds: [process.env.GOOGLE_ANALYTICS],
pluginConfig: {
head: true,
},
},
},
{
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rw",
"description": "Ryan Wiemer's online portfolio",
"version": "2.3.1",
"version": "2.3.2",
"author": "Ryan Wiemer <[email protected]>",
"keywords": [
"rw"
Expand All @@ -17,7 +17,7 @@
"gatsby": "^4.3.0",
"gatsby-plugin-emotion": "^7.3.0",
"gatsby-plugin-gatsby-cloud": "^4.3.0",
"gatsby-plugin-google-analytics": "^4.3.0",
"gatsby-plugin-google-gtag": "4.3.0",
"gatsby-plugin-image": "^2.3.0",
"gatsby-plugin-manifest": "^4.3.0",
"gatsby-plugin-netlify": "^3.14.0",
Expand Down
14 changes: 4 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5865,14 +5865,13 @@ gatsby-plugin-gatsby-cloud@^4.3.0:
lodash "^4.17.21"
webpack-assets-manifest "^5.0.6"

gatsby-plugin-google-analytics@^4.3.0:
gatsby-plugin-google-gtag@4.3.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-4.3.0.tgz#1db01c2607a0c2c55f070b68a70c83928ed2165f"
integrity sha512-waHU0b7eTQuub7GgMDxJ4E5MjqXFqmQ8UaFMAWrdaCtRmj4CNdee36xYMbobzqOmtU5L40IFZ3kifIda6M1Pow==
resolved "https://registry.yarnpkg.com/gatsby-plugin-google-gtag/-/gatsby-plugin-google-gtag-4.3.0.tgz#d37154200e95d5b890b6d51cda1bad1ffdaa077c"
integrity sha512-iqFubNz2j+1pkH9B6gNZKlo4eppe9iUBMUNIa31VSxtCL7g1/sTfxqrGKvgxavngdlWdbGJm1cfM1B1wwuD+og==
dependencies:
"@babel/runtime" "^7.15.4"
minimatch "3.0.4"
web-vitals "^1.1.2"
minimatch "^3.0.4"

gatsby-plugin-image@^2.3.0:
version "2.3.0"
Expand Down Expand Up @@ -12565,11 +12564,6 @@ web-namespaces@^1.0.0:
resolved "https://registry.yarnpkg.com/web-namespaces/-/web-namespaces-1.1.4.tgz#bc98a3de60dadd7faefc403d1076d529f5e030ec"
integrity sha512-wYxSGajtmoP4WxfejAPIr4l0fVh+jeMXZb08wNc0tMg6xsfZXj3cECqIK0G7ZAqUq0PP8WlMDtaOGVBTAWztNw==

web-vitals@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/web-vitals/-/web-vitals-1.1.2.tgz#06535308168986096239aa84716e68b4c6ae6d1c"
integrity sha512-PFMKIY+bRSXlMxVAQ+m2aw9c/ioUYfDgrYot0YUa+/xa0sakubWhSDyxAKwzymvXVdF4CZI71g06W+mqhzu6ig==

webidl-conversions@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
Expand Down

0 comments on commit 1cbc15c

Please sign in to comment.