tracking member logins, themes, plugins for WordPress - photo by Sincerely Media

How to track member logins in WordPress

So you’ve setup member login and members-only content on your site. How will you know if your members are actually logging in to your site to access this content? In this tutorial we’ll show you how to track member logins on your WordPress website.

Tracking member engagement gives you valuable insight into how your members are using your site’s content, where they may be running into issues and what content is the most popular. By tracking the activity of your users, you can find ways to improve the user experience and make your site even better!

No Coding Required

The good news is, there are WordPress plugins that can help you to track member logins, so you won’t need to worry about changing any code!

Using plugins like WP Last Login, WP-UserOnline or Simple History, you can easily track logins and changes made by your users, including when they created their latest post, or who uploaded an attachment, or approved a comment.

In this tutorial, we will show you several ways to keep track of member activity on your site, including:

  • How to see a member’s most recent login date at a glance.
  • Display a list of members currently logged in to your site.
  • Find out if a member had trouble logging in.
  • How to see a log of member’s activity while logged in.

Display Last Login Date in WordPress Admin Area

The easiest way to see if your members are engaging with your website is to simply display the most recent login date for each member on your WordPress dashboard using the WP Last Login plugin.

Step 1: Install & activate Last Login plugin

WordPress-tutorial-WP-Last-Login-plugin - track member logins in WordPress
  • From your WordPress dashboard, go to Plugins >> Add New.
  • Do a search for ‘WP Last Login’, install & activate the plugin.
  • Go to your list of WordPress Users to see the last time your members logged in.*
WordPress-tutorial-WP-Last-Login-plugin-installed

That’s it! Once you have activated the plugin, the user page in your admin area will automatically display a new column showing the last login date for each user.

*If you see ‘Never.’ in the Last Login column, this means that the member has not logged in since this plugin has been activated on your site.

NOTE: If you are using the Member Updater plugin, the ‘Role’ for members will be Business Editor.

See list of users currently logged in

It may be helpful to know which users are logged in real time. Check out the WP-UserOnline plugin to see a list of members who are logged in to your site right now.

Step 1: Install & activate Last Login plugin

WordPress-tutorial-WP-Users-Onlinen-plugin - track member logins in WordPress
  • From your WordPress dashboard, go to Plugins >> Add New.
  • Do a search for ‘WP-UserOnline’, install & activate the plugin.
  • Go to your dashboard to see a list of members currently logged in to your site.

That’s all you need to do! Once you have activated the plugin, the dashboard of your site will automatically display a list of currently logged in users.

To test, open a new browser and login as a test user after the plugin has been activated.

WordPress-tutorial-WP-Users-Online-plugin-installed - track member logins in WordPress

Track activity for logged in members

Tracking activity for your logged in users is a bit more complex. Here are two free options we found. However, both of these plugins do require a bit more setup and knowledge of WordPress. Both the SlimStat Analytics plugin, by Jason Crouse or the Google Analytics plugin by MonsterInsights, let you track the activities of your members, including:

  • Member logins
  • Failed logins
  • Popular pages
  • Recent searches
  • Popular downloads
  • Browsers used
  • and more…

Here are the setup instructions:

Storage Considerations

A couple of things to note. SlimStat is a bit easier to setup, but stores all data collected on your site. We recommend regularly purging this data so as not to cause storage issues on your hosting server. Monster’s Analytics plugin connects to your Google Analytics account, so you will need to set that up first. Once your Google Analytics is setup, your data will be stored in your Analytics account, so it won’t be taking up space on your site.

GDPR Considerations

Anytime you are collecting and storing data, it’s a good idea to update your privacy policy so that your users are fully aware of how their data is being used. You can read more and become familiar with GDPR requirements here.

NOTE: The plugins referenced above are not created or maintained by Chamber Dashboard. This information is provide for your convenience. If you have questions about this plugin, please contact the plugin’s author directly. Getting support for free themes & plugins.

Best Practices

  • Always make a full backup of your site before making updates or changes.
  • Set up a staging site for testing so that you can test without disturbing your live site.
  • Always test your site’s performance thoroughly before going live. Especially when adding a new plugin to your WordPress installation.