Reporting Metric > Count

Overview

The Metric: Count Action is one of the ways to gather data on how Apps are being used. When the Action is triggered, it increases a named counter that can be seen in the Reports dashboard. This can be used to track statistics such as how many times customers are escalating cases to an agent.

organizing info

Use Cases

  • Count the total number of products ordered by customers over time. This could be accomplished by running the Count Action with the Field value set to the number of items in the customer's cart when they check out.
  • Count the number of times each endpoint in an API is used. This could be accomplished by running the Count Action in the API's Journey with a Metric Key named after the endpoint, and a Field value of 1.

Action Properties

Metric Key

The key that identifies this counter. Each time the Action runs, it will add the value under Field to the counter named by this key.

Field

The numeric value that will be added to the counter. This can be any number, or an Airscript expression that returns a number. Note that this Field can be a number greater than 1, which will increase the counter faster.