-
Troubleshooting GA Data API: pageLocation Dimension Error
Hey there! 👋 I’m in the middle of migrating from UA to GA4. I’m trying to grab the full page URL using GA Data API in my Spring Boot app. I’m using the API name for the ‘Page Location’ dimension in the yaml file. Runs great for ‘browser’ and ‘country’, but when I add ‘pageLocation’, my app’s not having it — keeps throwing up an invalid argument exception and yelling at me about a ‘Bad Request’. Supposed to work according to the docs. Can you help with this?
Here’s the code snippet, by the way:
dimensions: - name: "browser" - name: "country" - name: "pageLocation"
Appreciate any help you can give. Thanks!
Log in to reply.