analytics-tracking

Set up, improve, and audit analytics tracking for GA4 and Google Tag Manager.

Updated Feb 14, 2026
One-click install
npx skills add https://github.com/lionheartapp/lionheart-ops --skill analytics-tracking-lionheartapp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analytics-tracking
Source: https://github.com/lionheartapp/lionheart-ops/tree/main/.claude/skills/analytics-tracking
Command: npx skills add https://github.com/lionheartapp/lionheart-ops --skill analytics-tracking-lionheartapp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Many teams collect analytics without a clear plan, producing noisy data that doesn't answer business questions; this Skill helps teams design, implement, and validate tracking that directly informs product and marketing decisions. It focuses work on measurable conversions, consistent event naming, and data quality so stakeholders can trust metrics.

Core Features & Use Cases

  • Tracking Plan & Event Library: Define event names, properties, triggers, and conversion rules for marketing sites and product flows.
  • Implementation Guidance: Step-by-step patterns for GA4 and Google Tag Manager including dataLayer structure, tag/trigger design, and recommended custom events.
  • Validation & Debugging: Checks and tools to validate events (DebugView, GTM Preview), prevent duplicates, and monitor data quality.
  • Privacy & Compliance: Advice on consent mode, IP anonymization, and avoiding PII in analytics properties.
  • Use Case: Build a tracking plan for a SaaS marketing funnel that captures CTAs, form submissions, signups, and purchase conversions, then implement and validate via GTM and GA4.

Quick Start

Create a concise tracking plan listing 5–10 core events with names, properties, triggers, and which conversions they inform, then implement them via GTM/gtag and validate in GA4 DebugView.

Frequently Asked Questions about analytics-tracking

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a GA4 tracking plan for a SaaS marketing funnel?

A GA4 tracking plan defines 5–10 core events with names, properties, triggers, and conversion rules for marketing CTAs, form submissions, signups, and purchases. You implement these events via Google Tag Manager and validate them using GA4 DebugView to ensure data quality.

What's the best way to validate event tracking in GA4 and prevent duplicate data?

Validating event tracking in GA4 uses DebugView and GTM Preview mode to check event payloads, prevent duplicates, and monitor data quality. You verify that dataLayer patterns, triggers, and custom events fire correctly before publishing your tracking configuration.

How do I set up dataLayer structure and custom events in Google Tag Manager?

Setting up dataLayer structure in Google Tag Manager involves defining consistent event naming conventions, property schemas, and trigger rules for custom events. You design tags and triggers that push structured data to the dataLayer, enabling accurate conversion tracking in GA4.

Does this analytics tracking approach work with Mixpanel and similar product analytics tools?

Yes, the analytics tracking approach applies to Mixpanel and similar platforms for product analytics and conversion tracking. It ensures consistent event naming conventions, data quality, and validation patterns across marketing sites and product flows beyond just GA4.

How do I handle privacy consent and avoid PII in my analytics tracking implementation?

Handling privacy consent in analytics tracking requires configuring consent mode, IP anonymization, and ensuring no PII enters analytics properties. You implement privacy-compliant event tracking that respects user consent signals while maintaining measurement accuracy.

Why does my analytics data produce noisy metrics that don't answer business questions?

Analytics data produces noisy metrics when teams collect events without a clear tracking plan, lacking consistent event naming and defined conversion rules. You fix this by designing measurement focused on measurable conversions and validated dataLayer patterns that stakeholders can trust.