KyleK
November 8, 2011, 5:54pm
1
[EDIT]
I tinkered a hack to resolve my problem :
It’s here
Hi,
I would know if it was possible to get a list with percent of browser without version.
Instead of :
I would have :
Thanks or sorry for my english.
ts77
(Thomas Seifert)
November 9, 2011, 8:53am
2
How about the “Browser families” report under Visitors -> Settings?
KyleK
November 9, 2011, 10:32am
3
In fact, the browser families is not the information I would to know, because Chrome and Safari are not separate (webkit), IceWeasel, Firefox, Flock neither (Gecko).
I’m interrested in the exact name of the browser :
And for the same numbers with the “browser families”, I’ve got :
KyleK
November 9, 2011, 9:08pm
4
I resolved it with a terribly ugly hack, but if someone is interrested and anything else is found :
core/Archive/Single.php (in getDataTable):
if(isset($GLOBALS['modification_navigateurs']))
{
$memo=array();
$data=unserialize($data);
for($i=0,$c=max(array_keys($data));$i<=$c;$i++) if(isset($data[$i]))
{
$label=$data[$i]->c[0]['label'];
$label=substr($label,0,strpos($label,';')).'; ';
if(isset($memo[$label]))
{
$mlabel=$memo[$label];
$data[$mlabel]->c[0][1]+=$data[$i]->c[0][1];
$data[$mlabel]->c[0][2]+=$data[$i]->c[0][2];
$data[$mlabel]->c[0][3]+=$data[$i]->c[0][3];
$data[$mlabel]->c[0][4]+=$data[$i]->c[0][4];
$data[$mlabel]->c[0][5]+=$data[$i]->c[0][5];
$data[$mlabel]->c[0][6]+=$data[$i]->c[0][6];
$data[$mlabel]->c[0][7]+=$data[$i]->c[0][7];
unset($data[$i]);
}
else
{
$data[$i]->c[0]['label']=$label;
$memo[$label]=$i;
}
}
$data=serialize($data);
}
And :
plugins/UserSettings/Controller.php:
function getBrowserName( $fetch = false)
{
$GLOBALS['modification_navigateurs']=true;
$view = $this->getStandardDataTableUserSettings(
__FUNCTION__,
'UserSettings.getBrowserName'
);
$view->setColumnTranslation('label', Piwik_Translate('UserSettings_ColumnBrowser'));
$view->setGraphLimit(7);
$retour=$this->renderView($view, $fetch);
unset($GLOBALS['modification_navigateurs']);
return $retour;
}
After I don’t remeber all I changed but, you can user getBrowserName instead of getBrowser and obtain the list of Browser names without version number.