Skip to main content
Add client only when an event needs customer context. Its data applies to that event alone.

Add verified customer context

Send only the fields your privacy policy and the customer’s consent allow.

Choose the minimum fields

BilyAddress accepts city, state, zip, and country.
Do not send customer data by default. Collect only what you need, and honor the visitor’s consent and deletion choices.

Read the browser identifier

Use getBilyTrackingId() when you need Bily’s stable identifier for the current browser context.
The return type is string | null. During server rendering, it returns null. It is not an authenticated user ID, credential, or authorization value.

Keep each identity in its role

  • Use client.userId for your authenticated account identifier.
  • Use getBilyTrackingId() for the Bily browser identifier.
  • Never treat either value as proof that a request is authorized.
  • Do not place passwords, session tokens, or private keys in any event field.

Tracking ID reference

Identity and attribution

Data safety