getClientId
Learn how to get the visitor's client ID.
This method provides the client ID that identifies the visitor’s device.
Signature
This method has the following signature:
public function getClientId(): stringThis method returns the client ID as a UUID string.
Example
Here is a basic example of how to use this method:
<?phpuse Croct\Plug\Croct;
$croct = Croct::fromDotenv();$clientId = $croct->getClientId();