mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-13 01:07:42 -05:00
switch tracking
This commit is contained in:
@@ -4,12 +4,12 @@ import { useLocation } from "react-router-dom";
|
||||
|
||||
export const usePageTracking = () => {
|
||||
const location = useLocation();
|
||||
|
||||
/*
|
||||
useEffect(() => {
|
||||
window.gtag("event", "page_view", {
|
||||
page_path: location.pathname + location.search + location.hash,
|
||||
page_search: location.search,
|
||||
page_hash: location.hash,
|
||||
});
|
||||
}, [location]);
|
||||
}, [location]);*/
|
||||
};
|
||||
Reference in New Issue
Block a user