Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Add note that NPM libary only works in browser environments (#5495)

Karl-Aksel Puulmann65e93c60aec2
diff --git a/tracker/npm_package/README.md b/tracker/npm_package/README.md
index f545ad755d..dfd00731d1 100644
--- a/tracker/npm_package/README.md
+++ b/tracker/npm_package/README.md
@@ -15,6 +15,8 @@ Add [Plausible Analytics](https://plausible.io/) to your website.
- Provide manual values that will be bound to the event
- Full typescript support
+> **Important:** This library only works in browser environments. When using server-side rendering (SSR), the `init` and `track` functions will not work as they rely on browser APIs. Make sure to only initialize and track events on the client side.
+
## Package Installation
With npm: