agenthog-integratelisted
Install: claude install-skill AnniesAI/agenthog-claude
# Integrate AgentHog
AgentHog is web + mobile analytics with an agent-readable CLI. Integrating it means:
picking the right SDK for the project, wiring it in once, and confirming events land.
Most of the value is in **autocapture** — you do not hand-instrument pageviews, clicks,
forms, or scroll depth. Add the SDK, then add custom events only for things autocapture
cannot see (server-side outcomes, purchases, feature usage).
## 1. Get a project key
Every install needs a project key shaped `ah_xxxxxxxx`. If the user has not given you one:
- Ask them to create a project at `https://agenthog.io/projects/new` and paste the key, or
- If the `ah` CLI is installed and authenticated, run `ah projects list` and use an existing key.
Project creation is capped by plan (Free: 1 project). If `/projects/new` shows an upgrade
notice instead of the create form, the account is at its cap — stop and let the user
either reuse an existing project's key or upgrade; there is nothing to integrate
without a key.
Do not invent a key and do not proceed without one — the tracker silently disables itself
when `data-project` is missing.
## 2. Pick the platform
Inspect the repo before choosing:
- `ProjectSettings/ProjectVersion.txt` or a `Packages/manifest.json` with `com.unity.*`
dependencies → it is a **Unity game** (§5)
- `package.json` with `react-native` or `expo` → **React Native install** (§4)
- `capacitor.config.ts` / `capacitor.config.json` (or `@capacitor/core` in package.json)
→ a