Description Usage Arguments Value References See Also Examples
Get the Anaytics data from Core Reporting API for a view (profile)
1 2 3 4 |
profile.id |
integer or character. Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID. Can be obtained using the |
start.date |
character. Start date for fetching Analytics data. Request can specify the start date formatted as YYYY-MM-DD or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo. |
end.date |
character. End date for fetching Analytics data. Request can specify the end date formatted as YYYY-MM-DD or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is yesterday. |
metrics |
character. A comma-separated list of Analytics metrics. E.g., |
dimensions |
character. A comma-separated list of Analytics dimensions. E.g., |
sort |
character. A comma-separated list of dimensions or metrics that determine the sort order for Analytics data. |
filters |
character. A comma-separated list of dimension or metric filters to be applied to Analytics data. |
segment |
character. An Analytics segment to be applied to data. Can be obtained using the |
sampling.level |
character. The desired sampling level. Allowed values: "default", "faster", "higher_precision". |
start.index |
integer. An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. |
max.results |
integer. The maximum number of entries to include in this feed. |
token |
|
A data frame including the Analytics data for a view (profile). Addition information about profile and request query stored in the attributes.
Core Reporting API - Dimensions & Metrics Reference
Core Reporting API - Query Parameter Details
Core Reporting API - Common Queries
Google Analytics Demos & Tools - Query Explorer
Other Reporting API: firstdate
;
get_mcf
; get_realtime
,
get_rt
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.