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.
For example, to test if the page name returns correctly:
- I enter a variable in the "page" parameter
- I run the test.
- 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:
Here, we added the parameter "user_id" with the " + Add" button.
It is also possible to test a hit directly from the "Test hit" panel.
You can create hits from scratch by following this documentation:
- With the Piano Analytics SDK: https://developers.atinternet-solutions.com/piano-analytics/data-collection/how-to-send-events/collection-api
- With the Smarttag library: https://developers.atinternet-solutions.com/general-en/craft-your-hit/
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".
You can also copy a hit from the developer console on your site to test it in the interface.