Skip to main content
This covers the main entry, @maqetin/sdk-js, version 0.2.0. The server entry runs in Node and touches no visitor’s device. Name these fields in your privacy notice.

What the SDK collects

disableAutoCollection: true leaves these out of context. Two still go out: anonymousId, on every call, and the page, in page view properties until you set autoPageViews: false. storage: memoryStorage() keeps the three ids in memory: they last until the page closes, and a visitor is identified on that page only.

What the SDK reads and writes on the device

Every read and write started in version 0.1.0. None asks the browser for a permission, and the SDK sets no cookie. If the browser refuses storage, the three ids last until the page closes. The client also listens for pagehide, visibilitychange and popstate, and wraps history.pushState and history.replaceState, to send queued calls before the page closes and to see a new path. These read only whether the page is hidden.