Part 7: Intro to Analytics


Options



Fix it Fast Scenario: Table of Contents

Before You Begin

Purpose

Mobile program managers are responsible for the success of an organization's overall mobile strategy. They want to know how many people are using their mobile applications, and how people are using them. To achieve that, mobile program managers can use the analytics features in Oracle Mobile Cloud Service to track standard metrics (such as registered and active users, number of transactions, and so on). They can also create custom events to track business analytics and understand how users use the application.

MCS comes with a host of built-in metrics, including metrics about API calls, API call response time, new users, active users, session count, and session duration. You can also track custom events. For example, imagine that your application uses the Analytics API to post an event each time a mobile application user creates a new incident report. The event could capture properties about the incident, such as the appliance type, make, model, and model year. You could then generate graphs and tables based on those events and filter the data in any number of ways, such as how many incident reports were filed for water heaters every month for the last year.

In this tutorial, you examine built-in metrics. You also generate custom events from a mobile application and track them by using the analytics capabilities of Oracle MCS.

Step 1: View system events

System events are automatically generated when mobile application users access the application. System events track API calls, sessions, and user details. To enable system event tracking, the mobile application developer simply calls the Analytics API to start a session, and the system events are tracked automatically. The developer does not need to write any custom code.

To make the analytics data more interesting for this tutorial, the classroom environment has been populated with realistic data to reflect a multi-user environment.

  1. From the Developer Portal, click the Analytics button on the top, right toolbar.

    Sample chart
  2. The default view is the dashboard, where you see active users by location, charted on a map of the world.

    Sample chart
  3. To filter the data by mobile backend, select FixItFastTechnician. Note that this is not the mobile backend that you created. It is a shared mobile backend that is populated with realistic data. If you look at the mobile backend that you created, you'll see very little system analytic data.

    Sample chart
  4. You can drill further into user and session data in two ways. First, in the lower right corner, click Sessions to open the Sessions analytics view.

    Sample chart
  5. Then, in the header area, click ALL to view the session count for all time.

    Sample chart

    The report shows a cumulative record of session activity.

    Sample chart
  6. Here, you can filter and group data based on the mobile application or location of the user session.

    From the Select a group by property drop-down list, select State.

    Sample chart
  7. To change the view, click the Bar graph icon in the lower right corner of the page.

    Sample chart

    Then, in the header area, click Session Duration to view details about session duration.

    Sample chart
  8. You can also drill further into the data by clicking the Reports Menu (hamburger) icon to open the reports menu.

    Click Users to view data about users.

    Sample chart

    Here you can see details about new and active users.

    Sample chart
  9. Click the ALL button again, and then explore the New Users and Active Users views, where you can filter and group in different ways to understand the data.

    Sample chart

    Click quickly between the two views to see the subtle differences in the data.

    Sample chart
  10. Next, from the reports menu, select API Calls. Here again, API call data has been generated to give you an idea of what analytics data would look like in a real environment.

    Sample chart
  11. Click around within the API Calls Count and API Calls Response Time views to filter by different time frames and change the chart type. Notice that you can filter based on specific platform or custom APIs. For this example, however, the sample data was populated against the analytics collector (the Analytics API), so you can only see API calls for the analytics collector.

    Sample chart

     

    Sample chart
  12. In your mobile backend (FIF_Technician_xx), switch back to your mobile backend.

    Sample chart
  13. Then, from the Total API Calls drop-down list, select Storage.

    Sample chart

    Now you can view the API Response Time and API Calls for the Storage API calls that you made from the MAF MCS Tester Application.

    Sample chart

    Sample chart

Step 2: Test custom events

In this part of the tutorial, you use a tester application to create and send custom events to your MCS mobile backend. You then use MCS to view the resulting analytics.

  1. If it is not already running, run the MAF MCS Tester Application.

    Sample chart
  2. Start the MAF MCS Utility Demo.

    Sample chart
  3. Log in using the username joe_xx and the password.

    Sample chart
  4. Select MCS Analytic API.

    Sample chart
  5. On the Analytics page of the tester, create an event similar to the following:

    Event Name: Food Purchase

    Product Id: 9876

    Product Name: Bread

    Unit Price: 3

    Quantity: 6

    Sample chart
  6. Click Add Event to add the event to the queue.

    Sample chart
  7. Add another Food Purchase event. Use any details that you want and click Add Event.

    Sample chart
  8. Add a couple more events that use the Apparel Purchase event name. Use any details that you want and click Add Event after specifying each event.

    Sample chart
  9. Now that you have added several events, click Send Events.

    Sample chart
  10. Get back to the Developer Portal in MCS and click the Analytics button.

    Sample chart
  11. In the upper right corner of the page, click the down arrow next to All Backends and use the filter to find and select your mobile backend.

    Sample chart
  12. In the upper left corner of the page, click the Reports Menu (hamburger) icon and click Events.

    Sample chart
  13. Use the Events drop-down list to select mafmcsutility-apparel.

    Sample chart
  14. Use the Select a group by property drop-down list to group the events by ProductName.

    Sample chart
  15. If you added events for multiple products, click one of the products in the chart legend to turn off that item in the chart.

    Sample chart
  16. Use the Events drop-down list to change the events that you see in the graph. Select mafmcsutility-food.

    Sample chart
  17. Set the Group by property to ProductName.

    Sample chart
  18. Just as you did before, deselect one or more items in the legend to remove them from the graph.

    Sample chart
  19. Click the Add Filter (plus sign) icon next to Filters.

    Sample chart
  20. Select ProductName as the property and then select one of the products that you used when you created the event.

    Sample chart
  21. Click Done to apply the filter.

    Sample chart
  22. You can use the Group by Property drop-down list to shape your display to show what you want.

    Sample chart

Fix it Fast : Table of Contents