get_all_ga_metrics {metricminer} | R Documentation |
Get all metrics for all properties associated with an account
Description
This is a function to gets metrics and dimensions for all properties associated with an account
Usage
get_all_ga_metrics(account_id = NULL, token = NULL, dataformat = "dataframe")
Arguments
account_id |
the account id that you'd like to retrieve stats for all properties associated with it. |
token |
credentials for access to Google using OAuth. 'authorize("google")' |
dataformat |
How would you like the data returned to you? Default is a "dataframe" but if you'd like to see the original API list result, put "raw". |
Value
Either a list of dataframes where 'metrics', 'dimensions' and 'link clicks' are reported. But if 'format' is set to "raw" then the original raw API results will be returned
A list of metrics, dimensions, and link clicks for a for all properties underneath a Google Analytics account. It can be returned as a curated data.frame or the raw version which is the API response as a list
Examples
## Not run:
authorize("google")
accounts <- get_ga_user()
some_stats_list <- get_all_ga_metrics(property_ids = property_ids)
## End(Not run)