Skip to content

feat(web): add Databuddy analytics with named CTA events#29

Merged
PunGrumpy merged 2 commits into
mainfrom
feat/web-databuddy-analytics
Jul 25, 2026
Merged

feat(web): add Databuddy analytics with named CTA events#29
PunGrumpy merged 2 commits into
mainfrom
feat/web-databuddy-analytics

Conversation

@PunGrumpy

Copy link
Copy Markdown
Owner

Summary

  • Mount the Databuddy React SDK in the root layout with automatic tracking enabled (interactions, outgoing links, web vitals, errors, data-track attributes), disabled in development
  • Add named events to the CTAs that matter, via data-track attributes (no manual track() calls, no extra client code):
    • install_command_copied — homepage installer copy button
    • docs_code_copied — docs code-block copy button
    • share_clicked with a channel property (x / linkedin / badge) — share card buttons
  • Outgoing links (GitHub, releases) are intentionally left without data-track since trackOutgoingLinks already covers them

Notes

  • Analytics only fire on production/preview builds (disabled in development)
  • Requires NEXT_PUBLIC_DATABUDDY_CLIENT_ID env var on the deployment
  • Web-only change — no changeset needed

Verification

  • react-doctor --scope changed: 100/100, no issues
  • Pre-commit hooks ran full monorepo format + build + test + typecheck on both commits

🤖 Generated with Claude Code

PunGrumpy and others added 2 commits July 25, 2026 18:04
Mounts the Databuddy React SDK in the root layout with automatic
tracking (interactions, outgoing links, web vitals, errors, data-track
attributes), disabled in development.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Named events for the actions that matter: install_command_copied on
the homepage installer, docs_code_copied on docs code blocks, and
share_clicked (with a channel property) on the share card buttons.
Outgoing links are already covered by trackOutgoingLinks.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docker-doctor Ready Ready Preview, Comment Jul 25, 2026 11:08am

@github-actions

Copy link
Copy Markdown
Contributor

React Doctor found no new issues. 🎉

Reviewed by React Doctor for commit 1035b3c.

@PunGrumpy
PunGrumpy merged commit e6b68f1 into main Jul 25, 2026
9 checks passed
@PunGrumpy
PunGrumpy deleted the feat/web-databuddy-analytics branch July 25, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant