Search code examples
google-analyticsgoogle-apigoogle-analytics-api

Get _gid values through Google analytics reporting API, is it possible?


I have noticed that in Dimensions & Metrics Explorer, the clientId assigned by google analytics itself to uniquely identify a device is not available to query through any of reporting APIs but it's nevertheless possible (ga:clientId).

Does someone know if it's possible to request the values of _gid cookies ? I'v tried [ga:gid] | [ga:gId] | [ga:googleId] but it doesn't to work...

Thanks for your answers.


Solution

  • Dimensions and metrics explorer lists the dimensions and metrics that can be used with the Google Analytics reporting api

    the cookies you are referring to are mainly used for internal processing for the data and are not actually "stored" if you could find them you can store them as a custom dimension into your google analytics account and then have access to them.

    enter image description here