aw_get_metrics | R Documentation |
Get a data frame with all of the standard (non-calculated) metrics (measures) in the report suite.
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
)
rsid |
Adobe report suite ID (RSID). If an environment variable called |
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. |
expansion |
Additional metrics metadata to include in the results: |
company_id |
Company ID. If an environment variable called |
debug |
Include the output and input of the api call in the console for debugging. Default is FALSE |
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.
A data frame of metrics (excluding calculated metrics) and their meta data.
aw_get_calculatedmetrics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.