cm_formula | R Documentation |
Returns a JSON string formula to be used to build a calculated (derived) metric.
cm_formula(
operator = c("divide", "multiply", "subtract", "add"),
metrics = c("visits", "singlepagevisits"),
seg_filters = NA,
rsid = Sys.getenv("AW_REPORTSUITE_ID"),
company_id = Sys.getenv("AW_COMPANY_ID")
)
operator |
Formula operators are divide (default), multiply, subtract, or add. |
metrics |
The one or two metrics in a formula calculation |
seg_filters |
A vector of segment filters to be added to a metric in the formula |
rsid |
Adobe report suite ID (RSID). If an environment variable called
|
company_id |
Company ID. If an environment variable called |
A JSON string formula to be used in a calculated metric
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.