Generate Analytics Report for Third-Party App
App analytics is a critical feature to gauge application performance and usage across devices, locations and customers. Understanding application activity has now been made easier with Analytics Report option for third-party app integration offered by 42Gears UEM. It offers app analytics and device data usage analytics at one place, negating the need for enterprises to opt for multiple app analytics tools to analyse data on their app usage.
To generate analytics report for third-party app , following two steps have to be performed:
1. On App Side
In order to integrate third party app with SureMDM Analytics, values to be analysed will have to be added on a CSV file (example – batteryinfo.csv) under specific headers. Information to be analysed from the app is to be sent to SureMDM Agent by sending broadcast on action com.gears42.nix.analytics
. An example is given below:
Intent analyticsExportToNixIntent = new Intent();
analyticsExportToNixIntent.setAction(“com.gears42.nix.analytics”);
analyticsExportToNixIntent.putExtra(“path”,Environment.getExternalStorageDirectory()+”/batteryinfo.csv”);
analyticsExportToNixIntent.putExtra(“secret\_key”, “219fd050”);
analyticsExportToNixIntent.putExtra(“package\_name”,context.getApplicationInfo().packageName);
context.sendBroadcast(analyticsExportToNixIntent);
path
= path of CSV file
secret key
= to be derived from SureMDM console
package name
= third party application package name
2. On Console Side
To derive custom reports for third-party app on SureMDM analytics, follow these steps:
Navigate to SureMDM Web Console >Settings (icon located at top right of the screen) > Account Settings > Data Analytics.
Select Enable Data Analytics to configure analytics settings.
Click Add Analytics.
Enter a name in the Analytic Name field.
Enter a name in the Tag Name field.
Tag Name is a unique field which can be further used for Group By** purpose.
Example – Device Name.*
Click Add Fields and select the desired Field Name, Field Type and click Add.
Fields should be the same as in CSV headers. Example – Device Name, Percentage, Health, Plugged Status, Availability, Charging Status, Technology, Temperature and Voltage.
Click Save.
Once analytics is successfully saved, click Show to reveal the Secret Key.
The Secret Key is important as this will be later added on the broadcast.
Go to Reports and select Custom Reports /Schedule Reports to generate the report. See the steps under Create a Scheduled Report / Create a Custom Report.