Description Usage Arguments Value histograms
View source: R/ga_v4_objects.R
Make a dimension object
1 | dimension_ga4(vector, histogramBuckets = NULL)
|
vector |
A character vector of dimension names |
histogramBuckets |
Optional named list of histogram buckets vectors |
a list suitable for parsing in req
If supplying histogramBuckets, the name will be used to create the buckets
e.g. dimensions = c("source", "medium")
histogramBuckets = list(source = c(1,5,10,20,200),
medium = c(0,7,14,21,999))
Warning: only makes sense to apply to dimensions that are numeric e.g. ga:hour
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.