New API query parameter that automatically includes dependent metrics in report output #21939
Labels
c: APIs
For bugs and features in the Matomo HTTP and plugin APIs.
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
not-in-changelog
For issues or pull requests that should not be included in our release changelog on matomo.org.
Milestone
Summary
Refs matomo-org/looker-studio-connector#3
Refs matomo-org/looker-studio-connector#29
Refs #21937
In the Looker Studio connector, in order to support further grouping of processed metrics, the connector will need to be able to automatically query the metrics that processed metrics depend on.
For example, when querying for
bounce_rate
, thebounce_count
andnb_visits
need to be returned as well. With the metadata in #21937, we'll be able to tell Looker Studio how to computebounce_rate
, so the data to do that computation, must exist in the API response.This is not the default behavior in Matomo. Normally, when a metric like
bounce_rate
is queried, the metrics needed to compute it will be queried from the database, but will be discarded after the computation is done. For Looker Studio, the connector needs a way to keep the discarded metrics.A new query parameter in the Reporting API (eg,
include_temporary_metrics=1
) that provides this behavior is a possible solution.The text was updated successfully, but these errors were encountered: