Report user-specific data
With Splunk MINT, you can closely track the experience of any given user, for example to investigate a complaint. First, provide a user identifier such as an ID number from a database, an email address, a push ID, or a username. (However, please do not transmit any personally-identifiable or sensitive data into Splunk MINT.) Then in the Splunk MINT Management Console dashboard, you can search for errors that affect a particular user ID and examine crash data associated with her or her usage of your app. This feature is useful for apps with a high average revenue per user (ARPU), for apps that are deployed in a mobile device management (MDM) environment, and during quality-assurance testing.
- Set the userIdentifier property to a user identifier before calling the initAndStartSessionWithAPIKey: method as follows:
// Objective-C [[Mint sharedInstance] setUserIdentifier:@"MyUserIdentifier"]; [[Mint sharedInstance] initAndStartSessionWithAPIKey:@"API_KEY"];
// Swift Mint.sharedInstance().userIdentifier = "MyUserIdentifier" Mint.sharedInstance().initAndStartSessionWithAPIKey("API_KEY");
Then, to search errors for a specific user name or ID, go to the Errors dashboard in Splunk MINT Management Console, then enter the user name or ID under Search by username in the list of filters.
Do not report data
To prevent MINT from saving or sending any data for a user, use the setUserOptOut method set to
true before calling the initAndStartSessionWithAPIKey method.
// Objective-C [[Mint sharedInstance] setUserOptOut:YES];
// Swift Mint.sharedInstance().setUserOptOut = true
For more about the data fields that are collected by MINT, see About Splunk MINT data collection in the Splunk MINT Overview manual.
View memory warnings
This documentation applies to the following versions of Splunk MINT™ SDK for iOS (Legacy): 5.2.x