How to track Wordpress signups nad logins with Google Analytics

I have Wordpress website with Auth0 plugin. I want to track conversions when user register or logs in. From what I understand Auth0 redirects to /index.php?auth0=1 after successful signup/login. For some reason it doesn’t trigger Google Tag Manager to fire, nor Google Analytics can catch that fact. Is it something related to the fact that Wordpress further redirects to the main page or further to redirect_uri, anyone has experice with something similar?