We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The real-time metrics/dimensions listed here: https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema
...are not in the dimension/metric list fetched via ga_meta("data") and so DSL calls fail.
ga_meta("data")
ga_data_order(-minutesAgo) #Error in is.OrderBy(x[[1]]) : object 'minutesAgo' not found
Workaround - call functions the DSL uses yourself:
ga_data_order(googleAnalyticsR:::OrderBy(dimension = googleAnalyticsR:::DimensionOrderBy("minutesAgo"))) #==GA4 OrderBy== #Dimension: MinutesAgo #OrderType: ALPHANUMERIC #Descending: TRUE
e.g.
mins <- ga_data_order(googleAnalyticsR:::OrderBy(dimension = googleAnalyticsR:::DimensionOrderBy("minutesAgo"), desc = FALSE)) ga_data(prop_id, metrics = "activeUsers", dimensions = c("minutesAgo", "audienceName", "user_profession"), orderBys = mins, realtime = TRUE)
The text was updated successfully, but these errors were encountered:
the limit = -1 doesn't work either with real-time fetches
! http_400 limit must be positive. The API received limit = -1
Sorry, something went wrong.
gronerik
No branches or pull requests
The real-time metrics/dimensions listed here: https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema
...are not in the dimension/metric list fetched via
ga_meta("data")
and so DSL calls fail.Workaround - call functions the DSL uses yourself:
e.g.
The text was updated successfully, but these errors were encountered: