Overview
Access Google Analytics data and generate comprehensive reports for website performance analysis. Through Langdock’s integration, you can access and manage Google Analytics directly from your conversations.Authentication: OAuth
Category: Data & Analytics
Availability: All workspace plans
Available Actions
Get realtime users by device
google_analytics.get_realtime_users_by_device
Retrieves active users in the last 30 minutes broken down by device category (desktop, mobile, tablet)
Requires Confirmation: No
Parameters:
propertyId(TEXT, Required): The Google Analytics 4 property ID. This is the numeric identifier for your GA4 property (e.g., 123456789)
Run report
google_analytics.run_report
Generate custom analytics reports with flexible date ranges, metrics, and dimensions
Requires Confirmation: No
Parameters:
propertyId(TEXT, Required): The Google Analytics 4 property ID. This is the numeric identifier for your GA4 property (e.g., 123456789)startDate(TEXT, Required): Start date for the report in YYYY-MM-DD format or relative date (e.g., ‘7daysAgo’, ‘yesterday’)endDate(TEXT, Required): End date for the report in YYYY-MM-DD format or relative date (e.g., ‘yesterday’, ‘today’)metrics(TEXT, Required): The metric to include in the report (e.g., ‘sessions’, ‘activeUsers’, ‘screenPageViews’, ‘bounceRate’)dimensions(TEXT, Optional): Optional dimension to group the data by (e.g., ‘country’, ‘deviceCategory’, ‘pagePath’, ‘sessionSource’)pageFilter(TEXT, Optional): Optional filter to include only pages containing this text (e.g., ‘/de/pricing’, ‘/features’, ‘/blog’)
Run pivot report
google_analytics.run_pivot_report
Generate advanced pivot table reports for data analysis, correlation discovery, and comparing high/low performers across multiple dimensions
Requires Confirmation: No
Parameters:
propertyId(TEXT, Required): The Google Analytics 4 property ID. This is the numeric identifier for your GA4 property (e.g., 123456789)startDate(TEXT, Required): Start date for the report in YYYY-MM-DD format or relative date (e.g., ‘30daysAgo’, ‘7daysAgo’)endDate(TEXT, Required): End date for the report in YYYY-MM-DD format or relative date (e.g., ‘yesterday’, ‘today’)metrics(TEXT, Required): Comma-separated list of metrics to analyze (e.g., ‘sessions,activeUsers,screenPageViews,bounceRate’)dimensions(TEXT, Required): Comma-separated list of ALL dimensions you want to analyze. Note: In pivot reports, only dimensions that are also specified in ‘Pivot dimensions’ will be used to avoid API errors.pivotDimensions(TEXT, Required): Comma-separated list of specific dimensions to use as pivot columns/rows. These should be a subset of the dimensions above (e.g., ‘deviceCategory’ or ‘deviceCategory,country’)
Get metadata
google_analytics.get_metadata
Retrieve all available dimensions and metrics for the property, including custom dimensions and metrics
Requires Confirmation: No
Parameters:
propertyId(TEXT, Required): The Google Analytics 4 property ID. This is the numeric identifier for your GA4 property (e.g., 123456789)
Analyze content performance
google_analytics.analyze_content_performance
Specialized report for analyzing page/content performance to identify high and low performers, detect anomalies, and understand topic effectiveness
Requires Confirmation: No
Parameters:
propertyId(TEXT, Required): The Google Analytics 4 property ID. This is the numeric identifier for your GA4 property (e.g., 123456789)startDate(TEXT, Required): Start date for the analysis in YYYY-MM-DD format or relative date (e.g., ‘30daysAgo’, ‘7daysAgo’)endDate(TEXT, Required): End date for the analysis in YYYY-MM-DD format or relative date (e.g., ‘yesterday’, ‘today’)sortBy(TEXT, Optional): Metric to sort results by to identify top/bottom performers (e.g., ‘sessions’, ‘activeUsers’, ‘engagementRate’, ‘bounceRate’)limit(NUMBER, Optional): Maximum number of pages/content to return (default: 50, max: 100)pageFilter(TEXT, Optional): Filter to include only pages containing this text (e.g., ‘pricing’, ‘blog’, ‘features’). Leave empty for all pages.metrics(TEXT, Optional): Optional comma-separated list of metrics to include (e.g., ‘sessions,activeUsers,screenPageViews’)dimensions(TEXT, Optional): Optional comma-separated list of dimensions to group by (e.g., ‘pagePath,pageTitle’)
Analyze traffic sources
google_analytics.analyze_traffic_sources
Analyze traffic sources, acquisition channels, and marketing performance to detect anomalies and identify effective channels
Requires Confirmation: No
Parameters:
propertyId(TEXT, Required): The Google Analytics 4 property ID. This is the numeric identifier for your GA4 property (e.g., 123456789)startDate(TEXT, Required): Start date for the analysis in YYYY-MM-DD format or relative date (e.g., ‘30daysAgo’, ‘7daysAgo’)endDate(TEXT, Required): End date for the analysis in YYYY-MM-DD format or relative date (e.g., ‘yesterday’, ‘today’)groupBy(SELECT, Optional): Dimension to group traffic sources by (source, medium, campaign, channelGroup)metrics(TEXT, Optional): Optional comma-separated list of metrics to include (e.g., ‘sessions,activeUsers,newUsers,engagementRate’)sortBy(TEXT, Optional): Optional metric name to sort results by (e.g., ‘sessions’)
Batch run reports
google_analytics.batch_run_reports
Generate multiple custom reports in a single API call for efficient data analysis and comparison
Requires Confirmation: No
Parameters:
propertyId(TEXT, Required): The Google Analytics 4 property ID. This is the numeric identifier for your GA4 property (e.g., 123456789)reportRequests(MULTI_LINE_TEXT, Required): JSON array of report configurations. Each report should include startDate, endDate, metrics, and dimensions. Example: [{“startDate”: “7daysAgo”, “endDate”: “yesterday”, “metrics”: “sessions”, “dimensions”: “country”}, {“startDate”: “30daysAgo”, “endDate”: “yesterday”, “metrics”: “activeUsers”,…