google/analytics-data
Idiomatic PHP client for the Google Analytics Data API (GA4). Query reports, dimensions/metrics, audience exports, and more via REST or gRPC. Install with Composer and authenticate with Google Cloud credentials to start making requests.
Adopt When:
SheetExportAudienceList is deprecated).Look Elsewhere If:
google/analytics for UA (deprecated in 2023).*"This package lets us own our analytics infrastructure—no more vendor lock-in to tools like Mixpanel or Amplitude. By integrating Google Analytics Data API directly into our PHP stack, we can:
*"This is a drop-in replacement for manual API calls or bloated SDKs. Key wins:
SheetExportAudienceList is removed (PR #9145). If your app relies on this, migrate to direct API exports or v1beta.
Trade-offs:SheetExportAudienceList dependencies."*"This gives us direct control over GA4 data—no more scraping or manual exports. Highlights:
ga4:session_duration + device_category).sampling_level to balance cost/accuracy for large datasets.
Example: We could automate weekly cohort reports in PHP, eliminating manual CSV exports.
Action Item: Review existing workflows for SheetExportAudienceList usage and plan migration to direct API exports or alternative tools."How can I help you explore Laravel packages today?