-
Reaction time for custom dimension updates in Google Analytics 4
Hey there! I’m working with the Google Analytics API and attempting to pull the user IDs. I’ve set up a custom dimension for it (userId) as “customUser:userId”. But, although the request executes, there’s no value returned for the custom dimension, even though it works fine for standard ones.
Do you know if there’s a certain amount of time we have to wait for custom dimensions to actually work?
Here’s the request I’m running, by the way:
`json
{
“property”: “properties/property_id”,
“dimensions”: [{“name”: “customUser:userId”, “dimension_expression”: null}],
“metrics”: [{“name”: “activeUsers”, “expression”: “”, “invisible”: false}],
“date_ranges”: [{“start_date”: “yesterday”, “end_date”: “today”, “name”: “date”}],
“dimension_filter”: null,
“metric_filter”: null,
“currency_code”: “”,
“cohort_spec”: null,
“keep_empty_rows”: false,
“return_property_quota”: false
}
`
If you could help me out, it’d be awesome. Thanks!
Log in to reply.