Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › Troubleshooting GA Data API: pageLocation Dimension Error › Reply To: Troubleshooting GA Data API: pageLocation Dimension Error
-
Sure, I’d be glad to help. The issue you’re experiencing stems from a naming discrepancy. In GA4 associated with the GA Data API, the dimension name for full page URL is ‘pageLocation’ in Universal Analytics (UA), but in Google Analytics 4 (GA4), it has been renamed as ‘page_referrer’. Therefore, correct your YAML file to reference ‘page_referrer’ instead of ‘pageLocation’ as shown here:
`
dimensions:
– name: “browser”
– name: “country”
– name: “page_referrer”
`
Give this a shot and it should solve your problem.