Skip to main content
Users
CloudPortalLogin
  • Powered byPowered by
Developing with Sitecore Personalize
Data privacy
Before you start sending data
Integrating with Sitecore Personalize
Stream API
Personalize API Flow execution
REST APIs
  • Sitecore Personalize for developers
  • Stream API
  • Boxever JavaScript Library (legacy) reference
  • Functions
  • Boxever.getID()

Boxever.getID()

The getID() function returns the browser ID.

Every event that you send to Sitecore Personalize must include the browser ID.

Use this function in every event object you create and send to Sitecore Personalize. See eventCreate().

Parameters

none

Return value

string

Example

Log the browser ID to the console:

RequestResponse
console.log(Boxever.getID());
// "a38b230c-11eb-4cf9-8d5d-274e9f344925​"

Do you have some feedback for us?

If you have suggestions for improving this article,

Privacy policySitecore Trust CenterCopyright © 1999-2026 Sitecore