i used to options and failed in angular first case :I try used GA4 to get data but not work
https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runRealtimeReport
and return
error :
{
"error": {
"code": 403,
"message": "User does not have sufficient permissions for this property. To learn more about Property ID, see https://developers.google.com/analytics/devguides/reporting/data/v1/property-id.",
"status": "PERMISSION_DENIED"
}
}
and this, error because the authentication and failed in angular
second case: I used Analytic Firesbase in angular Getting started with Google Analytics but not found the method to get data from analytic