If your SwiftUI app uses custom navigation patterns, Pendo’s automatic Page tracking might not reflect how users move through your app. In these cases, you can manually track Pages using an API that gives you more control over what counts as a Page view.
Manual tracking Page views means your app calls Pendo’s API directly when a visitor navigates to a screen. These screen views then appear in Pendo analytics, just like automatically tracked Pages, after you tag them.
When to use manual page tracking
Use the manual page tracking API if:
- Your SwiftUI app uses custom or non-standard navigation patterns.
- Page views aren’t tracked accurately through automatic methods.
- You need more precise control over when and how screen views are recorded.
This includes apps that use dynamic navigation stacks, views without view controllers, or complex nested layouts that don’t generate built-in tracking.
How it works
Manual tracking uses an API built into the Pendo Mobile SDK. When a visitor navigates to a screen you care about, your app sends an event to Pendo identifying that screen.
To use this:
- Update to Pendo Mobile SDK version 3.7.0 or later.
- Have your development team add API calls at key navigation points. For setup steps and code samples, see the implementation guide in GitHub.
- Tag these screens in Pendo as Pages in analytics. For instructions, see Tag Pages in your mobile app.
Next steps
For detailed API documentation, visit the Native iOS API documentation.
For the latest release notes and updates, see What's new in Mobile.