Dear all
I want to set up a reporting using website metrics. I need some metrics. I am looking into the analytics-API (e.g.: https://api.hubapi.com/analytics/v2/reports/totals/summarize/weekly?start=20220101&end=20220109) and it seems to me that it covers some of the metrics I’ll need:
- unique visitors: visitors
- number of sessions: visits
- pages per sessions: pageviewsPersSession
However, I was not able to find information for average session duration as well as bounce rate. I have not been able to figure out how do get those as it does not seem possible to add properties (which is the case for v3 of the companies-endpoint). It seems that I can get the bounce rate as well as session duration via the reporting-api (https://api.hubapi.com/analytics/v2/reports/pages/total?start=20120102&end=20220108)).
However, there are two problems with this approach:
1. Via the latter API I get loads of information I do not need. Does anyone know how I can get rid of the breakdown by pages so that it still shows me bounce rate and session duration (it does not work with v2/reports/totals/total as these two metrics disappear).
2. The analytics-API above has the advantage that I can summarize data to weekly, monthly etc. and thus it would be perfect if this could also be done for session duration and bounce rate.
Thanks in advance!