analytics-events
Installation
SKILL.md
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. All events must be defined in TypeScript types before use.
Key Files:
frontend/src/metabase-types/analytics/event.ts- Event type definitionsfrontend/src/metabase-types/analytics/schema.ts- Schema registryfrontend/src/metabase/analytics/- Core tracking functions (import frommetabase/analytics)- Feature-specific
analytics.tsfiles - Tracking function wrappers
Quick Checklist
When adding a new analytics event: