The dimensions and metrics supported in queries to the Realtime method of the Analytics Data API. The
Core Reporting methods (
for example) accept a different set of Dimensions & Metrics
than the Realtime method.
The following dimensions can be requested in reports for any property. Specify
the "API Name" in a
field for a column of the dimension in the report response.
|The app's versionName (Android) or short bundle version (iOS).
|The numeric identifier of an Audience. Users are reported in the audiences to which they belonged during the report's date range. Current user behavior does not affect historical audience membership in reports.
|The given name of an Audience. Users are reported in the audiences to which they belonged during the report's date range. Current user behavior does not affect historical audience membership in reports.
|The city from which the user activity originated.
|The geographic ID of the city from which the user activity originated, derived from their IP address.
|The country from which the user activity originated.
|The geographic ID of the country from which the user activity originated, derived from their IP address. Formatted according to ISO 3166-1 alpha-2 standard.
|The type of device: Desktop, Tablet, or Mobile.
|The name of the event.
|Realtime minutes ago
|The number of minutes ago that an event was collected. 00 is the current minute, and 01 means the previous minute.
|The platform on which your app or website ran; for example, web, iOS, or Android. To determine a stream's type in a report, use both platform and streamId.
|The numeric data stream identifier for your app or website.
|The data stream name for your app or website.
|Page title and screen name
|The page title (web) or screen name (app) on which the event was logged.
The Realtime Data API can create reports on User scoped Custom Dimensions. See
Custom user properties to learn
more about custom dimensions. Custom dimensions are specified in an API report
request by the dimension's parameter name and scope. For example, include
"customUser:last_level" in a Data API request to create a report for the
User-scoped Custom Dimension with parameter name
"last_level". This API
request will fail if the property has not registered this User-scoped Custom
The following are the general syntax for Custom Dimensions. You can query the Metadata API method to list all Custom Dimensions for a Property.
|Generic API Name
|User-scoped Custom Dimension for parameter_name
Event-scoped custom dimensions aren't supported in the Realtime API.
The following metrics can be requested in reports for any property. Specify the
"API Name" in a
name field for
a column of the metric in the report response.
|The number of distinct users who visited your site or app.
|The count of conversion events. Events are marked as conversions at collection time; changes to an event's conversion marking apply going forward. You can mark any event as a conversion in Google Analytics, and some events (i.e. first_open, purchase) are marked as conversions by default. To learn more, see About conversions.
|The count of events.
|The number of app screens or web pages your users viewed. Repeated views of a single page or screen are counted. (screen_view + page_view events).
Event-scoped custom metrics aren't supported in the Realtime API.