feat(google-analytics): add Google Analytics GA4 integration#3600
feat(google-analytics): add Google Analytics GA4 integration#3600waleedlatif1 wants to merge 1 commit intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryMedium Risk Overview Extends OAuth support by registering the Written by Cursor Bugbot for commit 83f3be8. Configure here. |
Greptile SummaryThis PR adds a Google Analytics GA4 integration with three operations — Run Report, Run Realtime Report, and Get Metadata — following the established patterns of other Google integrations (OAuth provider registration, block config, tool files, icon, and docs). The integration is largely well-structured and consistent with the rest of the codebase, but there are two issues worth addressing before merging:
Confidence Score: 2/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Block as GoogleAnalyticsBlock
participant OAuth as betterAuth (google-analytics)
participant Tool as GA Tool (run_report / run_realtime_report / get_metadata)
participant GAAPI as Google Analytics Data API
User->>Block: Configure operation + propertyId + fields
Block->>OAuth: Request OAuth access token
OAuth-->>Block: accessToken (via google-analytics provider)
Block->>Tool: Invoke selected tool with params + accessToken
Tool->>Tool: Build request body (JSON.parse filters/orderBys)
Tool->>GAAPI: POST /v1beta/properties/{propertyId}:runReport
GAAPI-->>Tool: JSON response (rows, headers, metadata)
Tool->>Tool: transformResponse → structured output
Tool-->>Block: { dimensionHeaders, metricHeaders, rows, rowCount, metadata }
Block-->>User: Display output
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
| | `apiKey` | string | Yes | Firecrawl API key | | ||
| | `pricing` | custom | No | No description | | ||
| | `metadata` | string | No | No description | | ||
| | `rateLimit` | string | No | No description | |
There was a problem hiding this comment.
Unrelated tool docs modified with "No description" entries
Medium Severity
This PR adds pricing, metadata, and rateLimit parameters with "No description" to the docs of many unrelated tools (Firecrawl, Google Books, Google Maps, Google PageSpeed, Google Translate, Linkup, Perplexity, Serper, Jina). These appear to be auto-generated side effects from running a docs generation script, not intentional changes for a Google Analytics feature PR. The "No description" entries degrade documentation quality for those tools.


Summary
Type of Change
Testing
Tested manually
Checklist