analytics
An agent skill by coreyhaines31, from coreyhaines31/marketingskills. Tags: analytics, dashboard, data, tracking, validation.
What it does
When the user wants to set up, improve, or audit analytics tracking and measurement. Also use when the user mentions "set up tracking," "GA4," "Google Analytics," "conversion tracking," "event tracking," "UTM parameters," "tag manager," "GTM," "analytics implementation," "tracking plan," "how do I measure this," "track conversions," "Mixpanel," "Segment," "are my events firing," or "analytics isn't working." Use this whenever someone asks how to know if something is working or wants to measure marketing results. For choosing attribution models, comparing multi-touch/MMM/incrementality, or reconciling conflicting numbers across tools, see attribution. For A/B test measurement, see ab-testing.
Install
With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:
npx skills add coreyhaines31/marketingskills --skill analytics
Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):
git clone --depth 1 https://github.com/coreyhaines31/marketingskills
cp -r marketingskills/skills/analytics ~/.claude/skills/analytics
Safety box score
Grade A, minimal risk: 9 of 100 risk points, rated 2026-09-22. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.
This is a documentation-only analytics skill for GA4/GTM, UTM planning, and tracking validation. It does not ship executable scripts, but it does point the agent at hidden context files and includes examples that read browser cookies and handle identity data.
| Category | Level | Why |
|---|---|---|
| Code & shell execution | 0 (none) | No native scripts, shell commands, or code execution are shipped; the files are plain markdown with code examples only. |
| Network access | 0 (none) | The skill does not download code or send data to remote hosts; it only references external documentation links and analytics tools in prose. |
| Filesystem reach | 1 (low) | SKILL.md tells the agent to read hidden context files if present: "If `.agents/product-marketing.md` exists (or `.claude/product-marketing.md`, or the legacy `product-marketing-context.md` filename...) read it before asking questions." |
| Secrets & credentials | 1 (low) | The GTM reference includes a helper that reads browser cookies, e.g. `document.cookie.match('(^|;) ?user_id=([^;]*)(;|$)')`, which can surface identifier values if reused carelessly. |
| Privilege & persistence | 0 (none) | There is no sudo, global install, service registration, shell startup editing, or OS-level configuration in the skill files. |
| Instruction hijack surface | 0 (none) | The content does not instruct the agent to ignore its rules, hide information, or follow remote instructions; it is ordinary implementation guidance. |
| Irreversible actions | 0 (none) | The skill advises on tracking and measurement only; it does not send messages, deploy, publish, pay, book, or delete anything. |
| Transparency | 0 (none) | All shipped content is readable markdown; there are no binaries, minified bundles, base64 blobs, or downloaded installers. |
Before installing
- Review `SKILL.md` for the hidden-file lookup and decide whether that extra read scope is acceptable.
- Inspect `references/gtm-implementation.md` before use if your site stores anything sensitive in cookies.
- Test any tracking changes in a scratch analytics property first, with real user IDs and production data disabled.
Rated 2026-09-22 by an automated review of 5 files from the skill's repository.
Source
- Repository
- coreyhaines31/marketingskills (all skills from this repository)
- Path
- skills/analytics/SKILL.md
- Branch
- main
- Collection
- marketingskills
- Updated
- 2026-09-21
Related skills
- attribution — When the user wants to figure out which marketing actually drives conversions and revenue, choose or interpret an attribution model.
- seo-maps — Maps intelligence for local SEO: geo-grid rank tracking, GBP profile auditing via API, review intelligence across Google/Tripadvisor/Trustpilot.
- aws-messaging-and-streaming — Guides general use of AWS messaging and streaming services.
- caveman-stats — Show recorded output and cache-read token usage and mode attribution for the current Claude Code session, or locate the host's native usage report.
- google-sheets — Build and edit Google Sheets with the google-sheets tools - values, formatting, charts, conditional formatting, structure, validation.
- querying-data-lake — Execute and manage Athena SQL queries across default and federated catalogs (Glue, S3 Tables, Redshift).