How to set client Id from URL "site.com/?clientId=1576731351.1495454236"
I try to use in
ga('create', 'UA-XXXXX-Y', 'auto', {
'clientId': getClientIdFromUrl()
});
But error:
Uncaught ReferenceError: getClientIdFromUrl is not defined
How to set clientId? How to define getClientIdFromUrl? I get this code from official google page https://developers.google.com/analytics/devguides/collection/analyticsjs/cross-domain#setting_the_client_id_on_the_destination_domain