Relative Content

Tag Archive for rubygoogle-analytics-4

How can I get a page count of the full URL in the Ruby GA4 client?

I have been trying to query GA4 for page counts using the code below which I got from this article and linked git. I can get results using the dimension “pagePath” but this only gives me the URL before “?”. I need the full page URL so this isn’t enough. I can get data using the dimension “fullPageUrl” in the GA4 Query Explorer but the API returns no data without errors.