Auth0 Home Blog Docs

Facebook Analytics working but Google Analytics is not?

google
facebook
analytics
google-analytics

#1

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

https://auth0.com/docs/analytics/integrations/google-analytics
https://auth0.com/docs/analytics/integrations/facebook-analytics

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:
https://gist.github.com/mstraughan86/eabb4aeadb59a6d93eec978f192c9061


#2

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!


#3