Calculates multiple API calls to avoid sampling
1 2 3 | anti_sample(anti_sample_batches, viewId, date_range, metrics, dimensions,
dim_filters, met_filters, filtersExpression, order, segments, pivots, cohorts,
metricFormat, histogramBuckets)
|
viewId |
viewId of data to get. |
date_range |
character or date vector of format |
metrics |
Metric to fetch. Supports calculated metrics. |
dimensions |
Dimensions to fetch. |
dim_filters |
A filter_clause_ga4 wrapping dim_filter |
met_filters |
A filter_clause_ga4 wrapping met_filter |
filtersExpression |
A v3 API style simple filter string. Not used with other filters. |
order |
An order_type object |
segments |
List of segments as created by segment_ga4 |
pivots |
Pivots of the data as created by pivot_ga4 |
cohorts |
Cohorts created by make_cohort_group |
metricFormat |
If supplying calculated metrics, specify the metric type |
histogramBuckets |
For numeric dimensions such as hour, a list of buckets of data. See details in make_ga_4_req |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.