Using Comparisons, you can evaluate subsets of your data side by side.
Core reporting methods of the Data API v1beta are updated to support the
comparisons
field which, when included, specifies the configuration of comparisons requested.In a request, you can specify either a basic comparison, by providing the
dimensionFilter
expression with a request, or use a saved comparison by providing the comparison's resource name in thecomparison
field.The getMetadata method is updated to list all saved comparisons available for a property under the
comparisons
response field.When at least one comparison is specified in a request, the response will contain the
comparison
column identifying each comparison.Currently, saved comparisons can only be created using the Google Analytics UI.
Feedback
As part of the testing process, we kindly ask you to answer a quick Google Analytics 4 APIs Survey and provide any feedback you have regarding the testing experience.