Skip to content

Commit

Permalink
Merge pull request #3227 from makeplane/develop
Browse files Browse the repository at this point in the history
fix: posthog events trigger in staging (#3220)
  • Loading branch information
sriramveeraghanta committed Dec 22, 2023
2 parents e141091 + fe95193 commit d4b6f4f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web/lib/wrappers/posthog-wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ const PosthogWrapper: FC<IPosthogWrapper> = (props) => {
capture_pageview: false, // Disable automatic pageview capture, as we capture manually
});
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
}, [posthogAPIKey, posthogHost]);

useEffect(() => {
// Track page views
Expand All @@ -60,7 +59,7 @@ const PosthogWrapper: FC<IPosthogWrapper> = (props) => {
return () => {
router.events.off("routeChangeComplete", handleRouteChange);
};
// eslint-disable-next-line react-hooks/exhaustive-deps
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

if (posthogAPIKey) {
Expand Down

0 comments on commit d4b6f4f

Please sign in to comment.