Instrument and discover analytics events in Sentry's frontend UI. Use when adding tracking to buttons, pages, modals, or custom interactions, when defining new analytics events, when searching for existing events, when auditing analytics coverage for a feature, or when answering questions about how users interact with a feature. Trigger on "add analytics", "track event", "instrument analytics", "analytics event", "track click", "track page view", "add tracking", "what events exist for", "audit …
Instrument and discover analytics events in Sentry's frontend UI.
Use when adding tracking to buttons, pages, modals, or custom interactions, when defining new analytics events, when searching for existing events, when auditing analytics coverage for a feature, or when answering questions about how users interact with a feature.
Trigger on "add analytics", "track event", "instrument analytics", "analytics event", "track click", "track page view", "add tracking", "what events exist for", "audit analytics", "how many people", "how many users", "are people using", "is anyone clicking", "usage of", "who is using".
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Claude CodeNot declared
CursorNot declared
CodexNot declared
GitHub CopilotNot declared
WindsurfNot declared
Gemini CLINot declared
ClineNot declared
OpenCodeNot declared
Repository health
Stars44.7K
LicenseLICENSE.md
Default branchmaster
Open issues1,795
Status
Active
Package contents
Files included with this skill beyond the listing page.
skill mdSKILL.md10,133 B
docsSUMMARY.md634 B
History
First seen on skills.sh
First recorded snapshot · 16 installs
SKILL.md
Analytics Instrumentation
Add analytics events to Sentry's frontend UI using established patterns.
Answering "How Many People Do X?"
When the user asks about usage, adoption, or interaction counts for a feature:
Find the event: search Amplitude first (fastest), fall back to grepping the codebase.
If the Amplitude MCP is connected, query the data directly and report results.
If no matching event exists, tell the user the event is not tracked — then use AskUserQuestion to ask whether they want to instrument it. Do not proceed to instrumentation without explicit confirmation.
Read references/amplitude-mcp.md for the full discovery and querying workflow.
Before Any Change: Search First
NEVER create a new event without checking if one already exists.
Search static/app/utils/analytics/ for events matching the feature domain.
Grep for keywords related to the interaction (e.g., clicked, viewed, created).
If a matching event exists, reuse it — add parameters if needed rather than creating a duplicate.
Users of this skill may be less technical. Use AskUserQuestion at every decision point instead of dumping plans or code.
Situation
Action
Event not found, user asked a data question
Use AskUserQuestion: "This isn't tracked yet. Want me to add instrumentation?"
User confirms they want instrumentation
Go straight to implementation. Do not show code previews or step-by-step plans — just make the changes and summarize what you did.
Implementation is done, needs user action (e.g., Reload registration)
State the remaining step clearly in your summary.
Never dump code blocks as a "plan" and then ask "Want me to make these changes?" — either present a short plain-English summary via AskUserQuestion for confirmation, or proceed directly if the user already asked for instrumentation.
Event Pipeline
Every trackAnalytics call flows through the GetSentry override in static/gsApp/utils/rawTrackAnalyticsEvent.tsx:
Destination
When it fires
What it uses
How to query
Reload
Always
eventKey
Redash
Amplitude
When eventName is non-null and org exists
eventName
Amplitude UI or MCP
Pendo
Same as Amplitude
eventName
Pendo
Set eventName to a string (e.g., 'Logs Trace Link Clicked') to send to both Reload and Amplitude. This is the default for almost all events.
Set eventName to null only for high-volume events that would be too expensive for Amplitude. These are Reload-only and queryable via Redash.
Reload accepts events with allownoschema: true — no separate registration step is needed.
When searching for events, note that Reload-only events (null name) will not appear in Amplitude search. Fall back to grepping the codebase if Amplitude returns no results.
Non-Negotiable Constraints
trackAnalytics() calls must be type-safe. Every event key passed to trackAnalytics() must exist in a *EventParameters type and be registered in the domain's event map. This enforces that organization is always passed and that call sites sharing the same event key use consistent parameters. Declarative helpers — button analyticsEventKey/analyticsParams props and useRouteAnalyticsParams — are exempt because each instance is a one-off: two buttons labeled "Save" are inherently different (different forms, different contexts), so there are no shared call sites and less value in centralized types.
Prefer declarative helpers. Use button analytics props and route analytics hooks when they fit. Fall back to trackAnalytics() only for interactions those helpers don't cover.
All events flow through trackAnalytics() or built-in helpers. Never call window.analytics, Amplitude.track(), or any other analytics SDK directly.
Organization context is automatic. Pass organization to trackAnalytics — the override system handles the rest.
Reuse over create. Always search for existing events before defining new ones.
One event per interaction. Do not fire multiple events for the same user action.
No PII in event parameters. Never include user emails, IP addresses, full names, or other personally identifiable information. Use opaque IDs (org ID, user ID) when identity context is needed.