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

How to get the segments a user-id belongs to?


Does a way exist, where I can get for a specific user-id, the information in witch segments this specific user is?

In the Export Schema https://support.google.com/analytics/answer/3437719?hl=en is the segment not available. I know that I can build the segments by myself in BigQuery but than I have the issue that this can by slightly different from the UI.

Edit: The solution is in: How to get the segments a user-id belongs to?


Solution

  • You have to pass it in Google Analytics as custom dimension, then you can find it in the reports, filters or segments.