From 05023685abf3aac42ba54275ca44ecdf7574b3b8 Mon Sep 17 00:00:00 2001 From: mehdilouraoui <37937348+mehdilouraoui@users.noreply.github.com> Date: Tue, 19 Sep 2023 15:12:21 +0200 Subject: [PATCH] feat: fix posthog logs (#158) --- hooks/usePostHog.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/hooks/usePostHog.tsx b/hooks/usePostHog.tsx index 3cf83e0..e99af60 100644 --- a/hooks/usePostHog.tsx +++ b/hooks/usePostHog.tsx @@ -17,6 +17,7 @@ export const usePostHog = () => { useEffect(() => { const handleRouteChange = () => { posthog?.capture('$pageview'); + console.log('capture!'); }; router.events.on('routeChangeComplete', handleRouteChange);