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
ruleContextsin your request, along with an equivalentanalyticsTagin the query parameters - You can then use the
analyticsTagin Analytics to segment and analyse searches where the correspondingruleContextswas 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
analyticsTagas a query parameter - You can then identify queries where these manual rules by filtering by the
analyticsTagin 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