Analytics
-
Create a new site on Plausible
-
(optional) Some adblockers block Plausible. To fix this, proxy the script through the nextjs /api.
First add this to next.config.ts:
Then replace the Plausible script in the the main layout.ts
file:
I use Plausible for traffic analytics & custom events. If you want to use another tool, remove the Plausible script in the layout.js file.
Last updated on