From 16b29a6324a670a4862c72fcc50d921ec2a5b465 Mon Sep 17 00:00:00 2001 From: Cesar Faber Date: Thu, 8 Feb 2024 22:51:39 -0300 Subject: [PATCH] reinstalling ga plugin --- gatsby-config.js | 18 ++++++++++++------ package.json | 2 +- yarn.lock | 12 +++--------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 4dd75c2..170152a 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -7,6 +7,18 @@ module.exports = { siteUrl: `https://www.cesarolvr.com`, }, plugins: [ + { + resolve: `gatsby-plugin-google-gtag`, + options: { + trackingIds: [ + "G-RBL0Y5VB5K", + ], + pluginConfig: { + head: true, + // anonymize_ip: true, + }, + }, + }, "gatsby-plugin-sass", "gatsby-plugin-image", "gatsby-plugin-sitemap", @@ -39,11 +51,5 @@ module.exports = { crossOrigin: `use-credentials`, }, }, - { - resolve: `gatsby-plugin-google-analytics`, - options: { - trackingId: "G-RBL0Y5VB5K", - }, - } ], }; diff --git a/package.json b/package.json index 23d52c9..5eec285 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "classnames": "^2.5.1", "countup.js": "^2.8.0", "gatsby": "^5.13.1", - "gatsby-plugin-google-analytics": "^5.13.1", + "gatsby-plugin-google-gtag": "^5.13.1", "gatsby-plugin-image": "^3.13.0", "gatsby-plugin-manifest": "^5.13.1", "gatsby-plugin-postcss": "^6.13.0", diff --git a/yarn.lock b/yarn.lock index 52fed91..6a913a2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5348,14 +5348,13 @@ gatsby-parcel-config@1.13.1: "@parcel/transformer-js" "2.8.3" "@parcel/transformer-json" "2.8.3" -gatsby-plugin-google-analytics@^5.13.1: +gatsby-plugin-google-gtag@^5.13.1: version "5.13.1" - resolved "https://registry.yarnpkg.com/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-5.13.1.tgz#6406e8b52a5df67ca3978a1d6f6ca661a7f6ac61" - integrity sha512-6TzvUPW7CBpfpSIqpcvaRwRKTYgM3CKqSnfyRIY16vlAKYkAtZLXm3PkIbg0+mM+WzY6GRnAoeXqRkXJv0FK9A== + resolved "https://registry.yarnpkg.com/gatsby-plugin-google-gtag/-/gatsby-plugin-google-gtag-5.13.1.tgz#81b294f2ab12dad5ba5e9946e4b78cd315676bbc" + integrity sha512-aaJKIDwUWwhooJnalse1uvcusBmCwCVK33pp1IrDU02E7IohMen3eR5TsjLbfKO7Z+SbfKJEqUoi/r0ozrJarA== dependencies: "@babel/runtime" "^7.20.13" minimatch "^3.1.2" - web-vitals "^1.1.2" gatsby-plugin-image@^3.13.0: version "3.13.1" @@ -10087,11 +10086,6 @@ weak-lru-cache@^1.2.2: resolved "https://registry.yarnpkg.com/weak-lru-cache/-/weak-lru-cache-1.2.2.tgz#fdbb6741f36bae9540d12f480ce8254060dccd19" integrity sha512-DEAoo25RfSYMuTGc9vPJzZcZullwIqRDSI9LOy+fkCJPi6hykCnfKaXTuPBDuXAUcqHXyOgFtHNp/kB2FjYHbw== -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"