Installable skillMIT

Analytics Skill

Google Analytics 4, tag management, and event tracking.

BY a5c-aiUPDATED Oct 28, 2026
INTENDED FOR✳Claude Code>_Codex↗Cursor◎ChatGPT✦GeminiInstall in a listed agent.

instructions.md

---
name: analytics-a881439774e7
description: Google Analytics 4, tag management, and event tracking.
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
graph:
  domains: [domain:web-development]
  specializations: [specialization:web-development]
  skillAreas: [skill-area:analytics-tracking, skill-area:data-analytics]
  roles: [role:frontend-engineer, role:fullstack-engineer]
  topics: [topic:developer-experience]

---

# Analytics Skill

Expert assistance for web analytics implementation.

## Capabilities

- Configure Google Analytics 4
- Implement event tracking
- Set up tag management
- Create custom events
- Handle privacy compliance

## GA4 Implementation

```typescript
// gtag.js
declare global {
  interface Window {
    gtag: (...args: any[]) => void;
  }
}

export function trackEvent(action: string, category: string, label?: string) {
  window.gtag('event', action, {
    event_category: category,
    event_label: label,
  });
}

export function trackPageView(url: string) {
  window.gtag('config', GA_ID, {
    page_path: url,
  });
}
```

## Target Processes

- analytics-setup
- event-tracking
- conversion-tracking
COMPATIBILITY & REFERENCES

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.