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

support custom event css class name #77

Closed noyyyy closed 1 year ago

noyyyy commented 1 year ago

Plausible now supports tracking custom events by just adding a CSS class name to an element https://plausible.io/docs/custom-event-goals#2-add-a-css-class-name-to-the-element-you-want-to-track-on-your-site.

Hope this library can support this feature.

4lejandrito commented 1 year ago

Published as next-plausible@3.7.0. Use like this:

<PlausibleProvider taggedEvents ....>

Thanks!