How to track member login events in Zapier when webhooks don't include login data? Answered

Hello!

We're building a few zaps and wondering if it's possible to track member logins - we want to compare logins with some other event data on our site.

The events seem to be limited to registration and membership changes, but not logins.

What webhooks are there related to login events? The event catalog has >just< about everything we need, if there were a member.login event...

Is there a suggested workaround to capture login events?

Comments

3 comments

  • Comment author
    Raquel Lopez

    There are currently no webhooks for login events in Memberstack.
    The available webhooks only track changes to your user base such as new member signups, plan changes, or profile updates.

    As a workaround, you can manually send data to a custom webhook after a successful login. There are a couple of ways to implement this:

    • 1: Add an event listener to the login button click — simple, but less reliable.
    • 2 (recommended): Use the loginMemberEmailPassword() method from the @memberstack/dom package to handle login manually, then trigger your webhook only after a successful login response. This gives you more accurate and reliable tracking.
    0
  • Comment author
    A J

    Hey Matt Barinholtz, +1 to what Raquel said.

    You could also re-purpose this memberscript which basically tracks login streak. You could get rid of the complex part of the code and just trigger a zap webhook via the custom code to then take the required actions on your end.

    0
  • Comment author
    Matt Barinholtz

    A J Raquel Lopez thank you both - this is very helpful and generous! I'm going to give these a try.

    Hoping that one day that login events might be included (hubspot would love that!)

    Thanks!

    0

Please sign in to leave a comment.