How to track and retrieve user login history in Memberstack 2.0 without custom development?
Hi there, is it possible to track user logins from the past months via Memberstack or any similar add-on app? Would much appreciate your help. Thank you!
Hi there, is it possible to track user logins from the past months via Memberstack or any similar add-on app? Would much appreciate your help. Thank you!
Comments
11 comments
You can definitely use Script #193 – Member Activity Timeline Tracker for this. It’s designed to log member interactions like logins, signups, and plan changes into a timeline, so each login event gets recorded with a timestamp. That means you’ll be able to look back and see all of a user’s logins over the past months, not just the most recent one. It’s a straightforward way to build a history of activity that’s tied to each member profile.
Script #193 is designed to log member interactions (like logins) into a timeline. Each login event gets recorded with a timestamp. From that data, you can:
Count logins per day
Group timeline entries by date.
Count the number of login events for each day.
Generate a chart
Use those daily counts to plot a line chart or bar chart showing login activity over time.
Example:
Dec 1 → 12 logins
Dec 2 → 8 logins
Dec 3 → 15 logins
Display to admins or members
Admins can see overall activity trends.
If you integrate Profitwell then you can see this kind of activity through their dashboard. Not perfect (and I wish MS had it natively), but it is better than nothing.
Hey Jasper! Do you want a chart of the number of logins per day or do you need to know anything else?
In case it's useful, you could try Nocodelytics, an analytics tool for Webflow which supports Memberstack (disclaimer: I'm a co-founder). You can set up the tracking so it shows how many people complete the login form each day or visit a specific page (like their dashboard).
Hi, is there any way to track member logins in Memberstack 2.0? I want to know how many times a user logs into their account.
Analytics is for everything about metrics. You can have an overall overview of all your users behaviors in one place. And you can track logins and pageviews and other metrics per user if you send the user id in the metric.
internally Memberstack has an event log where you can track the events per user to debug any situation. You can open the panel in the options of the user or go to the events panel or in the event panel
If you want to save each login data per user as you are showing in your comment, you can just create a snippet code that per each login attempt would save it in the member json of the user. You won't be able to compare analytics, it would be the same as looking as the event log 🤔 You can ask https://rey.memberstack.com/ MS ai to help you out with the script or to transform your v1 script to v2.
I asked Memberstack AI to translate my code from 1.0 to work with 2.0
I added this code inside Before
{"userVisits": [],
"WelcomeVisitsNumb": 0
}
Try this
It almost work perfectly!
Instead of updating “WelcomeVisitsNumb” it add another line
This is what happen after 3 visits
Uhm, use this declaration. It think it should fix it 🤔
Look for the comment that says // Get the metadata object and replace the declaration.
It is collecting data but the same problem occur. Each visit appears to be creating a new JSON structure, instead of appending to an existing one.
I found the solution with Memberstack AI I think
Maxime Dubé Raquel Lopez
This is awesome! I've been looking for this for a while. Thank you!!!
Please sign in to leave a comment.