feat: 修复前的 DAU 数据无法补充(PostHog 未收到事件)

This commit is contained in:
zdl
2025-11-19 17:17:54 +08:00
parent 905023c056
commit 5f6b4b083b

View File

@@ -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