NextJS recipe: Tracking 404s with Plausible and NextJS App Router
By default, all pages are statically rendered. If you add any backend or middleware logic to your NextJS page, it will be rendered as a server component. Plausible Analytics requires access to the window object to track 404 events. So create a client...
Mar 17, 20241 min read