analytics

Designs and implements analytics tracking plans for GA4, GTM, and product analytics platforms.

Updated Aug 3, 2026
One-click install
npx skills add https://github.com/Yvesdefaria/GymLab --skill analytics-yvesdefaria
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analytics
Source: https://github.com/Yvesdefaria/GymLab/tree/main/.opencode/skills/marketingskills/skills/analytics
Command: npx skills add https://github.com/Yvesdefaria/GymLab --skill analytics-yvesdefaria

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Marketing and product teams struggle to set up consistent, decision-driven analytics tracking, often ending up with duplicate events, inconsistent naming, broken conversions, or non-compliant data collection. ## Core Features & Use Cases - Tracking Plan Design: Creates structured tracking plans with object-action event naming conventions, standard properties, and conversion definitions. - GA4 and GTM Implementation: Provides gtag.js snippets, dataLayer push patterns, tag/trigger/variable configurations, and consent mode setup. - Debugging and Compliance: Diagnoses duplicate events and data discrepancies using DebugView and GTM Preview, and implements GDPR-compliant consent-based tracking. - Use Case: A B2B SaaS team launching GA4 needs to track signups, feature usage, and upgrades; the Skill produces a complete tracking plan with event names, parameters, GTM dataLayer examples, and a validation checklist. ## Quick Start Ask the assistant to create an analytics tracking plan for your product covering signups, key feature usage, and conversions using GA4 and GTM.

Frequently Asked Questions about analytics

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

FAQPage Schema
How do I set up GA4 event tracking for my website?

Set up GA4 event tracking by creating a data stream, installing gtag.js or GTM, enabling enhanced measurement, and pushing custom events with gtag('event', ...) or dataLayer.push. Mark key events as conversions in GA4 Admin.

What naming convention should I use for analytics events?

Use the object-action format in lowercase with underscores, such as signup_completed or cta_clicked. Keep context in event properties rather than event names, and document all naming decisions in a tracking plan.

GA4 vs Mixpanel vs Amplitude: which analytics tool should I use?

GA4 suits web analytics and Google Ads integration, Mixpanel focuses on product event tracking, and Amplitude excels at cohort analysis. PostHog offers open-source analytics with session replay, while Segment routes data to multiple tools.

Why are duplicate events firing in Google Tag Manager?

Duplicate events usually come from multiple containers on one page, triggers firing twice, or duplicate tags. Use GTM Preview mode and GA4 DebugView to inspect which tags fired and check trigger conditions and tag sequencing.

How do I make GA4 tracking GDPR compliant?

Implement consent mode with analytics_storage denied by default, integrate a consent management platform, and update consent state after user approval. Also enable IP anonymization, configure data retention, and avoid sending PII in event properties.

Why don't my GA4 conversion numbers match my database?

Discrepancies typically stem from consent mode filtering, ad blockers, client-side versus server-side tracking differences, and session timeout settings. Validate with DebugView and consider server-side tracking for critical conversions.