Update analytics tracking skill with document-level click tracking best practices#2159
Merged
morgan-wowk merged 1 commit intomasterfrom Apr 24, 2026
Merged
Update analytics tracking skill with document-level click tracking best practices#2159morgan-wowk merged 1 commit intomasterfrom
morgan-wowk merged 1 commit intomasterfrom
Conversation
…st practices Rewrites the skill to lead with the tracking() helper as the preferred approach for click events, explains when manual track() is appropriate (outcomes, impressions, debounced, toggles, non-interactive elements), and documents prop drilling as the intended pattern for getting data-tracking-id onto DOM elements through component layers. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
🎩 PreviewA preview build has been created at: |
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
maxy-shpfy
approved these changes
Apr 24, 2026
Author
Merge activity
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Updates the analytics tracking skill documentation to reflect the preferred
tracking()helper pattern for click events. The updated guide explains how the document-leveluseClickTrackinglistener automatically fires analytics events whendata-tracking-idattributes are present on interactive elements, eliminating the need for manualtrack()calls in most click scenarios.Key additions include:
tracking()with and without metadataasChildusage withtracking()track()calls are still appropriate (outcome events, impressions, debounced events, toggle state, non-interactive elements)tracking()identifiers (no action verb —.clickis appended automatically) from manualtrack()identifiers (full action verb required)completed,toggleadded;hover,shortcut_pressed,submit,startremoved)Related Issue and Pull requests
Type of Change
Checklist
Screenshots (if applicable)
Test Instructions
Review the updated
.claude/skills/analytics-tracking/SKILL.mdto verify the documentation accurately reflects thetracking()helper anduseClickTrackingpatterns used in the codebase.Additional Comments