---
name: seo-audit-ga
description: Pull Google Analytics 4 data for SEO audit. Gets traffic by channel, top pages, user behavior. Requires Analytics MCP server.
disable-model-invocation: true
argument-hint: "[ga4-property-id] [days]"
---

# SEO Audit: Google Analytics Data Pull

Pull GA4 data for property `$0` over the last `$1` days (default 28).

## Prerequisites
- Google Analytics MCP server connected
- GA4 property access granted

## Data to pull:

1. **Traffic by channel** — sessions, users, pageviews, bounce rate, avg duration per channel group
2. **Top landing pages** — by sessions, with engagement metrics
3. **Device category** — mobile vs desktop vs tablet

Use the Analytics MCP tools:
- `mcp__analytics-mcp__run_report` with the property_id, date_ranges, dimensions, and metrics

### Channel report:
- dimensions: `sessionDefaultChannelGroup`
- metrics: `sessions`, `totalUsers`, `screenPageViews`, `bounceRate`, `averageSessionDuration`
- order by sessions descending

### Landing pages report:
- dimensions: `landingPage`
- metrics: `sessions`, `totalUsers`, `bounceRate`, `averageSessionDuration`
- order by sessions descending, limit 20

Save results to the project's reports directory.
