getDeviceId

The getDeviceId() method returns the device ID set for a specific user.

Syntax

getTracker().getDeviceId()
tracker.deviceId

Returns

The unique device ID

Format: Example: abcd123e-a123-bcFG-d123

Type: String

Examples

To get a device ID:

getTracker().getDeviceId();
tracker.deviceId

Related methods


Did this page help you?