analyticslisted
Install: claude install-skill t0ddharris/mktg-os
# Analytics
Unified marketing analytics skill. Pulls real data from HubSpot, LinkedIn, X, and YouTube via CLI scripts.
## How It Works
Each platform has a standalone TypeScript script in `scripts/`. Run them with `npx tsx` from the repo root. They read credentials from `.env` and output markdown tables to stdout.
**All scripts live in:** `.claude/skills/analytics/scripts/`
## Platform Status
| Platform | Status | Env Vars Needed |
|----------|--------|-----------------|
| HubSpot | Ready | `HUBSPOT_PRIVATE_APP_TOKEN` |
| LinkedIn | Needs setup | `LINKEDIN_ACCESS_TOKEN`, `LINKEDIN_ORG_ID` |
| X / Twitter | Needs setup | `X_BEARER_TOKEN`, `X_USERNAME` |
| YouTube | Needs setup | `YOUTUBE_ACCESS_TOKEN`, `YOUTUBE_CHANNEL_ID` |
Setup instructions for each platform are in `setup/`.
## Commands
### HubSpot Email Performance
```bash
npx tsx .claude/skills/analytics/scripts/hubspot-emails.ts [period] [limit]
```
- **period:** 7d, 30d, 90d, all (default: 30d)
- **limit:** number of top emails to show (default: 10)
- **Output:** aggregate metrics (sent, delivered, open rate, click rate, CTOR, bounce rate) + top emails table
### HubSpot Landing Page Analytics
```bash
npx tsx .claude/skills/analytics/scripts/hubspot-pages.ts [period] [limit]
```
- **period:** 7d, 30d, 90d (default: 30d)
- **limit:** number of pages to show (default: 10)
- **Output:** summary (views, submissions, conversion rate) + page breakdown + traffic sources
### HubSpot Campaign Performance
```bash
npx