Definition builder

You use the Definition builder to drag and drop dimensions, metrics, segments, and functions to create custom metrics based on container hierarchy logic, rules, and operators. In that construction, you can use standard metrics, Adobe defined metrics, calculated metrics, segments, dimensions and functions. All these components are available from the component panel in the Calculated metric builder. Furthermore, you can use operators and containers in the definition.

Create calculated metric

Only metrics are defined as singular components in the Definition area. All other components are defined as a container, wrapping metrics or other containers. See Containers for more information.

Metrics

To add a metric:

  • Drag and drop an Events Metrics component from the components panel onto Drag and drop metrics, dimensions, dimension items, segments, and/or functions here. You can use the Search in the components bar to search for specific components.

When you use a calculated metric as part of your definition, the calculated metric is expanded.

To modify a metric:

  1. Select Setting in a metric component in the Definition area.
  2. In the popup dialog you can define the type of metric and an attribution model. See Metric type and Attribution.

To delete a metric:

  • Select Close in the metric.

Operators

Operators let you specify the operator between components or containers. Operators appear automatically between

  • two or more metrics in a container,
  • two or more containers in a container,
  • one or more metrics and one or more containers in a container.

You can select:

SymbolOperator
Divide Divide (default)
Close Multiply
Remove Subtract
Add Add

Static number

You can add a static number to your calculated metric definition. To add a static number:

  • Select AddCircle Add from within a container.
  • Select Static number. A static number container appears.
  • Select Click to add a value and type a value.

Containers

You add dimensions, segments and functions as containers to a calculated metric definition. You can also add a generic container. Containers function like a math expression and determine the order of operations. Anything within a container gets processed before the next component or container.

Segment container

You use the concept of a segment container to create a segmented metric. You can construct a segment container using a segment, or using a segment you create from a dimension.

  • To add a segment container from a dimension:

    1. Drag and drop a Dimensions Dimensions component from the components panel onto Drag and drop metrics, dimensions, dimension items, segments, and/or functions here. You can use the Search in the components bar to search for specific components.
    2. In the Create Segment from Dimension popup, define the condition for the segment. Select from the list of operators and select a value or enter a value. For example, Month equals ChevronDown Sep 2024.
    3. Select Done. A segment container is added to the Definition.
  • To add a segment container from a segment, you can use:

    • Drag and drop a Segmentation Segments component from the components panel onto Drag and drop metrics, dimensions, dimension items, segments, and/or functions here. You can use the Search in the components bar to search for specific segments.
      Automatically a segment container is added to the Definition, using the name of the segment.

    • Drag and drop a Segmentation Segment component from the components panel onto a generic container. The container is modified into a segment container.

    • Select AddCircle Add from within a container:

      1. Select Segment. A segment container is added to the Definition.
      2. In the new segment container, select a segment from the Select… drop-down menu.
    TIP
    You can add more than one segment to a container.

    The segments in the container are named after the segment component. For example, Segmentation Web sessions. Select InfoOutline to display a popup with details on the segment. In the popup, select Edit to edit the segment definition.

To remove a segment from a container:

  • Select Close next to the segment name.

See Segmented metrics for more details and examples.