Get a report with custom Google Analytics metrics within a date range. Dimensions and filters are also available.
The unique view profile ID. For example:
LIST_ACCOUNTS_ANALYTICS_GOOGLE() to find the ID.
Date range, i.e.:
"[2010-01-01;2019-01-01]". See how to automate date ranges here.
One or more metrics. For example:
"ga:sessions,ga:bounces". Supports up to 10 metrics. See all metrics available in GA's documentation.
The relative path of the page to filter the metrics. For example:
One or more dimensions to query. For example:
"ga:browser,ga:city". Supports up to 7 dimensions. See all metrics available in GA's documentation.
One or more metrics and dimensions indicating the sorting order and its direction. For example:
"-ga:country" (descending order).
One or more metrics or dimensions to filter the returned data, followed by the filter expression. For example:
"ga:country==United States;ga:browser==Firefox". For an OR condition, separate the statements with a ",". For an AND, use ";".
The ID of a built-in or custom Google Analytics segment (e.g.
"gaid::-2") or specifying a segment using
"users::condition::ga:browser==Chrome" to select users who used Chrome browser in at least one of their sessions or
"sessions::condition::ga:browser==Chrome" to select sessions where the Chrome browser was used).
You can find more details on how the dimensions, filters, sorting and segments here