vercel / analytics

Privacy-friendly, real-time traffic insights
https://vercel.com/analytics
Mozilla Public License 2.0
416 stars 24 forks source link

Custom events from routes / SSR #98

Closed rsolomon closed 9 months ago

rsolomon commented 11 months ago

The documentation for custom events states:

It’s important to note that custom events can only be tracked on the client-side. Server-side events are not currently supported by Vercel Web Analytics.

Are server-side custom events on the roadmap? Or would you recommend an alternative approach? I know of a lot of the popular alternatives like Datadog and NewRelic, but I'd love to use a simpler integrated solution.

Thanks for all you folks do!

tobiaslins commented 11 months ago

Hey @rsolomon Server-side custom events are currently in development. You can already try using them using the beta package.

Find code examples here in the branch.

But heads up: This is an early access and the API might change before public release.

Let us know what you think

tobiaslins commented 9 months ago

Hey again! @rsolomon

They are out now! :) https://vercel.com/changelog/track-server-side-custom-events-with-vercel-web-analytics

rsolomon commented 9 months ago

@tobiaslins ahhh! I missed the first time you pinged this thread, d'oh!! I would have tried the beta since day 1 🤦‍♂️

Thanks so much for updating me again though, I'll give it a shot asap