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(web): Record time slider interactions with plausible #6707
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one comment:)
web/src/components/TimeSlider.tsx
Outdated
onValueChange={(value) => onChange(value[0])} | ||
onValueChange={(value) => { | ||
onChange(value[0]); | ||
trackTimeSliderEvent(value[0]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I can tell value[0]
is just a number, e.g. for hourly its 0-24 and monthly 0-12, but how do we know if that number corresponds to hourly, daily, monthly or yearly? Or are we not interested in that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I think we should include the time aggregate too. I'll update the PR to include it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🌐
Issue
We don't know how users interact with out time slider
Description
This PR sends a custom event to Plausible for interactions with the time slider component, I've alos created a goal and custom property to record the unique interactions with the time slider and property of selected index.