I use data from google analytics API (v3 and v4). I have access to all metrics.
I need to get the rate of Returning Customers.
So I need to get the number of new purchasers vs. le number of the old purchasers.
My question is: How can I use the google analytics metrics to calculate the returning customer's rate?
I found the solution for the google analytics v3 API
to calculate the number of new customers, calculate the number of users who made a single transaction during the defined period
to calculate the number of new returning customers, calculate the number of users who made more than one transaction during the defined period
we can simulate it here https://ga-dev-tools.web.app/query-explorer/