Skip to content

Conversation

@max-digi
Copy link

@max-digi max-digi commented Feb 3, 2026

Summary

Adds PostHog tracking to the 'Was this helpful?' feedback widget, while keeping existing Slack notifications.

Changes

  • Added posthog-node for server-side event capture
  • Created combined feedback adapter that sends to both Slack and PostHog
  • Added new PostHog events:
    • docs_feedback_submitted - all feedback submissions
    • docs_feedback_helpful - positive feedback
    • docs_feedback_not_helpful - negative feedback

Event Properties

  • feedback_helpful: boolean
  • feedback_category: e.g. 'Accurate', 'Hard to understand', 'Missing information'
  • feedback_message: free-form user message
  • feedback_page_url: full URL of the page
  • page_path: just the pathname
  • site: 'docs'

Testing

Typecheck passes. Requires VITE_POSTHOG_KEY env var (already set in Vercel).

o-az and others added 5 commits January 28, 2026 14:03
- Add posthog-node for server-side event capture
- Create combined feedback adapter (Slack + PostHog)
- Track docs_feedback_submitted, docs_feedback_helpful, docs_feedback_not_helpful events
- Include page URL, category, and message in event properties

Amp-Thread-ID: https://ampcode.com/threads/T-019c2341-4cc8-7512-a352-9a4cc95dfe5e
Co-authored-by: Amp <amp@ampcode.com>
@vercel
Copy link

vercel bot commented Feb 3, 2026

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

Project Deployment Actions Updated (UTC)
tempo-docs Error Error Feb 4, 2026 4:54pm

Request Review

@max-digi
Copy link
Author

max-digi commented Feb 3, 2026

@max-digi max-digi requested a review from goksu February 3, 2026 19:12
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.

4 participants