How to add the script to your NextJS site
You can add the script directly to your head via "next/head" or react-helmet. However there is a simpler way that also provides custom events functionality:
"Next-Plausible" built and maintained by 4lejandrito. It supports: