From 4f376f4777a55ca84052f01aa7943ed9e4ca542e Mon Sep 17 00:00:00 2001 From: bbdoc Date: Mon, 6 Jun 2022 14:00:48 +0200 Subject: [PATCH 1/4] Update index.jsx --- src/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.jsx b/src/index.jsx index abf3a41c0..b903e21a6 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -1,6 +1,6 @@ import React from 'react' import { render } from 'react-dom' -import ReactGA from 'react-ga' +import ReactGA from 'react-ga4' import * as Sentry from '@sentry/react' import { Integrations } from '@sentry/tracing' From 89767b50feeccdd7d75e1e262d6ca6a9f05743c8 Mon Sep 17 00:00:00 2001 From: bbdoc Date: Mon, 6 Jun 2022 14:02:30 +0200 Subject: [PATCH 2/4] Update Utility.js --- src/services/Utility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/Utility.js b/src/services/Utility.js index 614b62cbc..26b76f93c 100644 --- a/src/services/Utility.js +++ b/src/services/Utility.js @@ -1,5 +1,5 @@ /* eslint-disable no-nested-ternary */ -import ReactGA from 'react-ga' +import ReactGA from 'react-ga4' import SunCalc from 'suncalc' import formatInterval from './functions/formatInterval' From 1fc2c075a70f6e066028d8a1e784b71e16f590d7 Mon Sep 17 00:00:00 2001 From: bbdoc Date: Mon, 6 Jun 2022 14:03:07 +0200 Subject: [PATCH 3/4] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8a9a275ab..9eac6501d 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "prop-types": "^15.7.2", "react": "17.0.2", "react-dom": "17.0.2", - "react-ga": "^3.3.0", + "react-ga4": "^1.4.1", "react-i18next": "^11.16.7", "react-leaflet": "3.2.2", "react-leaflet-markercluster": "3.0.0-rc1", From fc813333864ce58fec0fd0355a5e19a569e5df80 Mon Sep 17 00:00:00 2001 From: bbdoc Date: Wed, 8 Jun 2022 10:37:01 +0200 Subject: [PATCH 4/4] Update yarn.lock --- yarn.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yarn.lock b/yarn.lock index 922310473..1f22f47b2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3889,10 +3889,10 @@ react-dom@17.0.2: object-assign "^4.1.1" scheduler "^0.20.2" -react-ga@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/react-ga/-/react-ga-3.3.0.tgz#c91f407198adcb3b49e2bc5c12b3fe460039b3ca" - integrity sha512-o8RScHj6Lb8cwy3GMrVH6NJvL+y0zpJvKtc0+wmH7Bt23rszJmnqEQxRbyrqUzk9DTJIHoP42bfO5rswC9SWBQ== +react-ga4@^1.4.1: + version "1.4.1" + resolved "https://registry.npmjs.org/react-ga4/-/react-ga4-1.4.1.tgz" + integrity sha512-ioBMEIxd4ePw4YtaloTUgqhQGqz5ebDdC4slEpLgy2sLx1LuZBC9iYCwDymTXzcntw6K1dHX183ulP32nNdG7w== react-i18next@^11.16.7: version "11.16.7"