Skip to main content
Datasite’s browser API records meaningful product actions, manual page views, and stable application identities. Do not send secrets or unnecessary personal data.

Track an event

Add properties when they explain the action:
Event names longer than 50 characters are truncated. Numbers keep up to four decimal places, strings have a maximum stored length of 500 characters, arrays become strings, and an object can contain up to 50 properties.
Do not send passwords, authentication tokens, payment card data, private messages, or other sensitive values in event properties.

Track a manual page view

Disable automatic tracking before sending manual page views:
You can override page properties:

Identify a signed-in user

Use a stable ID that does not expose an email address or another unnecessary personal value. Supplied properties become available as session or user properties for filtering and analysis.

Opt out or opt in

Opting out deletes the persistent visitor identifier and stops sending visitor_id. The current session can still send page views and events. Opting back in creates a new identifier.
getVisitorId() returns null when persistent identity is disabled.