How to find date of last customer login date, is it possible?

Topic summary

Goal: identify a reliable way to get each customer’s last login date in Shopify to track logins without orders.

  • No native field surfaced: The OP couldn’t find a last-login field in Shopify’s GraphQL/API. No responder confirmed an official API endpoint for this data.
  • Suggested approaches:
    • Third-party apps: “Customer Login History” and “Last Login.”
    • Custom build: a private app that records each successful login (e.g., write a timestamp to metafields or an external database) via a backend route.

Latest update/constraint: The OP already built a custom solution that works with Classic Accounts but can’t implement it for New Accounts because those account templates are locked (New Accounts = Shopify’s newer customer account experience with restricted template customization).

Next steps: The OP will check if the suggested apps support New Accounts; if they do, that implies a workable path. No resolution yet; key open question is how to capture login events under New Accounts without editable templates or an official API-supplied last-login field.

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

Hi,

I have looked through the GraphQL schema and can’t find any way to see the last date that a customer logged in to their Shopify account. Does anyone know if Shopify exposes this data? I am sure they have it in the system but I can’t see a way to get to it via any of the APIs. I run a wholesale business via Shopify and all customers are required to log in to place their order so I am interested in tracking who has logged in but not placed an order.

Any suggestions would be much appreciated!

Thanks,

Tim

Hello @tim_gordon

You can check this app https://apps.shopify.com/customer-login-history

Thank you

Hi @tim_gordon ,

The easiest way would be to install an app like https://apps.shopify.com/customer-login-history or https://apps.shopify.com/last-login

The hard way would be to build a private app that can update an api route and write the customer’s login data to metafields or a postgres database. On each successful login you can update a new entry in the table with the date. I wouldn’t recommend this unless the cost for the aforementioned apps is too prohibitive.

I do not know what app framework you’re using but for a fair idea of how to pass data from the store to the backend can be found in this repo and the associated youtube video series.
https://github.com/Hujjat/wishlist-inspire-app

We actually already built an app like you suggest and this works with Classic Accounts but we couldn’t find a way to implement with New Accounts since the templates for New Accounts are currently locked. Do you know if there is a way round this? I will check the apps that others have suggested and see if they support New Accounts, if they do then I guess there must be a way to do this.

1 Like