Skip to content

Commit 7f78bca

Browse files
committed
Add hotjar for heatmap detection
1 parent 3bb6074 commit 7f78bca

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"surge:teardown": "branch=$(git rev-parse --symbolic-full-name --abbrev-ref HEAD); branch=$(echo $branch | tr ./ -); surge teardown https://ifrc-go-$branch.surge.sh"
3838
},
3939
"dependencies": {
40+
"@hotjar/browser": "^1.0.9",
4041
"@ifrc-go/icons": "^2.0.1",
4142
"@ifrc-go/ui": "^1.2.4",
4243
"@sentry/react": "^7.81.1",

app/src/App/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
createBrowserRouter,
99
RouterProvider,
1010
} from 'react-router-dom';
11+
import Hotjar from '@hotjar/browser';
1112
import {
1213
AlertContext,
1314
type AlertContextProps,
@@ -55,6 +56,11 @@ import wrappedRoutes, { unwrappedRoutes } from './routes';
5556

5657
import styles from './styles.module.css';
5758

59+
const siteId = 5292885;
60+
const hotjarVersion = 6;
61+
62+
Hotjar.init(siteId, hotjarVersion);
63+
5864
const requestContextValue = {
5965
transformUrl: processGoUrls,
6066
transformOptions: processGoOptions,

0 commit comments

Comments
 (0)