Ending with

Learn how to check if a string ends with a specific suffix.

This operator checks if a string finishes with another string. This test is case-sensitive, so both the letters and their case must match exactly.

Syntax

The basic syntax is:

with /*<name>*/ ending with /*<value>*/

The negation of this operation can be expressed as:

with /*<name>*/ not ending with /*<value>*/

Parameters

These are the supported parameters:

name

The name of the event property to check.

value

The string value to compare against.

Examples

Check if a campaign name ends with a specific term:

user has viewed campaign with name ending with "Pro"
Try in Playground

Or to check the opposite:

user has viewed campaign with name not ending with "Pro"
Try in Playground