Update useGoogleAnalytics.js

This commit is contained in:
plebeius.eth
2023-09-23 21:16:39 +02:00
committed by GitHub
parent 93eb4d78cf
commit 1ba5693f84
+2 -2
View File
@@ -14,7 +14,7 @@ useEffect(() => {
});
window.gtag('event', 'page_view', {
'page_path': fullPath,
'page_location': window.location.href
'page_location': window.location.href.replace('/#', '')
});
}
@@ -22,4 +22,4 @@ useEffect(() => {
};
export default useGoogleAnalytics;pat
export default useGoogleAnalytics;