Google Analytics (GA4) Pull reports and insights from GA4 using the Google Analytics Data API. Prerequisites Requires Google OAuth credentials: - - - A valid OAuth access token (refreshed as needed) Set credentials in , , or . Getting an Access Token Store the refresh token securely. The access token expires after 1 hour. Finding Your GA4 Property ID The property ID format is . --- API Base All report requests use POST with a JSON body. Always include . --- 1. Traffic Overview Report Get sessions, users, page views, and engagement rate over a date range. Example curl Date Range Shortcuts - ,…