How can I track my customers' last login on my website?

Topic summary

Main issue: Store owners want to record customer/dealer logins to see each customer’s most recent login on a Shopify site used as a dealer portal.

Current platform status: No native Shopify feature for “last login,” and no confirmed API (Application Programming Interface) method was shared in the thread. The original poster did not find a built-in or API solution.

Proposed solutions (third‑party apps):

  • “Last Login” app was suggested via App Store links. One user reported it didn’t work correctly, appearing to use the account’s creation date as the last login.
  • “Customer Login History” app was suggested, claiming to record each login and also count a purchase made with an existing customer email as a login.

Attachments/links: App Store links to the suggested apps are central to the discussion.

Outcomes and next steps: No consensus or verified solution. Feedback is mixed on the accuracy of at least one app. The discussion remains open. Suggested action is to trial third‑party apps, validate the recorded timestamps against known logins, and monitor for inaccuracies; no API-based workaround was provided.

Summarized with AI on December 31. AI used: gpt-5.

Hi there,

Is there any way to keep a record of customers log in?

We are using our website as a dealer portal and need to know when was the last time that a dealer logged in.

Thanks

1 Like

@SheryK +1 on this. Were you able to figure out any resources that helped you get this information via API?

No sorry.

Didn’t find any solution.

Please post here If you ended up finding a way.

I actually made an app just for this issue!

You can find it here: https://apps.shopify.com/last-login

Please let me know if you have any questions!

Hey Jacob,

I have a solution! I made an app to add this feature, you can find it here: https://apps.shopify.com/last-login

Have an awesome day!

Did not work correctly it takes only created date as last login

Right now Shopify does not natively have that.

Shameless plug but we’ve made an app that tracks this. You can check it here: https://apps.shopify.com/customer-login-history

Basically, whenever a customer logs in, it’ll track that and save it into the app. Same as when doing a purchase through an email that already exists on the store - that’ll count as a login as well