-
How to Use a Custom Dimension with GA4 and JDBC
Hey, I could really use some help here. I’m working with the JDBC driver for GA4 and attempting to query some custom dimensions. After checking the metadata API, it looks like one of the custom dimensions is labeled as ‘customUser:dimension1’.
However, when I try to run a query— specifically ‘SELECT Date, conversions, dimensions FROM “GoogleAnalytics4″.”Engagement” where Dimensions=’customUser:dimension1’ and Date=’20230510’— I get an error.
Here’s a snapshot of the error: [Error Image](https://i.stack.imgur.com/Jb80o.png)
I’m kinda stuck figuring this out. Somehow, it seems to recognize the dimension ‘customUser:dimension1’ because the same error pops up even when I try querying something random like ‘customUser:random’.
Here’s what I see with the random query: [Random Query Error Image](https://i.stack.imgur.com/QavkI.png)
Does anyone know what might be the problem here?
Log in to reply.