sendView
The sendView() method records a screen view on your mobile app. The screen view is similar to the page view on a website.
Syntax
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
[[PiwikTracker sharedInstance] sendView:@"title"];
}
Parameters
title (string, required)
The title set for your screen. Example: Welcome.
Note: Our SDK will automatically use the screen title to create a page URL that is used in reporting. Example: https://welcome/. The URL will also get the screen prefix if isPrefixingEnabled = YES is set.
Examples
To send a screen view with the title Welcome
:
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
[[PiwikTracker sharedInstance] sendView:@"Welcome"];
}
Related methods
Updated 6 days ago