[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-48fad982-7670-4c91-8b7b-57c319985e34":3,"$fx2IRsTM-UWqeJzna5ebLHtKD9Te6nRHEKC7x_cC3v-s":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"48fad982-7670-4c91-8b7b-57c319985e34","google-analytics-automation","通过Rube MCP（Composio）自动化Google Analytics任务：运行报告、列出账户\u002F属性、漏斗、交叉表、关键事件。始终首先搜索工具以查找当前架构。","cat_prod_data","mod_productivity","sickn33,productivity","---\nname: google-analytics-automation\ndescription: \"Automate Google Analytics tasks via Rube MCP (Composio): run reports, list accounts\u002Fproperties, funnels, pivots, key events. Always search tools first for current schemas.\"\nrisk: critical\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# Google Analytics Automation via Rube MCP\n\nAutomate Google Analytics 4 (GA4) reporting and property management through Composio's Google Analytics toolkit via Rube MCP.\n\n## Prerequisites\n\n- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)\n- Active Google Analytics connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `google_analytics`\n- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas\n\n## Setup\n\n**Get Rube MCP**: Add `https:\u002F\u002Frube.app\u002Fmcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.\n\n\n1. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds\n2. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `google_analytics`\n3. If connection is not ACTIVE, follow the returned auth link to complete Google OAuth\n4. Confirm connection status shows ACTIVE before running any workflows\n\n## Core Workflows\n\n### 1. List Accounts and Properties\n\n**When to use**: User wants to discover available GA4 accounts and properties\n\n**Tool sequence**:\n1. `GOOGLE_ANALYTICS_LIST_ACCOUNTS` - List all accessible GA4 accounts [Required]\n2. `GOOGLE_ANALYTICS_LIST_PROPERTIES` - List properties under an account [Required]\n\n**Key parameters**:\n- `pageSize`: Number of results per page\n- `pageToken`: Pagination token from previous response\n- `filter`: Filter expression for properties (e.g., `parent:accounts\u002F12345`)\n\n**Pitfalls**:\n- Property IDs are numeric strings prefixed with 'properties\u002F' (e.g., 'properties\u002F123456')\n- Account IDs are prefixed with 'accounts\u002F' (e.g., 'accounts\u002F12345')\n- Always list accounts first, then properties under each account\n- Pagination required for organizations with many properties\n\n### 2. Run Standard Reports\n\n**When to use**: User wants to query metrics and dimensions from GA4 data\n\n**Tool sequence**:\n1. `GOOGLE_ANALYTICS_LIST_PROPERTIES` - Get property ID [Prerequisite]\n2. `GOOGLE_ANALYTICS_GET_METADATA` - Discover available dimensions and metrics [Optional]\n3. `GOOGLE_ANALYTICS_CHECK_COMPATIBILITY` - Verify dimension\u002Fmetric compatibility [Optional]\n4. `GOOGLE_ANALYTICS_RUN_REPORT` - Execute the report query [Required]\n\n**Key parameters**:\n- `property`: Property ID (e.g., 'properties\u002F123456')\n- `dateRanges`: Array of date range objects with `startDate` and `endDate`\n- `dimensions`: Array of dimension objects with `name` field\n- `metrics`: Array of metric objects with `name` field\n- `dimensionFilter` \u002F `metricFilter`: Filter expressions\n- `orderBys`: Sort order configuration\n- `limit`: Maximum rows to return\n- `offset`: Row offset for pagination\n\n**Pitfalls**:\n- Date format is 'YYYY-MM-DD' or relative values like 'today', 'yesterday', '7daysAgo', '30daysAgo'\n- Not all dimensions and metrics are compatible; use CHECK_COMPATIBILITY first\n- Use GET_METADATA to discover valid dimension and metric names\n- Maximum 9 dimensions per report request\n- Row limit defaults vary; set explicitly for large datasets\n- `offset` is for result pagination, not date pagination\n\n### 3. Run Batch Reports\n\n**When to use**: User needs multiple different reports from the same property in one call\n\n**Tool sequence**:\n1. `GOOGLE_ANALYTICS_LIST_PROPERTIES` - Get property ID [Prerequisite]\n2. `GOOGLE_ANALYTICS_BATCH_RUN_REPORTS` - Execute multiple reports at once [Required]\n\n**Key parameters**:\n- `property`: Property ID (required)\n- `requests`: Array of individual report request objects (same structure as RUN_REPORT)\n\n**Pitfalls**:\n- Maximum 5 report requests per batch call\n- All reports in a batch must target the same property\n- Each individual report has the same dimension\u002Fmetric limits as RUN_REPORT\n- Batch errors may affect all reports; check individual report responses\n\n### 4. Run Pivot Reports\n\n**When to use**: User wants cross-tabulated data (rows vs columns) like pivot tables\n\n**Tool sequence**:\n1. `GOOGLE_ANALYTICS_LIST_PROPERTIES` - Get property ID [Prerequisite]\n2. `GOOGLE_ANALYTICS_RUN_PIVOT_REPORT` - Execute pivot report [Required]\n\n**Key parameters**:\n- `property`: Property ID (required)\n- `dateRanges`: Date range objects\n- `dimensions`: All dimensions used in any pivot\n- `metrics`: Metrics to aggregate\n- `pivots`: Array of pivot definitions with `fieldNames`, `limit`, and `orderBys`\n\n**Pitfalls**:\n- Dimensions used in pivots must also be listed in top-level `dimensions`\n- Pivot `fieldNames` reference dimension names from the top-level list\n- Complex pivots with many dimensions can produce very large result sets\n- Each pivot has its own independent `limit` and `orderBys`\n\n### 5. Run Funnel Reports\n\n**When to use**: User wants to analyze conversion funnels and drop-off rates\n\n**Tool sequence**:\n1. `GOOGLE_ANALYTICS_LIST_PROPERTIES` - Get property ID [Prerequisite]\n2. `GOOGLE_ANALYTICS_RUN_FUNNEL_REPORT` - Execute funnel analysis [Required]\n\n**Key parameters**:\n- `property`: Property ID (required)\n- `dateRanges`: Date range objects\n- `funnel`: Funnel definition with `steps` array\n- `funnelBreakdown`: Optional dimension to break down funnel by\n\n**Pitfalls**:\n- Funnel steps are ordered; each step defines a condition users must meet\n- Steps use filter expressions similar to dimension\u002Fmetric filters\n- Open funnels allow entry at any step; closed funnels require sequential progression\n- Funnel reports may take longer to process than standard reports\n\n### 6. Manage Key Events\n\n**When to use**: User wants to view or manage conversion events (key events) in GA4\n\n**Tool sequence**:\n1. `GOOGLE_ANALYTICS_LIST_PROPERTIES` - Get property ID [Prerequisite]\n2. `GOOGLE_ANALYTICS_LIST_KEY_EVENTS` - List all key events for the property [Required]\n\n**Key parameters**:\n- `parent`: Property resource name (e.g., 'properties\u002F123456')\n- `pageSize`: Number of results per page\n- `pageToken`: Pagination token\n\n**Pitfalls**:\n- Key events were previously called \"conversions\" in GA4\n- Property must have key events configured to return results\n- Key event names correspond to GA4 event names\n\n## Common Patterns\n\n### ID Resolution\n\n**Account name -> Account ID**:\n```\n1. Call GOOGLE_ANALYTICS_LIST_ACCOUNTS\n2. Find account by displayName\n3. Extract name field (e.g., 'accounts\u002F12345')\n```\n\n**Property name -> Property ID**:\n```\n1. Call GOOGLE_ANALYTICS_LIST_PROPERTIES with filter\n2. Find property by displayName\n3. Extract name field (e.g., 'properties\u002F123456')\n```\n\n### Dimension\u002FMetric Discovery\n\n```\n1. Call GOOGLE_ANALYTICS_GET_METADATA with property ID\n2. Browse available dimensions and metrics\n3. Call GOOGLE_ANALYTICS_CHECK_COMPATIBILITY to verify combinations\n4. Use verified dimensions\u002Fmetrics in RUN_REPORT\n```\n\n### Pagination\n\n- Reports: Use `offset` and `limit` for row pagination\n- Accounts\u002FProperties: Use `pageToken` from response\n- Continue until `pageToken` is absent or `rowCount` reached\n\n### Common Dimensions and Metrics\n\n**Dimensions**: `date`, `city`, `country`, `deviceCategory`, `sessionSource`, `sessionMedium`, `pagePath`, `pageTitle`, `eventName`\n\n**Metrics**: `activeUsers`, `sessions`, `screenPageViews`, `eventCount`, `conversions`, `totalRevenue`, `bounceRate`, `averageSessionDuration`\n\n## Known Pitfalls\n\n**Property IDs**:\n- Always use full resource name format: 'properties\u002F123456'\n- Numeric ID alone will cause errors\n- Resolve property names to IDs via LIST_PROPERTIES\n\n**Date Ranges**:\n- Format: 'YYYY-MM-DD' or relative ('today', 'yesterday', '7daysAgo', '30daysAgo')\n- Data processing delay means today's data may be incomplete\n- Maximum date range varies by property configuration\n\n**Compatibility**:\n- Not all dimensions work with all metrics\n- Always verify with CHECK_COMPATIBILITY before complex reports\n- Custom dimensions\u002Fmetrics have specific naming patterns\n\n**Response Parsing**:\n- Report data is nested in `rows` array with `dimensionValues` and `metricValues`\n- Values are returned as strings; parse numbers explicitly\n- Empty reports return no `rows` key (not an empty array)\n\n## Quick Reference\n\n| Task | Tool Slug | Key Params |\n|------|-----------|------------|\n| List accounts | GOOGLE_ANALYTICS_LIST_ACCOUNTS | pageSize, pageToken |\n| List properties | GOOGLE_ANALYTICS_LIST_PROPERTIES | filter, pageSize |\n| Get metadata | GOOGLE_ANALYTICS_GET_METADATA | property |\n| Check compatibility | GOOGLE_ANALYTICS_CHECK_COMPATIBILITY | property, dimensions, metrics |\n| Run report | GOOGLE_ANALYTICS_RUN_REPORT | property, dateRanges, dimensions, metrics |\n| Batch reports | GOOGLE_ANALYTICS_BATCH_RUN_REPORTS | property, requests |\n| Pivot report | GOOGLE_ANALYTICS_RUN_PIVOT_REPORT | property, dateRanges, pivots |\n| Funnel report | GOOGLE_ANALYTICS_RUN_FUNNEL_REPORT | property, dateRanges, funnel |\n| List key events | GOOGLE_ANALYTICS_LIST_KEY_EVENTS | parent, pageSize |\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,105,1719,"2026-05-16 13:21:03",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"效率工具","productivity","mdi-lightning-bolt-outline","文档处理、数据分析、自动化工作流",4,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"数据分析","data-analysis","mdi-chart-bar","数据可视化、统计分析",2,30,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"3fcb8d3c-7486-4fd5-8630-626e6d1890f1","1.0.0","google-analytics-automation.zip",3431,"uploads\u002Fskills\u002F48fad982-7670-4c91-8b7b-57c319985e34\u002Fgoogle-analytics-automation.zip","b767a298cea9062db2cb8995fdef7dbf01f54b30af839d7a1a25b3562ed35606","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":9388}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]