if (FALSE) {
#' # send up to 4 date ranges
multi_date <- ga_data(
206670707,
metrics = c("activeUsers","sessions"),
dimensions = c("date","city","dayOfWeek"),
date_range = c("2020-03-31", "2020-04-27", "2020-04-30", "2020-05-27"),
dim_filters = ga_data_filter("city"=="Copenhagen"),
limit = 100
)
# metric aggregations for each date range
ga_data_aggregations(multi_date, type = "all")
# specify type
ga_data_aggregations(multi_date, type = "maximums")
}
Run the code above in your browser using DataLab