📈 AnalyticsKit
Capture View Activity
import AnalyticsKit

Capture View Activity

You can easily track how the user moves around your app by capturing view activity. This will capture when a specific view is shown to the user.

.captureViewActivity(as viewName: String)
  • viewName - The name of the View (recommended to use the same name as the SwiftUI View Struct).

Example of a catured view event in the PostHog dashboard: View Capture Example (viewName: "SettingsView")