pythongoogle-analyticsgoogle-analytics-apigoogle-data-api

Google Analytics Data API(GA4) - bounceRate metric missing


I'm trying to get bounceRate metric using new google analytics data API, but for some reason in default metrics list bounceRate is not listed at all.

I've also looked through the migration guide and this metric isn't mentioned there too.

Finally, I've tried to look through the custom metrics/dimensions guide, but it seems to me that you can't get bounceRate using custom metrics functionality either.

Perhaps someone could point out for me how can I include bounceRate using new data API?

Note: I also tried to include it as ga:bounceRate and bounceRate, but python API returns

google.api_core.exceptions.InvalidArgument: 400 Field bounceRate is not a valid metric. For a list of valid dimensions and metrics, see https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema


Solution

  • The new version of Google Analytics has replaced the concept of a Bounce with something called an Engaged Session. For a session to qualify as Engaged, the user must be do at least one of the following during their session:

    You'll notice several new metrics in GA4 property that are built on top of this concept:

    The new metric you’ll want to use instead of Bounce Rate is Engagement Rate.

    https://ken-williams.com/guide/overview/where-did-bounce-rate-go-in-google-analytics-4/