GicO
GicO

Reputation: 63

Get ClientId and UserId from Google analytics by Reporting API

I wanna collect all userId and clientId from GA.

I can see userId in dashoboard:

Custom options

but I can't find how get same info from APi for All user. How I can do that with Reporting API?

Upvotes: 3

Views: 139

Answers (1)

zborovskaya
zborovskaya

Reputation: 1143

UserId and ClientID are custom dimensions. So use ga:dimensionXX and replace XX with indexes of your custom dimensions.

https://ga-dev-tools.appspot.com/dimensions-metrics-explorer/

Upvotes: 2

Related Questions