Menu
Amazon Mobile Analytics
User Guide

Querying Session Count

This KPI returns the number of sessions for your app. The URL for this KPI is:

Copy
https://mobileanalytics.us-east-1.amazonaws.com/2014-06-05/apps/<YOUR APP ID>/kpis/sessions/count

Example Response

Here is an example of the JSON returned in the response. The value in the rows attribute contains the KPI value.

Copy
{ "_links" : { "self" : { "href" : "/2014-06-05/apps/<YOUR APP ID>/kpis/sessions/count?start=2014-11-20&end=2014-12-01", "name" : "count" }, "example" : [{ "href" : "/2014-06-05/apps/<YOUR APP ID>/kpis/sessions/count?start=7-days-ago&end=today", "name" : "last-7-days-all-platforms", "title" : "Last 7 Days All Platforms" }, { "href" : "/2014-06-05/apps/<YOUR APP ID>/kpis/sessions/count?start=30-days-ago&end=today", "name" : "last-30-days-all-platforms", "title" : "Last 30 Days All Platforms" }, { "href" : "/2014-06-05/apps/<YOUR APP ID>/kpis/sessions/count?start=60-days-ago&end=today", "name" : "last-60-days-all-platforms", "title" : "Last 60 Days All Platforms" } ], "up" : [{ "href" : "/2014-06-05/apps/<YOUR APP ID>/kpis/sessions", "name" : "sessions" } ] }, "columns" : { "day" : { "colIndex" : 0, "type" : "Qualitative", "dataType" : "ISODateTime", "unit" : null, "name" : "day", "displayName" : "Date" }, "Sessions" : { "colIndex" : 1, "type" : "Quantitative", "dataType" : "Double", "unit" : null, "name" : "Sessions", "displayName" : "Sessions" } }, "rows" : [ ["2014-11-20", 403.0], ["2014-11-21", 455.0], ["2014-11-22", 453.0], ["2014-11-23", 432.0], ["2014-11-24", 503.0], ["2014-11-25", 564.0], ["2014-11-26", 574.0], ["2014-11-27", 532.0], ["2014-11-28", 495.0], ["2014-11-29", 486.0], ["2014-11-30", 529.0], ["2014-12-01", 520.0]], "scope" : { "appId" : "<YOUR APP ID>", "kpiName" : "sessions", "aggregate" : "count" }

On this page: