Hello!
When checking the sessions result in BQ vs GA4 for source, medium, and default channel grouping, the sessions for source = (not set) are not visible in BQ. Why is that happening? How can I correct it?
This is the formula I used to get session results by source, medium, and default_channel_grouping
Hi @ioana_p,
Welcome to Google Cloud Community!
As stated in this documentation, GA4 uses "(not set)" when dimension information is missing. This can also occur due to factors like improper tagging, or attribution issues. In BigQuery, since you're working with raw data, you need to explicitly handle NULL or empty values.
Additionally, I came across a thread where someone asked about dealing with discrepancies in session queries, and it was answered by one of our expert staff. Take a look at it, as I believe it will be very helpful for your case.
For a deeper investigation, you can reach out to Google Cloud Support. When reaching out, include detailed information and relevant screenshots of the errors you’ve encountered. This will assist them in diagnosing and resolving your issue more efficiently.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
The thread you linked to contains an error:
traffic_source.source is *not* the session source - it contains the user acquisition source.
(so the first session source of this user)
The solution to OP is simple:
Query `