Google Analytics v4 supports to query the reports like "User Explorer". I can query the list of userid in custom dimension. My request is:
{"reportRequests": [
{
"viewId": "xxxx",
"includeEmptyRows": true,
"dateRanges": [
{
"startDate": "2daysAgo",
"endDate": "today"
}
],
"metrics": [
{
"expression": "ga:sessions"
},
{
"expression": "ga:avgSessionDuration"
}
],
"dimensions": [
{
"name": "ga:dimension1"
}
]
}
]
}
I got the successful result. But I would like to query the detail of each userId. Something likes one individual Userid in a custom dimension same as "User Report" in Google Analytics. I googled around but did not have any luck. For example in here:
Query Google Analytics by User ID
https://ga-dev-tools.appspot.com/
I'm not sure that is there any support for the query individual userId like: "filtersExpression": "ga:userId==abc"
Any recommendation is really appreciated.
Thanks