How to create an easy-to-pull report of recent user login activity? Answered

Post author
Danielle Lowe

Hi all! Is there an easy way to pull a report of users logged in in the past week? Looking for ways to easily pull data. Thanks!

Comments

4 comments

  • Comment author
    Duncan from Memberstack

    You could add a custom field called "Last Login" and then create a script that automatically logs the date. Then, you could export your members and filter by last login date.

    cc Magnaem Ambata sounds like a cool Memberscript idea! Like this one, but last login date instead of the IP address. https://www.memberstack.com/scripts/save-ip-address

    0
  • Comment author
    Danielle Lowe

    Thank you so much! 🙂

    0
  • Comment author
    A J

    I believe you could also use the in-built Last Login field that we see in the memberstack dashboard for every member and continue with the approach of exporting the members and filtering them as per your requirement.

    0
  • Comment author
    Magnaem null

    Hey Danielle Lowe! I created a script that saves login history in the member JSON, so you can track logins for the past week (or longer) and even see a user's login streak.

    You can watch this tutorial and get the code at the link below:😊
    https://www.memberstack.com/scripts/track-user-login-history-and-streaks

    Hope this helps!

    0

Please sign in to leave a comment.