Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › Retrieving Event Information Using Google Analytics 4 Reporting API › Reply To: Retrieving Event Information Using Google Analytics 4 Reporting API
-
Yes, it’s feasible to get the count of any named event using an API request in Google Analytics 4 (GA4), irrespective of whether it’s marked as a conversion. To retrieve data for a specific event like ‘events:online_enquiry’, you can make use of the Google Analytics Data API. It allows you to programmatically access report data in GA4 to count user events in your mobile apps and web. You’ll need to use the ‘runReport’ method with specified dimensions (for example, event name) and metrics (for example, event count). However, you’ll need to ensure you have the necessary permissions to access the relevant properties and that your request includes the correct parameters for your needs.