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
  • Sitecore Engage SDK reference
  • Functions
  • Engage.getGuestId()

Engage.getGuestId()

The asynchronous getGuestId() function returns the guest reference.

sidebar. Parameters

none

Log the guest reference to the console:

RequestResponse
engage.getGuestId().then(guestId => {
  console.log(guestId);
});
// "f7aabbca-1c1b-4fc2-be72-3e16294a4f03"

Do you have some feedback for us?

If you have suggestions for improving this article,

Privacy policySitecore Trust CenterCopyright © 1999-2026 Sitecore