-
Create a Form Submission trigger. Name it something like Login.
-
Select trigger fires on Some Forms.
-
Add a Page URL condition that contains some text that's contained in the URL of your login form.
For example, my GA test site's login URL is https://streetphotography.blog/my-account/
. So, I used the text my-account
for the trigger's condition.
-
Create a Google Analytics Universal Analytics. Name it something like Login.
-
Set Track Type to Event.
-
Set Category to form.
-
Set Action to submit or login.
-
Set Label to Log in.
-
If you have a GA settings variable for your tracking ID, select it under Google Analytics Settings.
-
Under Firing Triggers add the Login trigger you created earlier.
Just for completeness, here's the GA settings variable I referenced in my tag.