From 5f6b4b083bcee403f7d84721e305001219735b4d Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Wed, 19 Nov 2025 17:17:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E5=89=8D=E7=9A=84=20?= =?UTF-8?q?DAU=20=E6=95=B0=E6=8D=AE=E6=97=A0=E6=B3=95=E8=A1=A5=E5=85=85?= =?UTF-8?q?=EF=BC=88PostHog=20=E6=9C=AA=E6=94=B6=E5=88=B0=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/posthog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/posthog.js b/src/lib/posthog.js index af533f66..5650b50f 100644 --- a/src/lib/posthog.js +++ b/src/lib/posthog.js @@ -33,8 +33,8 @@ export const initPostHog = () => { posthog.init(apiKey, { api_host: apiHost, - // Pageview tracking - manual control for better accuracy - capture_pageview: false, // We'll manually capture with custom properties + // Pageview tracking - auto-capture for DAU/MAU analytics + capture_pageview: true, // Auto-capture all page views (required for DAU tracking) capture_pageleave: true, // Auto-capture when user leaves page // Session Recording Configuration