Analytics Agent Skill
Web analytics integration — event tracking, custom dashboards, privacy-first.
The Skill
Full content, every format. Copy it, download it, or install with one command.
---
description: Web analytics integration — event tracking, custom dashboards, privacy-first.
homepage: https://yepapi.com/skills/analytics
metadata:
tags: [analytics, tracking, events, privacy]
---
# Web Analytics
## Rules
- Privacy-first: use Plausible, Fathom, or Umami for GDPR compliance — or self-host PostHog
- Server-side tracking for accuracy: Next.js middleware or API routes — not client-side only
- Custom events: track meaningful actions (signup, purchase, feature_used) — not just page views
- UTM parameters: parse `utm_source`, `utm_medium`, `utm_campaign` from URL — store with conversion events
- Event naming convention: `snake_case`, verb_noun format: `click_cta`, `submit_form`, `view_pricing`
- Dashboard: build internal analytics page using YepAPI domain data + your own event data
- Consent banner: required in EU — only load tracking after consent
- Exclude internal traffic: filter by IP or authenticated admin users
## Avoid
- Google Analytics without cookie consent — GDPR violation
- Tracking everything — focus on actionable metrics, not vanity page views
- Client-side only tracking — ad blockers remove 20-40% of data
- Sending PII (email, name) to analytics — use anonymous IDsInstall
Why Use the Analytics Skill?
Without this skill, your AI guesses at analytics patterns. It might hallucinate deprecated APIs, use outdated conventions, or miss best practices entirely. With it, your AI follows a proven ruleset — every suggestion aligns with current standards.
Drop this skill into your project and your AI instantly knows the rules. Better code suggestions, fewer errors, faster shipping.
Try These Prompts
These prompts work better with the Analytics skill installed. Your AI knows the context and writes code that fits.
"Add privacy-first event tracking with custom dashboards and conversion goals"
"Build an analytics setup that tracks page views, clicks, and custom events without cookies"
"Create a real-time analytics dashboard showing user activity and traffic sources"
Works Great With
Analytics skill — FAQ
It covers privacy-first event tracking, custom dashboard patterns, and web analytics integration. Your AI adds analytics code that respects user privacy and tracks meaningful metrics.
Run `npx skills add YepAPI/skills --skill analytics` in your project root. This copies the skill file into your repo where your AI coding tool can read it automatically.
Yes. The skill enforces privacy-first patterns including cookieless tracking, consent management, and data minimization. It covers both self-hosted and third-party analytics setups.