WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a client with a private Wordpress blog - that is to say, you need to log in to read it.

We are using Counterize to keep track of visits to the site and to find the most popular pages.

But now he wants to know which users are logging in, and perhaps how often they are logging in to read this blog.

I checked to see if there was any info in wp_usermeta ( like last-login-date ) but there doesn't seem to be.

Any suggestions how to keep track of user's activities?


share|improve this question
you can probably find some examples to get you started in the related questions column -> – Milo May 27 '13 at 20:28

A basic user login tracker is pretty trivial to implement.

function track_user_login_wpse_100929($id,$user) {
  $tracking = get_user_meta($user->ID,'tracking_key_name',true); 
  $tracking[] = time();

After that you just need to work out the details such as how long you are going to keep the history, what kind of reports you want to pull, that kind of thing.

share|improve this answer

You can use wordpress plugin Simple Login Log

This plugin keeps a log of WordPress user logins. Offers user and date filtering, and export features.

Important Links:

5 Handy WordPress Plugins to Track Users and Statistics

Track logged in users' visits

share|improve this answer

If you want to know the logged in time of users yo ucan take http://wordpress.org/plugins/hrm-work-tracking

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.