sandywp / plugins / post-views-counter

Post Views Counter

4.9 out of 5 stars. 4.9 1,241 reviews

Count and display post views, track site-wide visits, and see what content works – inside WordPress. Fast, easy to use and privacy-first.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v1.8.2 100,000+ installs WP 6.4+ PHP 7.4+

your-sandbox.sandywp.com/wp-admin
Post Views Counter running inside a SandyWP sandbox

What you get inside

3 screens
  • screenshot-1.png

  • screenshot-2.png

About this plugin

Post Views Counter counts how many times your posts, pages and other content are viewed, shows those counts on your site, and helps you see which content works – right inside WordPress. No external tools. No bloat. Just the numbers you need to see what’s working.

It counts two things:

  • Views – Counted views of your selected posts, pages and other content, according to your counting settings. Views can be displayed on your site and used to sort content.
  • Visits – A Visit starts with a browser’s first counted view and covers subsequent counted content views within the fixed Count Interval. Visits are shown as site-wide totals beside Views, not per post.

Key Benefits

Clarity, speed, and control:

  • Clear, Focused Metrics – Views for every post and Visits for the whole site give you a clear picture of how your content is performing.
  • Made for WordPress – Runs entirely in your site. No GA, no third-party pipes; accurate counts in your Dashboard and post lists.
  • Your counting rules – Choose which content to count, exclude selected visitors, and set the interval for repeat counts.
  • Privacy-first – Views and Visits are stored as aggregate totals on your server. Browser storage helps prevent repeat counting within your Count Interval. Pro offers cookieless browser storage; its optional Strict Counts feature also caches IP-derived data to limit repeat counts.
  • Works at scale – Minimal overhead, no external scripts, Multisite-ready.
  • Display anywhere – Automatically show counts, or place them exactly where you want via blocks, shortcode or PHP.

Features

Practical features that matter:

  • Count & display views for any post type you select.
  • Count Visits and see them beside Views in the dashboard chart.
  • Three counting modes: PHP, JavaScript, REST API
  • Post Views dashboard widget: a chart of Views, Visits or both, with a Views comparison for the selected month. A month in progress is compared with the same days of the previous month.
  • Top Posts dashboard widget, month by month.
  • Sortable Post Views admin column, with a Views chart for each post.
  • Traffic Signals admin column that flags unusual traffic changes compared with the same days of the previous month.
  • Weekly email summary of how your content performed.
  • Exclude bots, logged-in users, specific roles, or IPs
  • Manually adjust a post’s views when needed.
  • Query and order content by views (developer-friendly)
  • Custom REST API endpoints
  • Count Interval to set the fixed window for repeat counts from the same browser.
  • One-click data import from WP-PostViews, Statify and Page Views Count
  • Show the counter automatically, or place it with the Post Views block, shortcode or PHP function.
  • Most Viewed Posts block and widget.
  • Multisite compatible
  • WPML/Polylang compatible; translation-ready (.pot)

Post Views Counter Pro

More capability without extra complexity:

  • Fast AJAX counting that keeps counting light on busy sites.
  • Caching compatibility and dynamic loading to count through cached pages and refresh displayed counts when a compatible counting mode is selected.
  • Reports: Views by Date, Post and Author to spot winners, trends and top contributors, plus Visits in aggregate date reports.
  • Visit trends and Views per visit in dashboard insights and email summaries.
  • Performance Insights that explain how a post’s Views changed, in the admin column, Traffic Signals and email summaries.
  • Daily, weekly and monthly email summaries with insights.
  • Traffic sources: aggregate stats on referrers, devices, browsers, operating systems and languages.
  • Views for taxonomy terms, authors and other archives.
  • Customizable Views Period (e.g., last 7/30 days) to control the views count timeframe.
  • Export to CSV/XML to download and share data.
  • Integrations for ordering by views in popular builders (e.g., Elementor Pro, Divi, GenerateBlocks).

Learn more about Pro →

Questions

Why use Post Views Counter vs Google Analytics?

Post Views Counter gives you per-post Views and site-wide Visits inside WordPress. It is fast, easy to use and privacy-first, with counting data stored on your server and control over what, who and when you count. Google Analytics may be more than you need when you want content view statistics for editorial decisions.

Can I use Post Views Counter alongside Google Analytics?

Of course – many sites use both. Post Views Counter handles on-site, per-post view counts inside WordPress (no third-party scripts), while Google Analytics covers marketing funnels and acquisition.

What is the difference between Views and Visits?

A View belongs to the content being viewed and is counted according to your counting settings. A Visit starts with a browser’s first counted view and covers subsequent counted content views within the fixed Count Interval. Viewing another eligible post within that window adds a View without starting another Visit. Later views do not extend the window.

Why do Visits differ from sessions in Google Analytics?

Post Views Counter follows the counting rules you choose: which content to count, which visitors to include or exclude, and how often to count them again. These rules may differ from your Google Analytics setup, so the totals are not expected to match. Crawlers you exclude are not counted, and analytics tools filter bots their own way. PHP mode cannot count a view when a cached page is served without running WordPress (see the page cache question below).

The time windows also differ. PVC starts a fixed Visit window with the first counted view, using your Count Interval – 24 hours by default. Later views do not extend it. Google Analytics 4 uses an inactivity timeout, which defaults to 30 minutes.

Why can’t I see Visits for a single post?

A Visit belongs to your site, not to a post – one Visit often covers several posts. Post Views Counter shows Views for each post and Visits as site-wide totals. Traffic Signals still notice when the visits that start on a post change unusually.

Why does the Visits chart show no data?

Visits start accumulating when Visit counting becomes available; earlier Views do not automatically become Visits. Setting Count Interval to 0 stops new Visits but preserves previously counted totals. If browser storage is unavailable, Views can still be counted but Visits are not inferred. Right after an update, the chart can briefly say that Visit data is not available while the database is prepared.

Which counter mode should I use with a page cache?

If pages are served from a cache – by a caching plugin, your host or a CDN – use the JavaScript or REST API counter mode. These modes count from the visitor’s browser, so cached pages can still be counted. PHP mode counts while WordPress builds the page, so a page served from a cache without running WordPress is not counted.

Why are my own visits not counted?

Views from visitors you exclude in Exclude Visitors (for example logged-in users, specific roles or guests) or Exclude IPs are not counted. With a non-zero Count Interval, PVC uses cookies to avoid counting repeat views of the same content within that window. Blocking or clearing cookies can allow repeat Views. To test counting, open a counted post as a visitor your exclusions allow. A private window does not bypass IP or guest exclusions.

4.9

1,241 reviews

  • 5 ★ 1,188
  • 4 ★ 21
  • 3 ★ 5
  • 2 ★ 8
  • 1 ★ 19

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.