The sendViews() method records multiple screen views on your mobile app and sends it with one event.

Syntax

[[PiwikTracker sharedInstance] sendViews:@[@"title", @"title", @"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 three screen views Welcome, Profile, Settings with one event:

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    [[PiwikTracker sharedInstance] sendViews:@[@"Welcome", @"Profile", @"Settings"]];
}

Related methods