Update useGoogleAnalytics.js

This commit is contained in:
plebeius.eth
2023-09-23 20:49:02 +02:00
committed by GitHub
parent 6873ca8f26
commit e518dedf38
+1
View File
@@ -12,6 +12,7 @@ const useGoogleAnalytics = () => {
window.gtag('config', GA_MEASUREMENT_ID, {
'page_path': fullPath,
});
window.gtag('event', 'page_view', {'page_path': fullPath});
}
}, [location]);
};