CodeFaeries Views Metrics provides comprehensive view tracking for any post type including posts, pages, WooCommerce products, and custom post types. Built with clean, modern code architecture and extensive customization options.
Works with or without WooCommerce - This plugin is fully functional for any WordPress site, whether you use WooCommerce or not. WooCommerce integration is completely optional and provides bonus features when available.
Key Features
- Universal Tracking - Works with posts, pages, WooCommerce products, and any custom post type
- Dashboard Widget - At-a-glance statistics with interactive chart on WordPress dashboard
- Gutenberg Blocks - Post Views and Most Viewed Posts blocks for the block editor
- Most Viewed Posts Widget - Sidebar widget to display popular content
- Smart Exclusions - Exclude crawlers, AI bots, logged-in users, guests, specific roles, categories, or individual posts
- Flexible Display - Show counters before content, after content, or manually via shortcode with customizable text
- Role-Based Visibility - Control which user roles can see view counters
- Role-Based Counting - Exclude specific roles from being counted (admins and shop managers by default)
- Performance Optimized - Multiple tracking methods (PHP, JavaScript, REST API) including async modes for cached sites
- WooCommerce Integration - Track and display view counts on product pages
- Quick/Bulk Edit - Manually adjust view counts directly from admin lists
- Import Tool - Migrate view data from WP-PostViews or other plugins
- GDPR Compliant - IP anonymization options and privacy policy snippet
- Developer Friendly - Clean, well-documented code with filters and hooks
- Admin Integration - View counts in post/product listing pages with sorting
- Real-Time Statistics - Dashboard showing total, today, yesterday, weekly, and monthly views
1.0.13
Fixes the Post Views block, which showed the all-time total under the words "this week" when left at its default settings.
1.0.12
Fixes the layout of the Views Metrics blocks in the editor and on the site, and the dashboard chart that showed the rest of the current month as zero views. Requires WordPress 5.6 or later.
1.0.10
Fixes the links to Views Metrics Pro, which led to a missing page. Tested with WordPress 7.1.
1.0.9
Maintenance release published alongside Views Metrics Pro 1.0.9. No change to features or settings.
1.0.8
Maintenance release published alongside Views Metrics Pro 1.0.8. No change to features or settings.
1.0.7
Restores the blocks, the Most Viewed widget, the admin bar stats and the post-list views chart, and removes unused usage statistics code. Media attachment pages are no longer tracked by default.
1.0.5
Restores the blocks, the Most Viewed widget, the admin bar stats and the post-list views chart. Media attachment pages are no longer tracked by default.
1.0.3
Fixes a settings-page PHP notice on sites without WooCommerce and corrects the tracking method help text.
1.0.2
Recommended update — minimum PHP lowered to 7.3 (runs on more hosts) and Plugin Check compliance.
1.0.0
Improved PHPCS compliance and WordPress Plugin Check compatibility. Recommended update for all users.
1.0.13 - 2026-10-08
- Fixed: the Post Views block and the views counter shortcode no longer show a count for one period under the wording of another. Without a text of their own, they now say "Viewed 647 times" for all time instead of "Viewed 647 times this week".
1.0.12 - 2026-10-08
- Compatibility: requires WordPress 5.6 or later. The plugin already relied on functions missing from earlier versions.
- Fixed: in the block editor, the Post Views block sits in the content column like the other blocks instead of against the left edge.
- Fixed: the Post Views and Most Viewed Posts blocks now apply their alignment, HTML anchor and additional CSS class on the site.
- Fixed: the Views Trend chart of the dashboard widget no longer draws the remaining days of the current month as zero views.
- Fixed: the "Anonymized" choice of the IP address storage setting is no longer cut off.
1.0.10 - 2026-10-06
- Fixed: the "Visit plugin site" link, the "Views Metrics Pro" link in the help tab and the "Upgrade to Pro" button of the cache warning now open the Views Metrics product page; the last two led to a missing page.
- Compatibility: tested with WordPress 7.1.
1.0.9 - 2026-10-05
- Improved: the bundled admin toolkit is updated to its latest release. No change to features or settings.
1.0.8 - 2026-10-02
- Improved: the bundled admin toolkit is updated to its latest release. No change to features or settings.
1.0.7 - 2026-10-02
- Improved: the plugin no longer ships the usage statistics code of its shared admin toolkit; that code was never active in this edition.
- Improved: the bundled admin toolkit is now a published release instead of a development snapshot.
- Includes the 1.0.5 fixes below, which were not published on WordPress.org.
1.0.5 - 2026-10-01
- Fixed: the "Post Views" and "Most Viewed Posts" blocks, the "Most Viewed" widget and the admin bar quick stats were not loaded; they are available again.
- Fixed: the views chart opened from the post list now draws instead of staying on its loading spinner.
- Fixed: the dashboard widget chart no longer stays on its loading spinner.
- Fixed: "Top Posts This Month" skips deleted posts and shows a message when there is nothing to list.
- Fixed: the "Total" label in the post views chart window is readable.
- Fixed: settings reserved for the Pro edition are no longer changed by saving or resetting settings in the free edition.
- Fixed: with the JavaScript or REST tracking method, a content blocker could block the tracking script because of its file name, and those views were not counted.
- Improved: the tracking script is no longer loaded when the PHP tracking method is used, since it is not needed there.
- Changed: media attachment pages are no longer tracked by default. The settings page never offered them, and saving the General tab already turned them off.
1.0.3 - 2026-06-16
- Fixed: a PHP notice on the settings page on sites without WooCommerce — the searchable dropdowns now load their own library instead of relying on WooCommerce.
- Fixed: the tracking method description was cut off and now explains which method to use with a caching plugin.
1.0.2 - 2026-05-11
- Compatibility: minimum PHP requirement lowered to 7.3 — the plugin now runs on a wider range of hosts.
- Code quality: additional WordPress Plugin Check findings resolved.
- Changed: shortcode renamed from
[cf-views] to [cfvm_views_counter].
1.0.1
- Fixed: stability fixes at plugin startup — internal services now initialize reliably alongside the shared toolkit.
- Fixed: cleanup cron now scheduled correctly on activation; admin bar caches invalidated when needed.
- Fixed: Fast AJAX bootstrap and multisite hooks hardened; admin code cleanup.
1.0.0
- Code quality: passes WordPress Plugin Check and PHPCS WordPress Coding Standards cleanly.
- Improved: input sanitization and output escaping reviewed across the codebase.
- Improved: error logging now gated behind
WP_DEBUG (no log noise in production).
0.0.3
- New: Dashboard widget with an interactive chart and statistics.
- New: Gutenberg blocks "Post Views" and "Most Viewed Posts".
- New: "Most Viewed Posts" sidebar widget.
- New: Quick Edit and Bulk Edit support for view counts.
- New: import tool for migrating from WP-PostViews and similar plugins.
- New: IP anonymization modes (full, anonymized, disabled) and a privacy-policy snippet generator.
- New: sortable Views column in admin post lists.
- Improved: admin UI with modern pill-style tabs.
0.0.2
- Changed: shortcode renamed from
[post-views] to [cf-views].
- New: shortcode attributes —
period, text, hide_zero, class.
- New: "Exclude roles from count" setting.
- New: WooCommerce "Most viewed" sort option.
- Improved: default exclusions now cover crawlers, AI bots, administrators, and shop managers.
- Improved: counter hides automatically when count is zero.
- Fixed: Fast AJAX tracking mode.
0.0.1
First release. Tracks views across post types with bot detection, role-based visibility, shortcodes, a statistics dashboard, and WooCommerce integration.