Getting started
How to use
Features
Other
Data validation
With Trackingplan, you can be automatically notified whenever your properties or events don’t conform to the values you have specified.
These are the 3 ways you can use to validate your data:
Enums
Enums allow you to specify in advance the values you expect for a property to be notified every time it receives a value that does not conform to your list of predefined constants.
To write Enums for a property, click on its type field and select Enum in the drop-down menu.
If this is the first time you create an Enum, select Create New Enum. Otherwise, you can reuse it, edit it, or clone it from another property and use it on this one.
In the next panel, you can name your new Enum and write the corresponding values. Yet, you can also autocomplete your Enum with the values that have been observed in the last 30 days in this property.
Doing this will automatically show you all the values detected for this property in the last 30 days, but you can also check that all the values are correct and, in case they are not, delete them.
Moreover, you also have the option to ignore cases and diacritics to ensure the server will recognize any possible character or accent variations.
Once you are happy with it, click on Create New Enum.
The new Enum will now appear in the drop-down menu. Select it and click on Use on this property.
All set! From now on, Trackingplan will be checking that all the values in this property match the specified Enum. If it detects a value that is not within this list of predefined constants, Trackingplan will automatically send you a warning. You can always add it to the Enum by editing it, or fix it in case it is an error.
RegEx (Regular expressions)
This feature allows you to specify a regular expression pattern (Regex) to which all the values seen for a property must conform.
The process of setting up Regex for a property is very similar to the one used for Enums.
Firstly, click on its type field and select Regex from the drop-down menu.
The following panel will appear. Click on Pick a Regular Expression.
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.
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.
For Regexes, you can also ignore cases, diacritics, or both to prevent in advance any situation where the server would recognize it as an implementation issue.
The new Regex will now appear in the pick-up menu. Select it and click on Apply to this property.
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 have specified, the dashboard will automatically show you a warning.
Function Validations
This feature allows you to set up any kind of complex validation at track level and will warn you every time any of your properties don’t conform to the function provided to validate an event (e.g: cross-conditions like validating that all products logged in a cart carry a valid product_sku given the page section).
To set up custom validation functions, please contact support@trackingplan.com and we will help.
← Previous
Next →