Skip to content

feat: add Google Analytics integration#717

Open
AggManik wants to merge 3 commits intomainfrom
manik/integrations/google-analytics
Open

feat: add Google Analytics integration#717
AggManik wants to merge 3 commits intomainfrom
manik/integrations/google-analytics

Conversation

@AggManik
Copy link
Contributor

@AggManik AggManik commented Mar 21, 2026

Summary

  • Adds a full Google Analytics 4 integration with 67 MCP tools covering the GA4 Data API, Admin API (v1beta + v1alpha), and Measurement Protocol
  • Expands from the initial 8 tools to 67 by adding 59 new tools across audiences, custom dimensions/metrics, report tasks, audience exports/lists, batch reports, property management, data streams, and server-side event tracking
  • Adds gaPatch utility and new API base URLs (GA4_DATA_ALPHA_BASE, GA4_ADMIN_ALPHA_BASE) to support write operations and alpha endpoints
  • Updates OAuth scopes to include analytics and analytics.edit for write operations

Tools added

Category Tools
Batch reports batch_run_reports, batch_run_pivot_reports
Account get_account, get_data_sharing_settings, list_account_summaries, provision_account_ticket
Property get_property, update_property, create_rollup_property, get_attribution_settings, get_data_retention_settings, get_google_signals_settings, get_property_quotas_snapshot
Audiences list_audiences, get_audience
Audience lists create_audience_list, get_audience_list, list_audience_lists, query_audience_list, create_recurring_audience_list, get_recurring_audience_list, list_recurring_audience_lists
Audience exports create_audience_export, get_audience_export, list_audience_exports, query_audience_export
Report tasks create_report_task, get_report_task, list_report_tasks, query_report_task
Custom dimensions create_custom_dimension, get_custom_dimension, list_custom_dimensions, archive_custom_dimension
Custom metrics create_custom_metric, list_custom_metrics
Expanded data sets create_expanded_data_set, list_expanded_data_sets
Key events list_key_events, get_key_event
Data streams list_datastreams, list_event_create_rules, list_measurement_protocol_secrets, list_skadnetwork_conversion_value_schemas
Property links list_conversion_events, list_channel_groups, list_calculated_metrics, list_adsense_links, list_bigquery_links, list_firebase_links, list_google_ads_links, list_search_ads360_links, list_display_video360_advertiser_links, list_display_video360_advertiser_link_proposals, list_subproperty_event_filters, list_reporting_data_annotations, list_subproperty_sync_configs
Measurement Protocol send_events, validate_events

Closes #503

AggManik and others added 3 commits March 21, 2026 16:50
Implements Google Analytics 4 integration following IntegrationDefinitionV2
and auth v2 OAuth2 spec. Provides 8 MCP tools covering reports, real-time
data, pivot reports, funnel reports, metadata, compatibility checks, and
account/property listing via the GA4 Data API v1beta and Admin API v1beta.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Expands the integration from 8 to 67 tools covering the full GA4 Admin
and Data APIs — audiences, custom dimensions/metrics, report tasks,
audience exports/lists, batch reports, property management, data streams,
Measurement Protocol, and more.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…gration

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Integration: Google Analytics

1 participant