feat(site): add umami click tracking to interactive elements - #8
Merged
Conversation
Tag every clickable link and button on the marketing site with a data-umami-event attribute so Umami auto-tracks clicks (script already loaded in index.html). Consistent kebab-case, section-prefixed names: - Nav: nav-logo, nav-<section>, theme-toggle, nav-github - Hero: hero-copy-install, hero-github-star - Install: install-copy-go, install-copy-run (via new CopyChip event prop) - Screens: screens-tab-<id> - FAQ: faq-01..faq-06 (unique per question) - Releases: releases-full-changelog - Docs: docs-<slug> - Footer: footer-github/releases/issues/changelog + footer-nav-* CopyChip gains an optional event prop (default copy-command) plus data-umami-event-cmd to record which command was copied. Attributes only; no behavior or accessibility change. Files with no clickable elements (Architecture, Keys, Numbers, App) untouched.
β Deploy Preview for tihole ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Summary
Adds Umami click-event tracking to every clickable element on the marketing site in
/site. Umami is already loaded inindex.html, so this uses the no-JS approach: adata-umami-eventattribute that Umami auto-tracks on click. Attributes only β no behavior, styling, or accessibility changes.Event names are consistent kebab-case, section-prefixed:
nav-logo,nav-<section>(Γ6),theme-toggle,nav-githubhero-copy-install,hero-github-starinstall-copy-go,install-copy-runscreens-tab-<id>(Γ4)faq-01β¦faq-06(unique per question)releases-full-changelogdocs-<slug>(Γ4)footer-github/releases/issues/changelog,footer-nav-*(Γ4)CopyChipgains an optionaleventprop (defaultcopy-command) plusdata-umami-event-cmdso the three copy buttons report distinct names and record which command was copied. Files with no clickable elements (Architecture, Keys, Numbers, App) are untouched.Test plan
@babel/preset-react(the site transpiles in-browser at runtime, so malformed JSX would white-screen the page).data-umami-eventcoverage verified against the full clickable inventory; diff confirmed additions-only.