Skip to content

Commit 415f9df

Browse files
committed
chore: version bump
1 parent 3f0df86 commit 415f9df

4 files changed

Lines changed: 37 additions & 36 deletions

File tree

package-lock.json

Lines changed: 29 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
"prettier": "^3.1.1",
7272
"react": "^19.2.4",
7373
"react-dom": "^19.2.4",
74-
"react-ga4": "^1.4.1",
7574
"react-toastify": "^10.0.6",
7675
"sharp": "^0.33.5",
7776
"svgo": "^3.3.2",
@@ -87,7 +86,6 @@
8786
"patch-package": "^8.0.0",
8887
"react": "^19.2.4",
8988
"react-dom": "^19.2.4",
90-
"react-ga4": "^1.4.1",
9189
"react-router-dom": "^6.30.3",
9290
"react-select": "5.8.0",
9391
"rxjs": "^7.8.1",
@@ -130,6 +128,7 @@
130128
"react-csv": "^2.2.2",
131129
"react-day-picker": "^9.11.2",
132130
"react-draggable": "^4.4.5",
131+
"react-ga4": "3.0.1",
133132
"react-international-phone": "^4.5.0",
134133
"react-virtualized-sticky-tree": "^3.0.0-beta18",
135134
"sass": "^1.69.7",

src/Shared/Analytics/analytics.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@
1515
*/
1616

1717
import ReactGA from 'react-ga4'
18-
import { UaEventOptions } from 'react-ga4/types/ga4'
1918

2019
import { get } from '@Common/API'
2120
import { ROUTES } from '@Common/Constants'
2221

23-
import { ServerAnalyticsEventType } from './types'
22+
import { HandleAnalyticsEventParams, ServerAnalyticsEventType } from './types'
2423

2524
export const handleSendAnalyticsEventToServer = async (
2625
eventType: ServerAnalyticsEventType,
@@ -33,7 +32,7 @@ export const handleSendAnalyticsEventToServer = async (
3332
}
3433
}
3534

36-
export const handleAnalyticsEvent = ({ category, action }: Pick<UaEventOptions, 'category' | 'action'>) => {
35+
export const handleAnalyticsEvent = ({ category, action }: HandleAnalyticsEventParams) => {
3736
if (window._env_.GA_ENABLED && ReactGA?.event)
3837
ReactGA.event({
3938
category,

src/Shared/Analytics/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@
1717
export enum ServerAnalyticsEventType {
1818
GET_LICENSE_CLICKED = 'getLicenseClicked',
1919
}
20+
21+
export interface HandleAnalyticsEventParams {
22+
category: string
23+
action: string
24+
}

0 commit comments

Comments
 (0)