4lejandrito / next-plausible

Simple integration for https://nextjs.org and https://plausible.io analytics
https://next-plausible.vercel.app
MIT License
603 stars 33 forks source link

How can I track an event on the server? #108

Closed Innders closed 12 months ago

Innders commented 12 months ago

Thanks for the awesome package!

Is it possible to track events using this package from the server?

I want to track some events inside an API route.

Thanks!

4lejandrito commented 12 months ago

Hi! Unfortunately not.

It is something I have wanted to add to the library for a long time, but I haven't. It should not be hard according to the official docs.

PRs are welcome :wink: