diff --git a/src/components/Contexts/AnalyticsContext.tsx b/src/components/Contexts/AnalyticsContext.tsx index a17f666d..15130aae 100644 --- a/src/components/Contexts/AnalyticsContext.tsx +++ b/src/components/Contexts/AnalyticsContext.tsx @@ -62,7 +62,12 @@ export const AnalyticsProvider: FC = ({ GA_MEASUREMENT_ID, childr ReactGA.reset(); } if (GA_MEASUREMENT_ID) { - ReactGA.initialize(GA_MEASUREMENT_ID); + ReactGA.initialize(GA_MEASUREMENT_ID, { + gaOptions: { + DEV_TIER: env?.REACT_APP_DEV_TIER || "N/A", + FE_VERSION: env?.REACT_APP_FE_VERSION || "N/A", + }, + }); } return { ReactGA }; @@ -73,7 +78,6 @@ export const AnalyticsProvider: FC = ({ GA_MEASUREMENT_ID, childr authenticated: isLoggedIn, role: user?.role || "N/A", IDP: user?.IDP || "N/A", - FE_VERSION: env?.REACT_APP_FE_VERSION || "N/A", }); }, [isLoggedIn, user?.role, user?.IDP]);