Skip to main content

How do I test my Data Manager rules ?

There are two ways to test the result of Data Manager rules: entering parameters manually or importing a hit directly into the panel.

Test by manual input

The manual input test is based on parameters that you can write directly into the interface depending on what you want to test: hit parameters, URL, site ID, User-Agent.

image-20250218-102552.png

For example, to test if the page name returns correctly:

  1. I enter a value in the "page" parameter

  2. I run the test.

  3. The result given by the processing of the parameter is rightfully MyPage

It is possible to specify several parameters for a single test. As well as adding additional parameters:

image-20250218-102743.png

Here, we added the parameter "user_id" with the "+ Add parameter" button.

Hit test

It is also possible to test a hit directly from the "Test hit" panel. 

You can create hits from scratch by following this documentation:

Here we created a hit with the Piano Analytics SDK method. We tested the page.display event with the "page" property and the value "Mypage". The result obtained by pressing "Test" is "Mypage".

image-20250218-102815.png

You can also copy a hit from the developer console on your site to test it in the interface.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.