Skip to content

Commit 34429f6

Browse files
fix: add Plausible tracking for suggest_spec and report_issue links
- Add onClick tracking for "suggest spec" link in CatalogPage - Add onClick tracking for "report issue" link in SpecPage - Events: suggest_spec, report_issue (with spec/library props) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b365bbc commit 34429f6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/src/pages/CatalogPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ export function CatalogPage() {
197197
href={`${GITHUB_URL}/issues/new?template=spec-request.yml`}
198198
target="_blank"
199199
rel="noopener noreferrer"
200+
onClick={() => trackEvent('suggest_spec')}
200201
sx={{
201202
color: '#9ca3af',
202203
textDecoration: 'none',

app/src/pages/SpecPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ export function SpecPage() {
324324
href={buildReportUrl()}
325325
target="_blank"
326326
rel="noopener noreferrer"
327+
onClick={() => trackEvent('report_issue', { spec: specId, library: selectedLibrary || undefined })}
327328
sx={{
328329
color: '#9ca3af',
329330
textDecoration: 'none',

0 commit comments

Comments
 (0)