analytics-tracking

Unify GA4 and PostHog event tracking with a trackEvent() API.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/vassovass/scl-v3 --skill analytics-tracking
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analytics-tracking
Source: https://github.com/vassovass/scl-v3/tree/main/.claude/skills/analytics-tracking
Command: npx skills add https://github.com/vassovass/scl-v3 --skill analytics-tracking

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unifies GA4 and PostHog event tracking to ensure consistent analytics across teams.

Core Features & Use Cases

  • Dual-tracking architecture: Events are sent to both GA4 via GTM and PostHog for comprehensive analytics.
  • Easy event onboarding: Add new events with a single trackEvent() call and have it automatically pushed to both platforms.
  • Use Case: Imagine a product team implementing a new "purchase" event; with this Skill, the event is captured in GA4 and PostHog without writing separate instrumentation.

Quick Start

Invoke trackEvent() in your app to emit a sample event and verify data is sent to both GA4 and PostHog.

Frequently Asked Questions about analytics-tracking

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

FAQPage Schema
How do I unify analytics tracking across GA4 and PostHog?

Unified analytics tracking sends events to both GA4 via GTM and PostHog simultaneously through a dual-push architecture. Call trackEvent() in your app to emit events that automatically propagate to both platforms without separate instrumentation.

Can I track events in both GA4 and PostHog without duplicate code?

Yes. A single trackEvent() API call captures events for both GA4 and PostHog. The Skill enforces snake_case naming and consent gating, eliminating the need to write separate tracking logic for each platform.

What's the best way to add new events to GA4 and PostHog together?

Add new events by invoking trackEvent() once in your codebase. The event automatically routes to both GA4 through GTM and PostHog, providing a single source of truth across analytics platforms without manual GTM or SDK reconfiguration.

Does this work with GTM and the PostHog SDK?

Yes. This Skill integrates web apps that use GTM for GA4 tracking and the PostHog SDK for product analytics, enabling seamless dual-platform event capture with consistent naming and consent enforcement.

How does consent gating work in dual-platform tracking?

Consent gating restricts event transmission based on user consent status. Events respect consent requirements before pushing to either GA4 or PostHog, ensuring compliance without fragmenting tracking logic across platforms.