Linux 软件免费装
Banner图

Admin Views Column for Matomo

开发者 pushaune
更新时间 2026年7月14日 01:42
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

statistics analytics admin columns post views matomo

下载

1.1.0 1.2.0 1.2.1

详情介绍:

Admin Views Column for Matomo adds a Matomo views column to WordPress admin lists. It helps you see how your content performs directly from the WordPress dashboard, without opening Matomo every time you want to check whether a post, page, or custom post type is being read. The plugin can read statistics from two sources: The plugin can display Matomo statistics for: The views column is sortable, so you can quickly find your most viewed or least viewed content. You can also choose the reporting period: The plugin supports two Matomo metrics: To avoid slowing down the WordPress admin, Matomo data is cached with WordPress transients. The cache duration can be changed from the plugin settings page. The settings are organized in three tabs: Matomo source, Settings, and 301 redirects. If your permalinks changed over time, the plugin can keep the historical view counts: old slugs saved by WordPress are matched automatically, and 301 redirect rules can be declared in the settings — either by hand or by importing a CSV file. Requirements This plugin requires a working Matomo installation that is already tracking your website. Two setups are supported: If Matomo is not collecting data, this plugin cannot display statistics. Privacy This plugin does not track visitors by itself. It reads existing statistics from Matomo and displays them in the WordPress admin. In local mode, no data is sent to an external service. In remote mode, the plugin sends API requests (including the configured auth token) to the Matomo server you configured — and to no other service. The token is sent in the request body (POST), so it does not appear in URLs.

安装:

  1. Upload the plugin folder to /wp-content/plugins/.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to Settings > Matomo Columns.
  4. Choose the Matomo source: the local Matomo for WordPress plugin, or a remote Matomo instance (enter its URL, the site ID, and an auth token).
  5. Choose the post types, reporting period, metric, and cache duration.

屏幕截图:

  • Settings tab: content types, reporting period, metric, cache duration, and cache clearing.
  • 301 redirects tab: declare old URL structures with wildcards, import rules from a CSV file, and include old slugs automatically.
  • The sortable Matomo Views column in the WordPress posts list.

升级注意事项:

1.2.1 Redesigned settings screen, and duplicate 301 redirect rules are now merged automatically when saving. No configuration change required. 1.2.0 Tabbed settings page and CSV import for 301 redirect rules. No configuration change required. 1.1.0 Adds support for remote Matomo instances (self-hosted or Matomo Cloud). Existing local setups keep working without any change. 1.0.0 Initial release.

常见问题:

Does this plugin replace Matomo?

No. It only displays selected Matomo statistics inside WordPress admin lists. Matomo remains the analytics platform.

Do I need the Matomo for WordPress plugin?

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.

Where do I find the site ID and auth token for a remote Matomo?

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.

Does the plugin count views itself?

No. It reads data from Matomo. It does not create a second view counter inside WordPress.

Which Matomo metrics are supported?

The plugin supports page views (nb_hits) and unique views (nb_visits).

Can I sort posts by Matomo views?

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.

Does it work with custom post types?

Yes. It works with custom post types that are visible in the WordPress admin.

My permalinks changed (301 redirects). Do I lose the old view counts?

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:

  • When you rename a post slug, WordPress saves the old slug. The plugin automatically adds the views of the old URL to the current count (this can be disabled in the settings).
  • For larger changes (permalink structure, domain migration), declare your 301 redirects in Settings > Matomo Columns: old structure on one side, new structure on the other, with * as a wildcard (for example /blog/* to /*). The views of the old URLs are then added to the current counts.
  • Instead of typing the rules, you can import a CSV file with two columns (old URL, new URL). The file is read in your browser and the rules are added to the table for review before saving.
Developers can also provide additional historical URLs per post with the admivico_url_candidates filter.

Why do I see zero views?

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.

How often are the statistics updated?

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.

更新日志:

1.2.1 1.2.0 1.1.0 1.0.0