Skip to content

dcangulo/posts-unique-view-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Posts Unique View Counter

GitHub version GPLv2 license PRs Welcome saythanks

Easily count unique views of your posts.

How does it work?

  • All views of the post will start at zero (0) upon the plugin installation.
  • When a visitor viewed your post, it will save a cookie on the visitor so that same visitor will only count as one (1) view, this way we can uniquely identify each visitor.
  • The cookie expires after a month, so if the same person viewed your post after the cookie expires it will count as another view.
  • Visitors who use "incognito" or something similar will be counted always as a unique visitor because "incognito" mode does not save cookies.
  • One (1) visitor = One (1) cookie.

Installation

  1. In your WordPress admin menu, hover to Plugins and click Add New.
  2. Enter Posts Unique View Counter in the searchbox.
  3. Find the plugin entitled Posts Unique View Counter by David Angulo then click Install Now.
  4. Click Activate once the plugin is installed.

Installation using Composer

composer require wpackagist-plugin/posts-unique-view-counter

Screenshots

  1. Posts Unique View Counter running on Twenty Twenty theme.
  2. Posts list page with view column.
  3. Posts Unique View Counter settings.

License

Copyright © 2022 David Angulo, released under the GPL2 license, see LICENSE.