Skip to main content

Function

Describe the various options available in the SDK


getDeviceId

Returns information about the current user's Device ID in UUID format (e.g., ca3eda6a-8fe7-4834-b0f5-6ba942ef4beb).

Device ID is required to provide personalization services such as personalized recommendations.

OpmIO.getDeviceId();

// result
// ca3eda6a-8fe7-4834-b0f5-6ba942ef4beb
info

The Device ID could be different for the same user depending on the browser they use to access it.