Atribute: action
Richard Cowin edited this page Nov 28, 2023
·
4 revisions
The action
attribute allows a metric to be recorded as an event or audience attribute. The following are the valid values:
- "bind": Specifies that a metric is to be bound to an audience attribute. This is the default value.
- "event": Specifies that a metric is to be recorded as an event
In either of these cases, the tag
attribute will specify the attribute to be bound to or the event id.
{
"source": "expression",
"key": "window.data.productName",
"action": "bind",
"tag": "product.name"
}
{
"source": "dom",
"key": "button",
"action": "event",
"on": "click",
"tag": "button.clicked"
}