-
Troubleshooting Query for Obtaining 2 String Values in Google BigQuery
Hey there,
I’m working with BigQuery GA4 export at the moment and there’s a small hiccup that I can’t seem to get past. I need to extract a couple of string values from it using a very specific table structure.
Here’s what the structure should look like:
The event name, event key, string value for event parameters, and an integer value for the same.
For instance, a ‘listing’ event will have a ‘product_id’ key and a corresponding string value. There are similar other events like ‘site_interaction’ and ‘ga_sessionid’ that follow this pattern.
The SQL query I’m running at the moment is looking something like this:
The output I was hoping for:
Product ID’s under ‘id’, count under ‘share’| product_id | share |
| — | — |
| 123456 | 4 |
| 123457 | 2 |
| 123458 | 2 |But I’m drawing a blank. I played around with the query a bit but still no luck.
Do you have any ideas on what could be going wrong here?
Anything you could suggest would be a huge help, thanks a ton!
Log in to reply.