WordPress Post Views Counter Plugin Tutorial

WordPressArticle views plugins, a common statistic on content-based sites, let visitors and site operators know what content is popular.

But in WordPress, many themes do not have article pageview statistics function, you need to add it yourself, which is very unfriendly to people who don't like to use code, so we introduce thisWordPress plugin-Post Views Counter.

WordPress Post Views Counter Plugin Tutorial

WordPress Post Views Counter Post Views Counter Plugin Features

Post Views Counter plugin is a free WordPress post view count plugin made by dFactory.

Compared with the previous WP-PostViews plugin, this plugin is simpler, easier to use, and more powerful.

The Post Views Counter plugin is very powerful, with it we can achieve:

  • Add the reading volume bar in the background article list;
  • When the calculation rule is enabled, the same user only counts the reading volume once at a fixed time;
  • pageviews are reset periodically;
  • prevent incognito mode;
  • Option to select the post type for which post views will be calculated and displayed;
  • 3 ways to collect post browsing data: PHP, Javascript and REST API for more flexibility;
  • comply with data privacy regulations;
  • The number of views for each post can be manually set;
  • Dashboard post views statistics widget;
  • Full data privacy compliance;
  • Ability to query posts based on the number of views;
  • Custom REST API endpoints;
  • Option to set count interval;
  • Does not include counts of visitors: bots, logged in users, selected user roles;
  • Exclude users by IP;
  • Display by user role restrictions;
  • Restrict post views editing to admins;
  • One-click data import from WP-PostViews;
  • Sortable admin columns;
  • Automatic or manual posting of pageview display locations via shortcode;
  • Multi-site compatibility;
  • W3 Cache/WP SuperCache compatible;
  • Optional object cache support;
  • WPML and Polylang compatible;
  • Contains translated .pot files.

WP-PostViews plugin to count the number of article views

The data of the WP-PostViews plugin is saved in the custom fields of the posts, which is not a problem when the number of posts is small.

However, when the number of WordPress posts reaches thousands, the WP-PostViews plugin starts to have issues affecting the performance of your WordPress site!

The impact of the WP-PostViews plugin on WordPress performance mainly comes from the following two points:

  1. Every time a new user browses an article, the plugin needs to update the article custom field to add pageview statistics for the article.
  2. Updating an article's custom fields is a time-consuming database operation.
  • When the number of concurrent users of the website increases, the negative impact of this operation on the performance of the website is very obvious.
  • Sorting and querying articles based on custom fields is also a time-consuming database operation.
  • When we use the widget that comes with the plugin or use the views field for custom query, it will affect the performance of the website to a certain extent.
  • But this effect can be addressed by caching, optimizing database queries and improving website performance.

We compared other post view count plugins with a large number of users and finally decided to use the Post Views Counter plugin instead of WP-PostViews to count and display article views.

Advantages of Post Views Counter Plugin for Counting Post Views

The Post Views Counter plugin is very easy to use and can be used to count and display post views for posts, pages or custom post types.

The Post Views Counter plugin optimizes the article pageview statistics logic to solve the negative impact of article pageview statistics on the database.

  1. Record page views using a custom data table.When updating page views, only one data table needs to be updated, which is much faster.
  2. When setting up an object cache on a WordPress site, the plugin will add pageview statistics to the object cache and update the database after a period of time.The object cache can be an in-memory database such as Memcached, Redis, etc. This operation is much faster than updating the database directly.
  • Based on the above two optimizations, Post Views Counter has much less impact on WordPress site performance.

One thing to note is that if you want to keep all the article views, you need to set the "Reset Data Interval" to 0, so that the Post Views Counter plugin will keep all the article views▼

One thing to note is that if you want to keep all article views, you need to set the "Reset Data Interval" to 0, so that the Post Views Counter plugin will keep all article views 2nd

The Post Views Counter plugin is very novice friendly, no need to modify any code, all operations can be done inWordPress backenddone▼

Post Views Counter plugin is very friendly to newbies, no need to modify any code, all operations can be done in the WordPress background

Of course, some friends may feel that the default style is not suitable for them, and they can also add code manually.

Manually add PHP code where you need to display article views pvc_post_views(), or manually add the shortcode according to the plugin instructions.

WordPress Post Views Counter Plugin Download

If your WordPress site has a large number of articles, or has a large number of concurrent visits, and you need to count article page views.

It is recommended that you use Post Views Counter instead of the WP-PostViews plugin to implement article page views statistics, thereby improving website performance to a certain extent.

Comment

Your email address will not be published. Required fields*Callout

scroll to top