Boxever.browserShow(browserId, clientKey, callback, format)
The browserShow()
function retrieves the guest reference from Sitecore CDP.
The guest reference is in the customer.ref
key of the parameter that is passed to the callback function.
Parameters
Parameter |
Type |
Description |
Note |
---|---|---|---|
|
string |
The browser ID. |
Set the value to |
|
string |
The client key. |
Set the value to Or, to bypass authentication, set the value to |
|
function |
This callback function handles the response. |
The guest reference is in the |
|
string |
The format of the response. |
Set the value to |
Return value
undefined
Example
In the callback function, using the customer.ref
key, log the guest reference to the console: