Skip to main content
Users
CloudPortalLogin
  • Powered byPowered by
Developing with Sitecore CDP
Data privacy
Before you start sending data
Integrating with Sitecore CDP
Stream API
Batch API
REST APIs
Data lake export service
  • Sitecore CDP for developers
  • Stream API
  • Boxever JavaScript Library (legacy) reference
  • Functions
  • Boxever.reset()

Boxever.reset()

The reset() function reinitializes the Boxever JavaScript Library. During reinitialization, the function:

  • Clears the event queue.

  • Deletes the browser ID and the guest reference.

  • Reloads the Boxever JavaScript Library. During loading, the Boxever JavaScript Library creates a browser ID and a guest reference.

Parameters

none

Return value

undefined

Example

This example describes how to test that the reset() function deletes, then creates a new browser ID.

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

Do you have some feedback for us?

If you have suggestions for improving this article,

Privacy policySitecore Trust CenterCopyright © 1999-2026 Sitecore