Data Validation

Data Validation

Validating your property values with regular expressions

This feature allows you to specify a regular expression pattern (Regex) to which all the values seen for a property must conform.

To write a regular expression for a property, click on its type field (e.g. Number or String) and select Regex from the drop-down menu.

image

The following panel will appear. Click on Pick a Regular Expression.

image

If this is the first time you create a regular expression, select Create New Regex. Otherwise, you can reuse a regular expression from another property.

image

In the next panel, you can name your new regular expression (e.g.: percent scrolled) and write the corresponding pattern. You can also insert test values to confirm that your regular expression pattern will work as you expect. Once you are happy with it, click on Create New Regex.

image

The new Regex will now appear in the pick-up menu. Select it and click on Apply to this property.

image
image

From this point on, Trackingplan will be checking that all the values for these properties match the specified regular expression.

If a value does not conform with the pattern you specify, the dashboard will show you a warning.

← Previous

Environments
Environments