Reputation: 1
I tried to get the following query results but got error 400 "Selected dimensions and metrics cannot be queried together." I checked the dimensions and metrics reference guide but cannot find any clue. Please advise.
metrics: ga:hits
dimensions: ga:dateHour,ga:minute,ga:eventAction,ga:sourceMedium,ga:eventCategory,ga:previousPagePath,ga:pagePath
filters: ga:eventCategory=~^test
Upvotes: 0
Views: 2143
Reputation: 18250
As answered here, if you go to Google Analytics Dimensions & Metrics Explorer, you can select the checkbox next to metrics and dimensions. The page will gray out those other metrics or dimensions which are incompatible with your selection(s).
Upvotes: 1
Reputation: 679
Google Analytics has different scopes for dimensions and metrics: Hits and Sessions.
When calling hits (or 'hit-level metrics'), you must call dimensions only within that scope.
Here is a great post by Avinash Kaushik that explains this well: http://www.kaushik.net/avinash/hits-sessions-metrics-dimensions-web-analytics/.
Upvotes: 1