Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
feat: fix posthog logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdilouraoui committed Sep 19, 2023
1 parent e2ef8f4 commit 1f368ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hooks/usePostHog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const usePostHog = () => {
useEffect(() => {
const handleRouteChange = () => {
posthog?.capture('$pageview');
console.log('capture!');
};
router.events.on('routeChangeComplete', handleRouteChange);

Expand Down

0 comments on commit 1f368ad

Please sign in to comment.