How-to · Marketing & Growth · By Corey Haines (Marketing)

How to use Analytics Tracking Setup in your AI agent

Install and use the Analytics Tracking Setup skill in Claude Code, Cursor, Codex, Gemini CLI, OpenCode, and Windsurf — with sample prompts.

What you'll get

This skill helps you implement and audit analytics tracking across your website or product. It guides you through setting up Google Analytics 4, Google Tag Manager, event tracking, UTM parameters, and conversion measurement. You'll learn how to track user behavior, validate your setup, and ensure you're collecting the right data to inform marketing and product decisions.

Step 1 — Get the skill source URL

The Analytics Tracking Setup skill lives at:

Step 2 — Add it to your AI agent

Copy one of these prompts and paste it into your AI tool. The agent will fetch and install the skill for you.

Claude Code

Add the agent skill from https://github.com/coreyhaines31/marketingskills/tree/main/skills/analytics-tracking to my project.

Cursor

Install this agent skill: https://github.com/coreyhaines31/marketingskills/tree/main/skills/analytics-tracking

Codex

Add this skill to .codex/skills/: https://github.com/coreyhaines31/marketingskills/tree/main/skills/analytics-tracking

Gemini CLI

Add the skill at https://github.com/coreyhaines31/marketingskills/tree/main/skills/analytics-tracking to my .gemini/skills/ directory.

OpenCode

Install this agent skill from https://github.com/coreyhaines31/marketingskills/tree/main/skills/analytics-tracking

Windsurf

Add this skill: https://github.com/coreyhaines31/marketingskills/tree/main/skills/analytics-tracking

Step 3 — Try these prompts

Once the skill is installed, ask your AI things like:

  • Launching a new site or product and need to measure user behavior
  • Track conversions, signups, or key marketing goals
  • Your analytics isn't working correctly or events aren't firing
  • Measure campaign performance with UTM parameters

What this skill does

  • Creates tracking plans that define what events and user actions to measure
  • Sets up Google Analytics 4, Google Tag Manager, and other analytics tools
  • Designs naming conventions and property structures for consistent data collection
  • Validates tracking implementation and debugs issues with events not firing correctly
  • Establishes UTM parameter strategies for tracking campaign performance
Made byCorey Haines (Marketing)
CategoryMarketing & Growth