piwik captures user interaction behavior

https://github.com/matomo-org/matomo-sdk-ios/tree/version-3
http://piwik.org
First download the demo, drag the file into the project, and fill in the piwik server in the AppDelegate.m file URL and number;
for example:
static NSString * const PiwikServerURL = @"http://localhost/path/to/piwik/";
static NSString * const PiwikSiteID = @"2";

If you are not in one you can run the tracker Piwik server in debug mode. Events will be printed to the console, not sent to the Piwik server,
[PiwikTracker sharedInstance].debug = YES;
Configure and use:
1. Create and configure the tracker
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( NSDictionary *)launchOptions {  

  [PiwikTracker sharedInstanceWithSiteID: PiwikSiteID baseURL: [NSURL URLWithString: PiwikServerURL]];
}

2. Track screen views
[[PiwikTracker sharedInstance] sendViews:@"view1", @"view2", self.title, nil];
3. Track custom events when the user interacts with the app
[[PiwikTracker sharedInstance] sendEventWithCategory:@ "Documentary" action:@"Play" name:@"Thrive" value:@8.0];
4. Track when users interact with various social networks
[[PiwikTracker sharedInstance] sendSocialInteraction:@"Like" target:@"cat. png" forNetwork:@"Facebook"];

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325954854&siteId=291194637