Page views for web apps
Screens are the content that your users view in your app. This is useful for understanding user navigation patterns and which parts of your application are most frequently visited.
Use the below method to track screen or page views.
Copiedapptics.trackScreen(screenName, jsonObj);
- screenName (string) - Mandatory: The name of the screen or page being viewed (e.g., "HomePage").
- jsonObj (object) - Optional: Additional data related to the screen in JSON format (e.g., { section: 'Header' }).
Example
In the below example the SDK tracks a user viewing the "HomePage," with additional context indicating that the user is interacting with the header section.
Copiedapptics.trackScreen('HomePage', { section: 'Header' });