Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

📈 Capture page leave to calculate bounce rate

Luke Vella75138ff4c9d5
diff --git a/apps/web/src/contexts/posthog.tsx b/apps/web/src/contexts/posthog.tsx
index 3d8cb069d..951c41bdc 100644
--- a/apps/web/src/contexts/posthog.tsx
+++ b/apps/web/src/contexts/posthog.tsx
@@ -17,11 +17,11 @@ export function PostHogProvider(props: PostHogProviderProps) {
api_host: process.env.NEXT_PUBLIC_POSTHOG_API_HOST,
opt_out_capturing_by_default: false,
capture_pageview: true,
+ capture_pageleave: true,
// we use session recordings to offer support and
// improve the product for our pro users
disable_session_recording: true,
persistence: "memory",
- capture_pageleave: false,
autocapture: false,
opt_in_site_apps: true,
bootstrap: {