Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
PersonalizeCloud Portal
Sitecore Personalize developer documentation
  • Developing with Sitecore Personalize
            • Boxever.eventCreate(event, callback, format)
            • Boxever.callFlows(flow, callback)
            • Boxever.addUTMParams(event)
            • Boxever.browserCreate(object, callback, format)
            • Boxever.browserShow(browserId, clientKey, callback, format)
            • Boxever.getBucketNumber([callback])
            • Boxever.getClientKey()
            • Boxever.getCookie(cookieName)
            • Boxever.getID()
            • Boxever.reset()
            • Boxever.setCookie(cookieName, cookieValue[, expiresIn])
            • Boxever.templating()
            • Boxever.triggerExperiences()
        • Troubleshooting
        • Release notes
  1. Functions
  1. Sitecore Personalize developer documentation
  2. Stream API

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()](bx-eventcreate.md "Boxever.eventCreate(event, callback, format)").

Parameters

none

Return value

string

Example

Log the browser ID to the console:

console.log(Boxever.getID());
// "a38b230c-11eb-4cf9-8d5d-274e9f344925​"
If you have suggestions for improving this article, let us know!

© Copyright , Sitecore A/S or a Sitecore affiliated company.
All rights reserved.

Privacy policySitecore Trust CenterTerms of use
PersonalizeCloud Portal