analytics-tracking

Set up, audit, and validate analytics tracking with GA4 and GTM.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/liammcleod-hub/blog --skill analytics-tracking-liammcleod-hub
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analytics-tracking
Source: https://github.com/liammcleod-hub/blog/tree/main/repo-skills/marketing-library/skills/analytics-tracking
Command: npx skills add https://github.com/liammcleod-hub/blog --skill analytics-tracking-liammcleod-hub

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Helps teams set up, audit, and improve analytics tracking so marketing and product decisions are driven by accurate, actionable data instead of guesswork.

Core Features & Use Cases

  • Tracking Plan Framework: Defines event taxonomy, naming conventions, properties, and a prioritized tracking plan for marketing sites, product apps, and e-commerce.
  • Implementation Guides: Practical GA4, gtag, and Google Tag Manager patterns including dataLayer examples, tag/trigger structure, and conversion marking.
  • Debugging & Compliance: Validation checklist and tools (GA4 DebugView, GTM Preview), common issue triage, and privacy/consent guidance for GDPR and consent mode.
  • Use Case: From a B2B SaaS signup funnel to e-commerce purchase tracking, use this Skill to design events, implement GTM pushes, and validate results against downstream systems.

Quick Start

Use analytics-tracking to produce a GA4 + GTM tracking plan that captures signup_completed, key feature events, and conversion definitions.

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 with consistent event naming and dataLayer patterns?

Create a GA4 tracking plan by defining event taxonomy, naming conventions, and properties for marketing sites and product apps. This framework ensures consistent event naming, structured dataLayer pushes, and reliable conversion definitions across web and e-commerce platforms.

How do I debug GA4 events and validate GTM tag firing?

Debug GA4 events and validate GTM tag firing using GA4 DebugView and GTM Preview mode. These tools allow you to triage common tracking issues, verify dataLayer pushes, and confirm that consent-aware tags fire correctly before going live.

What is the best way to set up consent-aware GTM tags for GDPR compliance?

Set up consent-aware GTM tags by implementing consent mode alongside your dataLayer design. This ensures tags respect privacy regulations, adjusting tag firing behavior based on user consent states while maintaining GA4 conversion tracking accuracy.

Can I use this approach to track both B2B SaaS signup funnels and e-commerce purchases?

Yes, this tracking approach applies to both B2B SaaS signup funnels and e-commerce purchases. It provides practical GA4, gtag, and Google Tag Manager patterns to design events, implement tracking, and validate results against downstream systems.

How do I structure UTM parameters and GA4 custom events for marketing analytics?

Structure UTM parameters and GA4 custom events by applying a prioritized tracking plan and event taxonomy. This ensures marketing analytics capture accurate attribution data and consistent event properties across campaigns and product interactions.