Make PostHog analytics fully anonymous

Set person_profiles: "never" so PostHog never creates user profiles.
Remove identifyUser calls from login and fetchUser flows.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-03-04 21:28:31 -06:00
parent ff6921b2f4
commit 9ac3434b06
2 changed files with 2 additions and 15 deletions
+1 -6
View File
@@ -14,6 +14,7 @@ export function initAnalytics() {
"https://analytics.88oakapps.com",
capture_pageview: true,
capture_pageleave: true,
person_profiles: "never",
});
initialized = true;
}
@@ -34,12 +35,6 @@ export function trackScreen(screenName: string) {
}
}
export function identifyUser(userId: string, traits?: Record<string, unknown>) {
if (initialized) {
posthog.identify(userId, traits);
}
}
export function resetAnalytics() {
if (initialized) {
posthog.reset();