public function setDeviceProperties(array $data)
{
$data = array_merge($this->properties, $data);
if (empty($data['userAgent']) && !empty($this->_properties['userAgent'])) {
$data['userAgent'] = $this->_properties['userAgent'];
}
$this->properties = $data;
$this->_dirty['properties'] = true;
}