Skip to content

Commit f97f3ea

Browse files
committed
fix hotjar init
1 parent 9c69894 commit f97f3ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

wondrous-app/pages/_app.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ function MyApp({ Component, context, isAuthenticated, user, pageProps: { session
5757
);
5858

5959
useEffect(() => {
60-
initHotjar();
6160
const handleRouteChange = (url) => {
6261
window.gtag('config', process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS, {
6362
page_path: url,
@@ -69,6 +68,10 @@ function MyApp({ Component, context, isAuthenticated, user, pageProps: { session
6968
};
7069
}, [router.events]);
7170

71+
useEffect(() => {
72+
initHotjar();
73+
}, []);
74+
7275
function getLibrary(provider): Web3Provider {
7376
const library = new Web3Provider(provider);
7477
library.pollingInterval = 12000;

0 commit comments

Comments
 (0)