Track when customers log in to my store? (Google Tag Manager)

I want to have a tag fire when a customer successfully logs in to my store. My main issues I have found trying to accomplish this are:

  • GTM thinks form submits successfully every time.
    • i.e. Tag fires on incorrect user/password even with “Check Validation” box checked in GTM.
  • Login page may redirect to reCaptcha verification.
    • Since all reCaptcha “/challenge” pages are indentical, it can be difficult to tell which form is being verified.
    • Even if I track the reCaptcha form submit, if the user entered incorrect data before hitting reCaptcha it will assume successful (since they passed reCaptcha).
  • If I just track Log In “submit” button click I could get all kinds of inaccurate data.

I’m having a very hard time finding anything relating to this on Google, and I’m beginning to feel like I’m just missing something.

Anyone else have similar issue/needs?

Hey @nbarrow , you might be able to do this with Helium’s Customer API if you haven’t had luck elsewhere.