2

When I request some metrics and dimensions (ga:users, ga:1dayUsers for example) from google analytics i have follow error: Ack! There was an error (400)Selected dimensions and metrics cannot be queried together.

In this guide when I check ga:users ga:1dayUsers is disabled. How to validate all combinations of metrics and dimensions for querying?

1 Answer 1

1

At this time there is no way to programmatically validate them. There is also no way to programmatically validate the query without just sending it to google and see if it works or not.

You can manually check if they can be combined using the Dimensions and metrics explorer.

enter image description here

2
  • But in this guide google validate it. How to get this validation rules?
    – Anton
    Jan 6, 2016 at 13:02
  • By clicking on the check boxes. There is no other way of doing it. Google hasn't released any rules stating what is valid or what isn't valid nor have they released an API that lets us test it. Jan 6, 2016 at 13:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.