getDeviceId

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

Syntax

tracker.deviceId
getTracker().getDeviceId();

Returns

The unique device ID

Format: Example: abcd123e-a123-bcFG-d123

Type: String

Examples

To get a device ID:

tracker.deviceId
getTracker().getDeviceId();

Related methods