Getting a visitor's Frosmo ID
Some Frosmo APIs use the
cookieId parameter, which represents a visitor's Frosmo ID, to personalize responses to individual visitors.
You can get the Frosmo ID both on the client side (browser) and on the server side.
Getting the Frosmo ID on the client side
To get a visitor's Frosmo ID in a script running on the site, use the
frosmo.easy.uid.get() function provided by Frosmo Core.
const visitorId = frosmo.easy.uid.get();
Getting the Frosmo ID on the server side
To access the Frosmo ID on the server side, visitor ID cookie support must be enabled for the site. To enable the support, if not already enabled, contact Frosmo support.
To get a visitor's Frosmo ID in a server-side application, read the value of the
frosmo_uid cookie from an HTTP request.
For examples on how to do this in different programming languages, see the code snippets in Setting the Frosmo ID cookie from a web server.