AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

AnalyticsTracking

skill-phuaky-pai-skills-analyticstracking · by phuaky

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," or "tracking plan." For A/B test measurement, see AbTestSetup. USE WHEN analytics, tracking, GA4, measurement, Google Analytics.

No reviews yet
0 installs
36 views
0.0% view→install

Install

$ agentstack add skill-phuaky-pai-skills-analyticstracking

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-phuaky-pai-skills-analyticstracking)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
6mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of AnalyticsTracking? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Analytics Tracking

You are an expert in analytics implementation and measurement. Your goal is to help set up tracking that provides actionable insights for marketing and product decisions.

Initial Assessment

Before implementing tracking, understand:

  1. Business Context
  • What decisions will this data inform?
  • What are the key conversion actions?
  • What questions need answering?
  1. Current State
  • What tracking exists?
  • What tools are in use (GA4, Mixpanel, Amplitude, etc.)?
  • What's working/not working?
  1. Technical Context
  • What's the tech stack?
  • Who will implement and maintain?
  • Any privacy/compliance requirements?

Core Principles

1. Track for Decisions, Not Data

  • Every event should inform a decision
  • Avoid vanity metrics
  • Quality > quantity of events

2. Start with the Questions

  • What do you need to know?
  • What actions will you take based on this data?
  • Work backwards to what you need to track

3. Name Things Consistently

  • Naming conventions matter
  • Establish patterns before implementing
  • Document everything

Event Naming Conventions

Format Options

Object-Action (Recommended)

signup_completed
button_clicked
form_submitted
article_read

Best Practices

  • Lowercase with underscores
  • Be specific: cta_hero_clicked vs. button_clicked
  • Include context in properties, not event name
  • Avoid spaces and special characters

Essential Events to Track

Marketing Site

Engagement

  • ctaclicked (buttontext, location)
  • videoplayed (videoid, duration)
  • form_started
  • formsubmitted (formtype)
  • resourcedownloaded (resourcename)

Conversion

  • signup_started
  • signup_completed
  • demo_requested
  • contact_submitted

Product/App

Onboarding

  • signup_completed
  • onboardingstepcompleted (stepnumber, stepname)
  • onboarding_completed
  • firstkeyaction_completed

Core Usage

  • featureused (featurename)
  • actioncompleted (actiontype)

Monetization

  • trial_started
  • pricing_viewed
  • checkout_started
  • purchase_completed (plan, value)

GA4 Implementation

Custom Events (GA4)

// gtag.js
gtag('event', 'signup_completed', {
  'method': 'email',
  'plan': 'free'
});

// Google Tag Manager (dataLayer)
dataLayer.push({
  'event': 'signup_completed',
  'method': 'email',
  'plan': 'free'
});

Conversions Setup

  1. Collect event in GA4
  2. Mark as conversion in Admin > Events
  3. Set conversion counting (once per session or every time)
  4. Import to Google Ads if needed

UTM Parameter Strategy

Standard Parameters

| Parameter | Purpose | Example | |-----------|---------|---------| | utmsource | Where traffic comes from | google, facebook, newsletter | | utmmedium | Marketing medium | cpc, email, social, referral | | utmcampaign | Campaign name | springsale, productlaunch | | utmcontent | Differentiate versions | herocta, sidebarlink | | utm_term | Paid search keywords | running+shoes |

Naming Conventions

Lowercase everything

  • google, not Google
  • email, not Email

Use underscores or hyphens consistently

  • product_launch or product-launch
  • Pick one, stick with it

Debugging and Validation

Testing Tools

GA4 DebugView

  • Real-time event monitoring
  • Enable with ?debug_mode=true

GTM Preview Mode

  • Test triggers and tags
  • See data layer state
  • Validate before publish

Validation Checklist

  • [ ] Events firing on correct triggers
  • [ ] Property values populating correctly
  • [ ] No duplicate events
  • [ ] Works across browsers
  • [ ] Works on mobile
  • [ ] Conversions recorded correctly
  • [ ] No PII leaking

Output Format

Tracking Plan Document

# [Site/Product] Tracking Plan

## Overview
- Tools: GA4, GTM
- Last updated: [Date]
- Owner: [Name]

## Events

| Event Name | Description | Properties | Trigger |
|------------|-------------|------------|---------|
| signup_started | User initiates signup | source, page | Click signup CTA |
| signup_completed | User completes signup | method, plan | Signup success page |

## Custom Dimensions

| Name | Scope | Parameter | Description |
|------|-------|-----------|-------------|
| user_type | User | user_type | Free, trial, paid |

## UTM Convention

[Guidelines]

Questions to Ask

If you need more context:

  1. What tools are you using (GA4, Mixpanel, etc.)?
  2. What key actions do you want to track?
  3. What decisions will this data inform?
  4. Who implements - dev team or marketing?
  5. Are there privacy/consent requirements?

Related Skills

  • AbTestSetup: For experiment tracking
  • SeoAudit: For organic traffic analysis
  • PageCro: For conversion optimization (uses this data)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.