What can be the reason the user_id
is null
in BigQuery? Data from Analytics is sent to BigQuery but the user_id
is not passed along. T
Confirmed by Google Analytics 360 support, the userId
only have non-null values in BigQuery tables that are exported from User-ID enabled views in Google Analytics. For non-User-ID views, you only see null
values for the userId
column and you have to use a custom dimension to capture User Ids and query them in BigQuery.
In order to check which Google Analytics view you have linked to BigQuery, you can either look at the dataset ID in BigQuery (which is the same as the Analytics View ID) or directly the linked Google Analytics view in Admin > All Products [Property column] > BigQuery in the Google Analytics UI.