Question

I have a Google Analytics code on my page, and it somehow finds out user's gender, age and location. Can I access that data when the user opens the page, and show something like "Hey, that's what Google knows about you: your age, gender and the city"?

I use analytics.js, just in case it's important.

Probably analytics.js has some functions in it and I can access it using JavaScript? Or that data could be found out some other way?

Was it helpful?

Solution

Google doesn't provide this data for individual users. It's only available on an aggregate basis in Analytics reports. They even apply thresholds to some reports so that individuals can't be identified.

OTHER TIPS

That is the Demographics and Interests Reports you talking about, however they are not yet available in analytics.js only the previous version ga.js. (source)

Google has said that analytics.js should be getting support for those reports soon.

Using ga.js I know you can now call them via the core reporting api but not in real time so don't think you can load them at the same time when a user loads a page.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top