Support for custom event tracking
Hi, Thanks for your work on this project.
I'm wondering if we have any plans to support for custom event tracking
Could you give us examples of what kind of custom events you want to track?
Or, if you're doing that already with another tool, what that looks like code-wise?
I was thinking of something similar to how Vercel's Analytics lets you track custom events — for example:
window.counterscale.trackEvent('button_click', {
button: 'download',
page: window.location.pathname
});
It would be helpful to track things like button clicks, feature usage, or funnel progress, and associate them with a pageview or session. If Counterscale could support something like that, even in a lightweight form, it’d be awesome.
Reference: https://vercel.com/docs/analytics/custom-events
hey @congdv - I've been thinking about this for a bit and just posted an RFC in Discussions for how I think we should implement this in Counterscale. Would love any feedback/input you have!