Google Analytics Tracking

I need some help understanding tracking from Auth0 lock page to Google analytics. from the image below we can see multiple sources of traffic; what we are having difficulty with is understanding where a user comes from when they land on Auth0. Is there a way for us to pass this information through from Auth0 to analytics?


Hey there @rory.standley

Let me discuss it with the appropriate team and get back to you with the news soon!

Have you integrated your Google Analytics snippet into the Auth0 Universal Login Page? (Dashboard > Universal Login > Login > Customize the Login Page)

Yeah I have added that in with the correct UA code

Confirming it with the team responsible for Lock. Will get back to you shortly!

The team asked if you can check if you’re using the analytics script as recommended here:

it’s probably something missing there. Lock doesn’t get involved with Google Analytics really other than raising events when something happens

1 Like

Hey there!

Have you had a chance to check my previous message?

You could pass in a referral parameter when you initiate the /authorize call to Auth0. You would have to adapt the following and then add the parameter value to your Google Analytics call:

Example url:


//custom code on Universal Login page.

<script src=""></script>


    // Decode utf8 characters properly

    var config = JSON.parse(decodeURIComponent(escape(window.atob('@@config@@'))));

    config.extraParams = config.extraParams || {};

    var someCustomParam = config.internalOptions.com_customer_namespace_some_setting;

    //Example of setting email input to custom param value


        document.getElementById('email').value = someCustomParam;



1 Like

Thanks a lot for sharing that @jb0!