Control when Nimvue starts tracking based on user consent.
Nimvue is designed to be privacy-first, but it’s still your responsibility to follow privacy laws in your region.If user consent is required (such as with a cookie banner), you should not load the Nimvue script until the user has given consent.
You can manage whether Nimvue tracks data after the script is loaded:
To stop tracking (e.g. user opts out):
Copy
stopNimvueTracking()
To resume tracking (e.g. user opts back in)
Copy
startNimvueTracking()
These functions update a flag in the browser local storage, so you don’t need to call these functions on every page, the client-side script will remember the user’s choice.