Any query returning nbHits:0
, will appear in your Searches Without Results analytics, regardless of whether it results in a redirect or not. If you'd like these queries to be excluded from your analytics, you will need to apply the analytics:false
parameter at query time.
If you wish to exclude all empty queries from your analytics, you can create custom logic and set analytics:false
when the query is empty.
In the case of redirects, if you would like to only remove those queries from Searches Without Results, there are a few possible approaches:
- For redirects created in the Visual Editor: Create a placeholder product and pin it in every redirect rule so it would retrieve one result and would get out of the list of Searches without Results .
-
For redirects created in the Manual Editor: Add a query parameter
analytics:false
in the rule consequences for so this query will be ignored by analytics
Useful Guides:
- How to Handle Redirects: https://support.algolia.com/hc/en-us/articles/28640379169809-Why-are-my-redirects-not-working-How-to-handle-redirects
- Relative URLs in Redirects: https://support.algolia.com/hc/en-us/articles/8307763870993-Relative-URLs-in-redirects
- Why is 'Redirect' not available as a rule option on my index? https://support.algolia.com/hc/en-us/articles/18002535180433-Why-is-Redirect-not-available-as-a-rule-option-on-my-index