-
Notifications
You must be signed in to change notification settings - Fork 14
feat: add Plausible analytics tracking for code overlay interactions #334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add Plausible analytics tracking for code overlay interactions #334
Conversation
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
View your CI Pipeline Execution ↗ for commit 4dfeb55
☁️ Nx Cloud last updated this comment at |
|
View your CI Pipeline Execution ↗ for commit 4dfeb55
☁️ Nx Cloud last updated this comment at |
🔍 Preview Deployment: Website✅ Deployment successful! 🔗 Preview URL: https://pr-334.pgflow.pages.dev 📝 Details:
_Last updated: _ |
Merge activity
|
…334) # Add Plausible Analytics Event Tracking for Homepage Code Interactions This PR adds analytics event tracking for user interactions with the code overlay component on the homepage: - Added a global Plausible function definition in the site configuration to enable custom event tracking - Implemented tracking for three specific user interactions: - When users click the "Reveal Code" button (`home:reveal-code` event) - When users manually scroll through the code (`home:code-scroll` event, tracked only once per session) - Added logic to distinguish between programmatic scrolling (auto-scroll or scroll-to-top) and manual user scrolling - Added TypeScript declaration for the Plausible global function These analytics will help us better understand how users engage with the code examples on our homepage.

Add Plausible Analytics Event Tracking for Homepage Code Interactions
This PR adds analytics event tracking for user interactions with the code overlay component on the homepage:
home:reveal-codeevent)home:code-scrollevent, tracked only once per session)These analytics will help us better understand how users engage with the code examples on our homepage.