Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › How can I configure metrics for my API? › Reply To: How can I configure metrics for my API?
-
Creating metrics for “Entrances”, “Exits”, and “Views” for your API would typically involve using performance tracking tools. However, there seems to be no current support for such a feature via API (here’s an issue raised on GitHub regarding this: https://github.com/googleapis/google-cloud-java/issues/9279). Alternatively, you might consider generating a similar report using the Google Analytics official dashboard. Here’s a link that may guide you through the process: https://support.google.com/analytics/answer/11080047. For information pertaining to currently supported metrics and dimensions through the data API, please consult the following link: https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema.