Get current dimensions and metrics available in GA API.
ga_meta(
version = c("universal", "data"),
propertyId = NULL,
cached = TRUE,
no_api = FALSE
)
The Google Analytics API metadata to fetch - "universal" for Universal and earlier versions, "data" for Google Analytics 4
If requesting from Google Analytics 4, pass the propertyId to get metadata specific to that property. Leaving it NULL or 0 will return universal metadata
Whether to use a cached version or to use the API to fetch the results again
Don't call the API, just return googleAnalyticsR::meta4
dataframe of dimensions and metrics available to use
if (FALSE) {
# universal analytics
ga_meta()
# Google Analytics 4 metadata from the Data API
ga_meta("data")
# Google Analytics 4 metadata for a particular Web Property
ga_meta("data", propertyId = 206670707)
}