counterscale icon indicating copy to clipboard operation
counterscale copied to clipboard

Support for custom event tracking

Open congdv opened this issue 6 months ago • 3 comments

Hi, Thanks for your work on this project.

I'm wondering if we have any plans to support for custom event tracking

congdv avatar Jul 11 '25 18:07 congdv

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?

benvinegar avatar Jul 23 '25 06:07 benvinegar

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

congdv avatar Jul 24 '25 01:07 congdv

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!

stordahl avatar Aug 06 '25 14:08 stordahl