跳到内容

Search Analytics for WP – Site Search Tracking

v1.6.3

Cornel Raiu · 2018年3月2日 上架

See what visitors search for on your site and which searches come up empty. Popular search terms and statistics, stored in your own database.

正在使用
3,000+
评分
5.0 / 5
累计下载
5.5 万
最近更新
2026年11月21日
30 条评价需要 WordPress 4.7+已测试到 7.1.5PHP 5.6+

贡献者

截图

Search statistics with time, results and grouping filters
Search statistics with time, results and grouping filters
The searches that returned no results
The searches that returned no results
Charts comparing two periods, and the times of the week when people search
Charts comparing two periods, and the times of the week when people search
Single term statistics view with results grouped by date
Single term statistics view with results grouped by date
Dashboard widget
Dashboard widget
The Popular Searches and Latest Searches blocks in the editor
The Popular Searches and Latest Searches blocks in the editor
Settings page
Settings page

Search Analytics for WP logs what visitors search for on your WordPress site and how many results each search returned. You see which search terms are popular and which came up empty. Everything is stored in your own database.

Your site search shows what people came for, in their words rather than yours. Say “opening hours” got 41 searches last month and zero results every time. Either the page is missing or it says “business hours”. The no-results filter lists every gap like that.

What your search log tells you

What to write next. Searches with no results are topics people expect to find on your site. Sorted by number of searches, they become a to-do list with the most requested topics on top. On a blog, that’s your next post. In a help center, it’s the answer people keep missing.

Which pages people can’t find. Sometimes the page exists and visitors still search for it. If “contact” or “shipping” shows up week after week, the link is probably too hard to spot.

In a WooCommerce shop, every product search is saved with the number of products it found. A run of searches for a brand or size you don’t carry is demand you’d otherwise never hear about.

Often the lesson is simply vocabulary. Visitors type “couch” when your store says “sofa”. Their search terms are the words to use in your titles and menus.

Key features

  • Records searches from your normal WordPress search, including theme search boxes and the WooCommerce product search.
  • Also covers wpForo forum searches and custom URL parameters you add, such as Toolset’s wpv_post_search, including REST API requests that use them.
  • AJAX live search can be recorded too, with one line of code (see For developers).
  • Every search term in a sortable table, with the number of searches, average results and last search date.
  • Time filters from the last 24 hours to all time, or any date range you pick.
  • A no-results filter that shows only the searches that found nothing.
  • Each term’s history by date or by hour, plus a “No Group” view that lists every search in order.
  • A daily chart compared with the previous period, and a “When people search” chart with the busiest days and times.
  • A dashboard widget with the last 7 days: searches compared with the week before, trending terms, searches with no results and your busiest day and time.
  • CSV export of whatever view you’re on.
  • Keep your own searches out, even after you log out. You can also skip repeat searches, listed IP addresses, very short terms and words you block.
  • Leaves out searches made by bots, and junk searches that contain a link or HTML.
  • Optional country and logged-in user for each search, both off by default.
  • Popular Searches and Latest Searches blocks to show what people search for on your site, with a live preview in the editor. Both are also available as shortcodes.
  • Separate role access for viewing the statistics and changing the settings.
  • Works on multisite, with separate data for each site, and is translation-ready.

Getting started

Recording starts as soon as you activate the plugin. Run a search on your site, then open Search Analytics in the admin menu to see it.

One setting is worth changing on day one: exclude your own role, so your test searches don’t count. The FAQ below covers the rest, from WooCommerce to live search.

Privacy

There’s no account to create and no API key. No search data is sent anywhere unless you turn on “Save Search Country”, which is off by default. It sends visitors’ IP addresses to ip-api.com or ip2c.org to look up the country (see External services below).

When you deactivate the plugin, it asks why. Answering is optional, and only an answer you choose to send leaves your site.

IP addresses are never saved with the searches, and no cookies are set unless you use one of two optional settings. The FAQ lists exactly what is stored.

For developers

To record searches from your own code, such as an AJAX live search, call mwtsa_process_search_term( $term, $result_count ). It runs the same exclusion checks as a normal search and returns whether the search was saved.

Filters: mwtsa_do_not_save_search, mwtsa_exclude_term, mwtsa_extra_exclude_conditions, mwtsa_result_count, mwtsa_export_filename, mwtsa_term_search_link, mwtsa_is_bot, mwtsa_is_junk_term, mwtsa_live_search_merge_seconds, plus filters on the shortcode output, which apply to the blocks too. Actions: mwtsa_after_term_save, mwtsa_after_history_term_save. The code is on GitHub.

Support

Questions and ideas are welcome in the support forum. If the plugin is useful to you, a review helps other site owners find it.

External services

The plugin connects to outside services for two things only: the country lookup, which is off by default, and the answer to the optional question it asks when you deactivate it. Both are described below.

Search Analytics for WP can look up the country each search was made from. This only happens when the “Save Search Country” setting is enabled; it is off by default.

When a search is recorded, the visitor’s IP address is sent to the service chosen in the “Country lookup service” setting. Each IP address is looked up at most once per day, and private or reserved addresses are never sent.

IP-API (ip-api.com)

The default service. The IP address is sent over HTTP, as the free service does not support HTTPS. The free service only allows non-commercial use and 45 requests per minute.

Terms of service and privacy policy: https://ip-api.com/docs/legal

ip2c.org

The IP address is sent over HTTPS. The service is free (LGPL) and allows around 10 requests per second. It only supports IPv4 addresses, so searches from IPv6 addresses are saved without a country.

Service terms and privacy policy: https://about.ip2c.org

Feedback when deactivating (wpsearchanalytics.com)

When you click Deactivate on the Plugins screen, the plugin asks why. Nothing is sent unless you pick an answer and click “Send & Deactivate”. Then your answer, any text you typed, the plugin, WordPress and PHP versions and the site language are sent over HTTPS to wpsearchanalytics.com, the plugin’s website. Your site address, your email address and your search data are not sent. Answers are kept for a year and used to decide what to fix and build next.

Terms: https://wpsearchanalytics.com/terms

Privacy policy: https://wpsearchanalytics.com/privacy

Credits

Country flags on Windows use the “Twemoji Country Flags” font from country-flag-emoji-polyfill by TalkJS (MIT license). The flag artwork comes from Twemoji and is licensed under CC-BY 4.0. The font and polyfill are bundled with the plugin and loaded from your own site.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums