Replace EventLogger with typed AnalyticsManager using PostHog
Complete analytics overhaul: delete EventLogger.swift, create Analytics.swift with typed event enum (~45 events), screen tracking, super properties (theme, icon pack, voting layout, etc.), session replay with kill switch, autocapture, and network telemetry. Replace all 99 call sites across 38 files with compiler-enforced typed events in object_action naming convention. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -77,7 +77,7 @@ struct MonthDetailView: View {
|
||||
)
|
||||
}
|
||||
.onAppear(perform: {
|
||||
EventLogger.log(event: "show_month_detail_view")
|
||||
AnalyticsManager.shared.trackScreen(.monthDetail)
|
||||
})
|
||||
.background(
|
||||
theme.currentTheme.bg
|
||||
|
||||
@@ -337,10 +337,10 @@ struct MonthView: View {
|
||||
}
|
||||
}
|
||||
.sheet(isPresented: $showSubscriptionStore) {
|
||||
FeelsSubscriptionStoreView()
|
||||
FeelsSubscriptionStoreView(source: "month_gate")
|
||||
}
|
||||
.onAppear(perform: {
|
||||
EventLogger.log(event: "show_month_view")
|
||||
AnalyticsManager.shared.trackScreen(.month)
|
||||
})
|
||||
.padding([.top])
|
||||
.background(
|
||||
|
||||
Reference in New Issue
Block a user