mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Update useGoogleAnalytics.js
This commit is contained in:
@@ -12,6 +12,7 @@ const useGoogleAnalytics = () => {
|
|||||||
window.gtag('config', GA_MEASUREMENT_ID, {
|
window.gtag('config', GA_MEASUREMENT_ID, {
|
||||||
'page_path': fullPath,
|
'page_path': fullPath,
|
||||||
});
|
});
|
||||||
|
window.gtag('event', 'page_view', {'page_path': fullPath});
|
||||||
}
|
}
|
||||||
}, [location]);
|
}, [location]);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user