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 (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdilouraoui authored Sep 19, 2023
1 parent e2ef8f4 commit 0502368
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 0502368

Please sign in to comment.