Auth0 Home Blog Docs

Facebook Analytics working but Google Analytics is not?



I have been trying to capture Auth0 events to both Google Analytics and Facebook Analytics. I have used the instructions provided here:

I have Facebook receiving Auth0 events with no problem, but I don’t see anything on the Google Analytics side. I have provided a quick copy and paste of my HTML below.

Does anyone have a good idea on how to debug my issue? I am not sure why one works and another doesn’t My sneaking suscpicion is that there is something to do with loading order, but I can’t seem to narrow it down.

Code Example:


I finally got mine working, and I think it’s because you need to put the Google Analytics code after the Auth0 Analytics code. Good luck!