Metrics allow Acquia Journey to perform closed-loop journey analytics, helping you identify the marketing efforts and content that contributed to a user selecting your product or brand. Metrics are defined and associated with steps in theJourney Mapper, and they are incremented by a graph when certain nodes are executed. (Read Creating a Journey Map to learn how to create a new map.)

Metrics are associated with steps in journey maps, where you will develop the customer journey, but they are updated by nodes in graphs, where the customer journey logic is executed. Metrics can be created and associated with any step in the Journey Map editor or graph. Acquia Journey supports the following types of metrics:

• Basic - Increments a counter whenever a node has been executed
• Compound - Performs a calculation that returns a percentage or decimal based on your defined numerator and denominator
• Default - Increments counters on a graph with a listener for each start and completion of the graph respectively

## Types of Metrics¶

There are three types of metrics: default, basic, and compound.

### Default metrics¶

Default metrics are displayed unless you configure another metric instead. Each metric has a name, a type, an optional goal and description. Whenever a graph is deployed, Acquia Journey creates two metrics for that graph: one to record the number of times the graph is started, and another to record successful completions of the graph. These metrics are useful for finding the number of times that a graph has been run, how many times it ran successfully, and how many times it incurred an error.

### Basic metrics¶

A basic metric is a simple tally that increases by one each time a specific node in a graph has been run, or a deployable graph has started and ended. You define these metrics in the graph, and they can be of two types: numeric or monetary. Monetary metrics allow the selection of the currency — Dollar (\$), Pound (£) and Euro (€) — and the increment value.

### Compound metrics¶

A compound metric will calculate a percentage, ratio, or rate between two metrics, usually between a numerator and a denominator. Compound metrics use a qualified metric, displayed on the left side, and a total metric, displayed on the right side, to support four types of methods for calculations: percentage, rate, weighted index, and advanced.

With the exception of the percentage method, the outputs of all methods will result in a decimal that ranges from 0.0 to 1.0, while the percentage method will return a value between 0% to 100%. The four methods for calculating compound metrics are described as follows:

Method Formula Example
Percentage Qualified Metrics (QM) divided by Total Metrics (TM) Calculating the percentage of customers that received Offer A (QM) out of all possible offers (TM)
QM / TM = X%
Rate Qualified Metrics divided by Total Metrics Calculating the rate at which customers received Offer A (QM) out of all possible offers (TM)
QM / TM = 0.X
Weighted Index Qualified Metrics multiplied by their weight and then divided by Total Metrics multiplied by their weight Calculating the rate after assigning a weighted value to each of the metrics to evaluate price of marketing spend on customers
((QM1 * 0.3) + (QM2 * 0.4)) / (TM * 1)
Advanced A freeform formula that you can use to write your own formulas that utilize basic math symbols and various basic functions such as random, max, and min. Acquia Journey uses the JavaScript Expression Evaluator npm module. For information on the expression syntax, view that project’s documentation.

After creating a metric, Acquia Journey will display the metric as a tile in the Associated Metrics list. Up to four favorite metrics will be displayed on a project’s tile on the Acquia Journey project page, but all metrics are displayed by clicking the metrics button on the project’s tile.

A metric’s tile has two active areas:

• Top left - clicking the star will mark this metric as a favorite
• Bottom right - clicking this link will disassociate this metric from the selected project’s tile

If a metric is defined with a goal, a percentage of the goal achieved is displayed, and the metric tile will be colored in red, orange or green depending on its completion level.

## Accessing metrics¶

To access metrics for a project from the Acquia Journey home screen, perform the following actions:

2. On the Home Screen, identify the project you want to customize.
3. In the project’s tile, click the View All Metrics icon ( ).

From this screen, you can add a new metric by clicking the plus icon ( ), and selecting whether you want to create a Basic or Compound metric.

Still need assistance? Contact Acquia Support