I need to get number of users logged in a site / per day.

For ex :

May 1 : 123 logins

May 2 : 140 logins


May 30 : 400 logins

I've looked into few modules like login_history and counter. Login history tracks this data, but does not support Views. Is there any module which does this out of the box ?


  • 1
    check drupal.org/project/user_stats it have view integration support
    – Bala
    May 12, 2014 at 10:32
  • @Bala why don't you add this as an answer?
    – Mołot
    May 12, 2014 at 11:49
  • yeah. Thanks for suggesting. This module does track login count. But it does not track time. Schema does for tracking login count does not have timestamp column
    – Subu
    May 12, 2014 at 11:50

3 Answers 3


Couple of options (haven't tested either one):

  1. This sandbox project seems to track login time and provides Views integration: https://drupal.org/sandbox/AshishThakur/1614582

  2. Login History also tracks login time, but does not have Views integration yet. A patch was started for this, but looks like it isn't complete: https://drupal.org/node/1402266


Maybe the visitors module might be a valid alternative to consider? Or at least a good starting point? Refer to its community docu for some more details.

Be aware: I'm the new maintainer of this module, it was unsupported until recently ...


Another approach that might work, based on the "Login history tracks this data, but does not support Views":

  • Find the data base table used by 'login history' for the tracking of the data.
  • Use the views integration of the Forena module to access those data in the 'login history' table from within your custom view. Refer to the available community documentation of Forena (linked on the project homepage) for more details.

Be aware: I'm a co-maintainer of this module.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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