Features
Web Analytics
GA4 and PostHog integration for traffic, funnels, top pages, and user behavior.
Web Analytics
Web Analytics integrates with GA4 and PostHog to provide traffic data, funnels, top pages, geographic breakdowns, and error tracking — accessible from the dashboard and agent tools.
Data Sources
| Source | What It Provides | Connector |
|---|---|---|
| PostHog | Product analytics, funnels, feature flags | PostHog connector |
| GA4 | Website traffic, top pages, traffic sources | GA4 connector |
Both can be connected simultaneously — the dashboard merges data from both sources.
Metrics
| Metric | Description |
|---|---|
| Sessions | Total user sessions in period |
| Page Views | Total page views |
| Bounce Rate | Percentage of single-page sessions |
| Avg. Session Duration | Mean time on site |
| Top Pages | Most visited pages ranked by views |
| Traffic Sources | Where visitors come from (organic, paid, direct, referral) |
| Geographic Data | Visitor locations by country/city |
| Funnels | Multi-step conversion funnels |
| Errors | JavaScript errors and failed requests |
Agent Tools
Agents access analytics through the reeve_analytics tool:
// Overall summary
reeve_analytics({ action: "get_summary", period: "30d" })
// Conversion funnels
reeve_analytics({ action: "get_funnel", period: "7d" })
// Top performing pages
reeve_analytics({ action: "get_top_pages", limit: "10" })
// Daily traffic trends
reeve_analytics({ action: "get_daily", period: "30d" })
// Traffic source breakdown
reeve_analytics({ action: "get_traffic_sources", period: "30d" })
// Geographic distribution
reeve_analytics({ action: "get_geographic" })
// Error tracking
reeve_analytics({ action: "get_errors", period: "7d" })Example response (summary)
{
"sessions": 24500,
"page_views": 67800,
"bounce_rate": 0.42,
"avg_session_duration": "3m 12s",
"top_pages": [
{ "path": "/", "views": 12000 },
{ "path": "/pricing", "views": 5400 },
{ "path": "/docs", "views": 4200 }
],
"traffic_sources": {
"organic": 45,
"direct": 25,
"referral": 18,
"paid": 12
}
}Dashboard Panel
The Web Analytics panel in the Cockpit Dashboard:
┌──────────────────────────────────┐
│ Traffic 30d ▼ │
│ │
│ Sessions: 24.5K ↑ 7% │
│ Page Views: 67.8K ↑ 12% │
│ Bounce: 42% ↓ 3% │
│ │
│ Top Pages: │
│ 1. / 12K views │
│ 2. /pricing 5.4K views │
│ 3. /docs 4.2K views │
└──────────────────────────────────┘Connect at least one analytics provider (PostHog or GA4) via the Connectors page to populate the analytics panel.