How to get the Google analytics client ID

Maybe you are working on Cross-domain tracking with GA (AKA Google Analytics).

If you want to check if the clientID prevail in your different domains a way to retrieve google analytics client ID is the following command.

ga.getAll()[0].get('clientId');  

Just placed it in your web browser console, and there you go!

That's all folks!

Victor Velazquez

Coder, Musician, Startups, Passionate Dancer & Life Lover. Software Engineer at MagmaLabs, Co-founder of Web Dev Talks, Co-founder of Voltaire, Co-founder of Paqkit, Ex-co-founder of Zaznova.

Subscribe to The zazvick's blog

Get the latest posts delivered right to your inbox.

or subscribe via RSS with Feedly!