Skip to content

Comments

feat: add posthog to track what examples are visited#90

Merged
miparnisari merged 4 commits intomainfrom
posthog
Dec 11, 2025
Merged

feat: add posthog to track what examples are visited#90
miparnisari merged 4 commits intomainfrom
posthog

Conversation

@miparnisari
Copy link
Contributor

Description

Capture events, including click events whenever people load a different example schema

Testing

  1. Update Dockerfile with key
  2. Run docker build . -t play && docker run -it -p 3000:3000 play
  3. Go to http://localhost:3000 and change the example schema
  4. Go to Posthog and verify that the event was captured:
image

@vercel
Copy link

vercel bot commented Dec 10, 2025

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

Project Deployment Preview Comments Updated (UTC)
playground Ready Ready Preview Comment Dec 11, 2025 1:07am

tstirrat15
tstirrat15 previously approved these changes Dec 10, 2025
Copy link
Contributor

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The Dockerfile is just for distribution - it's not actually how the playground is built/runs, so you'll need to add the posthog API key to env vars in Vercel (or get me to do it).

@miparnisari miparnisari merged commit 440ebcd into main Dec 11, 2025
5 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants