| 开发者 | pushaune |
|---|---|
| 更新时间 | 2026年9月4日 03:20 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
nb_hits)nb_visits)/wp-content/plugins/.No. It only displays selected Matomo statistics inside WordPress admin lists. Matomo remains the analytics platform.
Only in local mode. If your website is tracked by a self-hosted Matomo or Matomo Cloud, choose the remote source in Settings > Matomo Columns and enter the Matomo URL, site ID, and an auth token. In that case the Matomo for WordPress plugin is not needed.
The site ID is listed in Matomo under Administration > Websites > Manage. Auth tokens are created under Administration > Personal > Security > Auth tokens. Create a dedicated token for this plugin.
No. It reads data from Matomo. It does not create a second view counter inside WordPress.
The plugin supports page views (nb_hits) and unique views (nb_visits).
Yes. Open the Screen Options panel at the top of any list and pick a period, then click Apply. Posts, pages and each custom post type keep their own period, and the setting belongs to your WordPress account: it does not change what other users see. The period chosen in the plugin settings stays the default, used until you pick something else in a list. The dashboard widget keeps its own period as well.
To the Matomo Pages report, narrowed down to that single page with a segment on its URL — including the old URLs whose views are added to the count, so the report and the column agree.
If your Matomo instance does not process segments on the fly (a common setting on large installations), the report may take a moment to appear the first time, or show up empty until Matomo has processed the segment. That is a Matomo setting, not a plugin limitation.
Developers can change the target with the admivico_report_url filter, which receives the post ID and the segment.
Yes. The Matomo views column is sortable. When sorting by views, the plugin synchronizes a private post meta value for the displayed post type, then WordPress sorts the list using that numeric value. That value is rebuilt whenever it no longer matches the period of the list being sorted, so sorting stays correct when two users work with different periods.
Yes. It works with custom post types that are visible in the WordPress admin.
No, but Matomo stores statistics per URL, so views recorded on the old URL are not automatically attributed to the new one. The plugin handles this in two ways:
* as a wildcard (for example /blog/* to /*). The views of the old URLs are then added to the current counts.admivico_url_candidates filter.
The Matomo statistics are fetched in the background the first time a list is displayed (or after the cache expires), so the page itself loads instantly. The counts appear as soon as Matomo responds — usually within a second or two.
The selected page may have no Matomo data for the chosen period, or Matomo may not be configured correctly. You can also try clearing the plugin cache from Settings > Matomo Columns, and use the Test connection button in the Matomo source tab to check your configuration: it shows the exact error message returned by Matomo.
By default, the cache lasts one hour. You can change the cache duration in the plugin settings. You can also clear the cache manually from Settings > Matomo Columns.
admivico_report_url filter.admivico_url_candidates filter to provide additional historical URLs per post.