Skip to content

analytics-events

Add product analytics events to track user interactions in the Metabase frontend

— (0 ratings) 2K downloads metabase
$ npx skills add https://github.com/metabase/metabase --skill analytics-events

Skills can run code on your computer. Review the source before installing. This listing is community-made and isn't affiliated with Anthropic.

About this skill

Frontend Analytics Events Skill

This skill helps you add product analytics (Snowplow) events to track user interactions in the Metabase frontend codebase.

Quick Reference

Analytics events in Metabase use Snowplow with typed event schemas. Simple events are declared where they are used — trackSimpleEvent is generic and validates the payload at the call site.

Key Files:

  • frontend/src/metabase/analytics/event.ts - Core tracking functions, trackSimpleEvent / trackSchemaEvent (import from metabase/analytics)
  • frontend/src/metabase-types/analytics/event.ts - The shared SimpleEventSchema only. Do not add event types here (see below)
  • frontend/src/metabase-types/analytics/schema.ts - Schema registry (custom/legacy schemas only)
  • Feature-specific analytics.ts files - Where your tracking functions and any local types live

Quick Checklist

When adding a new analytics event:


Installs: 2.0K | GitHub stars: 50.6K | First seen: Jan 22, 2026

Related skills

New

Frontend

hyperframes

HTML-based video composition with animations, captions, audio-reactive visuals, and scene transitions.

New • 1.7M
New

Frontend

hyperframes-registry

Install and wire reusable blocks and components into HyperFrames compositions via the registry.

New • 1.5M
New

Frontend

frontend-design

Distinctive, production-grade frontend interfaces that reject generic AI aesthetics through intentional design choices.

New • 1.2M