Efficiency reports
With detailed search reports, you can assess how relevant the search results are to your customers. Based on this information, you will be able to fine-tune your search configuration to ensure that your customers are directed to the products they need.
Our extension collects statistical data and stores it in the mst_search_report_log table. Starting from version 2.2.33, this data will be kept for 365 days by default, after which outdated data will be deleted via cron. If necessary, you can manually truncate it. This will only affect the statistics data in the reports.
Each search is recorded together with the store view it was performed on. Both reports provide a Store dimension and quick filter, so you can break the data down by store view or narrow it to a single one. Searches that were logged before this feature was introduced are not attributed to a store view and appear as N/A.
Search reports
Open System -> Search Management -> Reports. The dashboard shows key figures for the selected period: Searches, Searchers, Unique queries, No results, Click-through, Corrected, Search orders, Search revenue, Search conversion, Revenue per search, Revenue from search, Search order value, Searches per searcher, Refined and Dead ends, with automatic insights and a trend chart.
Click a figure to open its list:
- Top Queries
- Queries Without Results: with the likely reason and shortcuts to add a synonym or a redirect
- Queries Without Clicks
- Spelling Corrections and Fallbacks
- Search Orders
Each list can be exported to CSV. Orders are credited to the customer's last search within the attribution window, see Search Reports settings below. Order data is collected from the moment you upgrade to 2.9.3; older search history is kept.
Search reports settings
Go to Stores -> Configuration -> Mirasvit Extensions -> Search Ultimate -> Search Reports.
- Attribution Window, Hours: an order counts as a search order when the customer searched at most this many hours before placing it. The last search wins; a search where the customer clicked a result is preferred. Default:
24.
Slow database backups and the mst_search_report_log table
On stores with many searches, the mst_search_report_log table can grow large. You may see a long-running query like this in the MySQL process list or slow query log:
SELECT /*!40001 SQL_NO_CACHE */ * FROM `mst_search_report_log`
This query is not sent by Magento or by the extension. The /*!40001 SQL_NO_CACHE */ part shows that it comes from mysqldump, which reads the whole table during a database backup.
The table holds only search statistics for the reports on this page. The search itself does not use it. To make backups faster, use one of the following options:
- Exclude the table from the backup: add
--ignore-table=<db_name>.mst_search_report_logto themysqldumpcommand. A restored database will have no search report data, but the search works as usual. - Avoid locking tables during the backup: add
--single-transactionto themysqldumpcommand. The backup still reads the table, but it does not block the store while it runs. - Clear old statistics: truncate the
mst_search_report_logtable, as described in the tip at the top of this page.
If you do not use search reports at all, you can disable only the reports module. The search, autocomplete, and other features keep working:
bin/magento module:disable Mirasvit_SearchReport
bin/magento setup:upgrade
After that, searches are no longer logged to the mst_search_report_log table, and System -> Search Management -> Reports is not available.