1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-02-15 02:12:34 +01:00

Update PostHog initialization to always include person profiles and refine contribution check logic

This commit is contained in:
Nayam Amarshe 2024-12-25 18:17:28 +05:30
parent 4d7cf468e9
commit a46868a5a8

View File

@ -14,7 +14,7 @@ const PostHogProviderWrapper = ({
useEffect(() => { useEffect(() => {
posthog.init("phc_QMcmlmComdofjfaRPzoN4KV9ziV2KgOwAOVyu4J3dIc", { posthog.init("phc_QMcmlmComdofjfaRPzoN4KV9ziV2KgOwAOVyu4J3dIc", {
api_host: "https://us.i.posthog.com", api_host: "https://us.i.posthog.com",
person_profiles: "identified_only", person_profiles: "always",
autocapture: false, autocapture: false,
capture_pageview: false, capture_pageview: false,
capture_pageleave: false, capture_pageleave: false,
@ -41,7 +41,7 @@ const PostHogProviderWrapper = ({
}); });
}, []); }, []);
if (!enableContribution) return <>{children}</>; if (enableContribution === false) return <>{children}</>;
return <PostHogProvider client={posthog}>{children}</PostHogProvider>; return <PostHogProvider client={posthog}>{children}</PostHogProvider>;
}; };