There are currently no analytics provided for Rules. However, there are a few workarounds you can implement to start tracking queries where certain rules are applied.
Using ruleContexts and analyticsTags
- Set a Rule Context as a condition on a rule
- At query time, send this
ruleContexts
in your request, along with an equivalentanalyticsTag
in the query parameters - You can then use the
analyticsTag
in Analytics to segment and analyse searches where the correspondingruleContexts
was triggered - More info on using rule contexts can be found here
Setting query parameter using Manual Rules
- If creating Manual Rules, use the "add query parameter" consequence to add an
analyticsTag
as a query parameter - You can then identify queries where these manual rules by filtering by the
analyticsTag
in Analytics
Use A/B Testing to compare the effectiveness of a rule
- Create a standard replica index of your main index
- Configure the same ranking and sorting settings on both indices while applying the different rules you wish to test on each
- Set your main index as your control index (Variant A) and the replica as Variant B
- More on this in our guide article here