How to Track WordPress Password Usage

PPWP Statistics extension gives you the ability to track password usage. You can see who visited the private content, when and where they accessed, and how many times they used a specific password. All these stats can be exported to CSV format as well.

Requirements:

In this article, we will walk you through the following sections:

View your stats

Navigate to Password Protect WordPress >> Statistics from your admin dashboard.

There are four types of password statistics shown here.

Individual password usage

This table shows you the password usage of individual pages.

  • Total Usage: how many times a page has been accessed with the correct passwords. This number equals to all individual password usage.
  • Protection Status: the current status of a specific page – protected or unprotected

A post can be protected with multiple passwords. Click on the expand icon next to the post name to see which passwords were used to unlock this content.

  • Type: the type of password – global or roles
  • Total Usage: how many times a specific password has been used
  • Unique IP Addresses: the number of unique IP addresses. This figure can sometimes be less than the total usage if visitors come from the same IP addresses.
  • Status: the current status of a specific password – active, inactive, expired, or deleted.

Click on “View Detail” button to find out who has used a specific password and when they accessed the protected content.

“N/A” refers to users who haven’t logged into your site. Otherwise, their usernames will display under this column.

If you’d like to get more information of non-logged in users, you need to add an additional field to password form and then track this piece of information with Statistics extension.

Sitewide password usage

This table shows who has visited your private site, when they accessed, and where they come from.

  • Username: “N/A” refers to users who haven’t logged into your site. Otherwise, their usernames will display under this column.
  • Total usage: The number of times a specific password has been used. Normally, this is the number of people unlocking your site with the password.
  • Unique IP Addresses: the number of unique IP addresses accessing your private site. This number could be less than the total usage if users come from the same IP addresses.
  • Status: the current status of a specific password – active, inactive, expired, or deleted.
  • Landing Page: where users inputted a specific password to access your private site.
  • Redirect URL: to where users were redirected once entering the right password. The value will be N/A if there is no redirect URL set at the time users access your site.

PCP password usage

This table shows who has used your shortcode global passwords to access the private content sections.

  • Username: “N/A” refers to users who haven’t logged into your site. Otherwise, their usernames will display under this column.
  • Total Usage: the number of time a specific password has been used
  • Unique IP Addresses: the number of unique IP addresses. This figure can sometimes be less than the total usage if users come from the same IP addresses.
  • Status: the current status of a specific password – active, inactive, expired or deleted
  • Post Name: the post including shortcode where users input password. Once removed, its name will display as “Deleted Content”.

Access Levels password usage

This table shows who has used Access Levels passwords to access your private categories.

  • Landing page refers to where users enter the password. It could be the main category page or an individual post under that category.

Logic & Limitation

Our extension will get and display the real-time password status whether a password is expired, deleted, or still active. So if there are a lot of passwords on your site, it may cause timeout or 500 error.

If that’s the case, you should skip checking the password status on our statistics dashboard page. Simply insert this line on your wp-config.php to achieve so.

define( 'PPWP_STATS_SKIP_PWD_STATUS', true);

All password status will display “N/A” instead.

  • These tables will be empty if no one enters your passwords.
  • If you create a duplicate password with the deleted one, their data will be combined.
  • N/A username refers to people who haven’t logged into your site.

Export password data

Since version 1.2.0, Statistics extension enables you to export password usage in CSV format.

Simply select which type of passwords you want to export, then click on the “Export to CSV” button in the top-right corner of the screen.

Lasted updated on August 28, 2020