diff options
Diffstat (limited to 'plugins/Live/Visitor.php')
-rw-r--r-- | plugins/Live/Visitor.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/Live/Visitor.php b/plugins/Live/Visitor.php index fe839a67d8..8a8c984021 100644 --- a/plugins/Live/Visitor.php +++ b/plugins/Live/Visitor.php @@ -107,6 +107,7 @@ class Piwik_Live_Visitor 'browserCode' => $this->getBrowserCode(), 'browserVersion' => $this->getBrowserVersion(), 'screenType' => $this->getScreenType(), + 'deviceType' => $this->getDeviceType(), 'resolution' => $this->getResolution(), 'screenTypeIcon' => $this->getScreenTypeIcon(), 'plugins' => $this->getPlugins(), @@ -507,6 +508,14 @@ class Piwik_Live_Visitor return Piwik_getScreenTypeFromResolution($this->details['config_resolution']); } + function getDeviceType() + { + if(Piwik_PluginsManager::getInstance()->isPluginActivated('DevicesDetection')) { + return Piwik_getDeviceTypeLabel($this->details['config_device_type']); + } + return false; + } + function getResolution() { return $this->details['config_resolution']; |