Get a data frame with all of the standard (non-calculated) metrics (measures) in the report suite.
Usage
aw_get_metrics(
rsid = Sys.getenv("AW_REPORTSUITE_ID"),
locale = "en_US",
segmentable = "NULL",
expansion = NULL,
company_id = Sys.getenv("AW_COMPANY_ID"),
debug = FALSE
)Arguments
- rsid
Adobe report suite ID (RSID). If an environment variable called
AW_REPORTSUITE_IDexists in.Renvironor elsewhere and norsidargument is provided, then theAW_REPORTSUITE_IDvalue will be used. Useaw_get_reportsuitesto get a list of availablersidvalues.- locale
The locale that system-named metrics should be returned in. Non-localized values will be returned for title, name, description, etc. if a localized value is not available.
- segmentable
Boolean that determines whether or not to include metrics that can be used in segments.
NULL(the default) andFALSEreturn all metrics (not just the non-segmentable ones). Examples of metrics that cannot be used in segments arebounces,bounce rate,entries, andvisitors.- expansion
Additional metrics metadata to include in the results:
tags,allowedForReporting, andcategories. This argument takes a single value (e.g.,expansion = "tags") or a vector of values (e.g.,expansion = c("tags", "categories")).- company_id
Company ID. If an environment variable called
AW_COMPANY_IDexists in.Renvironor elsewhere and nocompany_idargument is provided, then theAW_COMPANY_IDvalue will be used. Useget_meto get a list of availablecompany_idvalues.- debug
Include the output and input of the api call in the console for debugging. Default is FALSE
Details
This function is commonly used to get the correct ID for a specific metric or metrics that will be used in other function calls. The results returned are:
All of the "out of the box" metrics like visits, page views, visitors, orders, revenue, bounce rate, etc.
All of the enabled events that are configured in the report suite.
An instances metric for each enabled eVar.
This function does not return calculated metrics.
