Skip to content
Extraits de code Groupes Projets
Valider bfda8f31 rédigé par sgiehl's avatar sgiehl
Parcourir les fichiers

auto suggest all available browser engines for segment; fixed some tests

parent 1fdc07b7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -25,6 +25,7 @@ class BrowserEngine extends Base
$segment->setSegment('browserEngine');
$segment->setName('DevicesDetection_BrowserEngine');
$segment->setAcceptedValues('Trident, WebKit, Presto, Gecko, Blink, etc.');
$segment->setSuggestedValuesCallback("\DeviceDetector\Parser\Client\Browser\Engine::getAvailableEngines");
$this->addSegment($segment);
}
......
......@@ -41,7 +41,7 @@ class Core_WidgetsListTest extends DatabaseTestCase
'VisitsSummary_VisitsSummary' => 6,
'Live!' => 4,
'General_Visitors' => 12,
'UserSettings_VisitorSettings' => 12,
'UserSettings_VisitorSettings' => 11,
'General_Actions' => 10,
'Events_Events' => 3,
'Actions_SubmenuSitesearch' => 5,
......@@ -49,7 +49,7 @@ class Core_WidgetsListTest extends DatabaseTestCase
'Goals_Goals' => 1,
'SEO' => 2,
'Example Widgets' => 4,
'DevicesDetection_DevicesDetection' => 7,
'DevicesDetection_DevicesDetection' => 8,
'Insights_WidgetCategory' => 2
);
......
<?xml version="1.0" encoding="utf-8" ?>
<result>
<row>WebKit</row>
<row>Blink</row>
<row>Trident</row>
<row>Text-based</row>
<row>Dillo</row>
<row>iCab</row>
<row>Presto</row>
<row>Gecko</row>
<row>KHTML</row>
<row>NetFront</row>
</result>
\ No newline at end of file
......@@ -268,35 +268,6 @@
<imageGraphEvolutionUrl>index.php?module=API&amp;method=ImageGraph.get&amp;idSite=1&amp;apiModule=UserSettings&amp;apiAction=getBrowserVersion&amp;period=day&amp;date=2008-12-06,2009-01-04</imageGraphEvolutionUrl>
<uniqueId>UserSettings_getBrowserVersion</uniqueId>
</row>
<row>
<category>Visitor Settings</category>
<name>Browser Family</name>
<module>UserSettings</module>
<action>getBrowserType</action>
<dimension>Browser family</dimension>
<documentation>This chart shows your visitors' browsers broken down into browser families. &lt;br /&gt; The most important information for web developers is what kind of rendering engine their visitors are using. The labels contain the names of the engines followed by the most common browser using that engine in brackets.</documentation>
<metrics>
<nb_visits>Visits</nb_visits>
<nb_uniq_visitors>Unique visitors</nb_uniq_visitors>
<nb_actions>Actions</nb_actions>
<nb_users>Users</nb_users>
</metrics>
<metricsDocumentation>
<nb_visits>If a visitor comes to your website for the first time or if he visits a page more than 30 minutes after his last page view, this will be recorded as a new visit.</nb_visits>
<nb_uniq_visitors>The number of unduplicated visitors coming to your website. Every user is only counted once, even if he visits the website multiple times a day.</nb_uniq_visitors>
<nb_actions>The number of actions performed by your visitors. Actions can be page views, internal site searches, downloads or outlinks.</nb_actions>
<nb_users>The number of users logged in your website. It is the number of unique active users that have a User ID set (via the Tracking code function 'setUserId').</nb_users>
</metricsDocumentation>
<processedMetrics>
<nb_actions_per_visit>Actions per Visit</nb_actions_per_visit>
<avg_time_on_site>Avg. Time on Website</avg_time_on_site>
<bounce_rate>Bounce Rate</bounce_rate>
<conversion_rate>Conversion Rate</conversion_rate>
</processedMetrics>
<imageGraphUrl>index.php?module=API&amp;method=ImageGraph.get&amp;idSite=1&amp;apiModule=UserSettings&amp;apiAction=getBrowserType&amp;period=day&amp;date=2009-01-04</imageGraphUrl>
<imageGraphEvolutionUrl>index.php?module=API&amp;method=ImageGraph.get&amp;idSite=1&amp;apiModule=UserSettings&amp;apiAction=getBrowserType&amp;period=day&amp;date=2008-12-06,2009-01-04</imageGraphEvolutionUrl>
<uniqueId>UserSettings_getBrowserType</uniqueId>
</row>
<row>
<category>Visitor Settings</category>
<name>Browser Plugins</name>
......@@ -2045,6 +2016,34 @@
<imageGraphEvolutionUrl>index.php?module=API&amp;method=ImageGraph.get&amp;idSite=1&amp;apiModule=DevicesDetection&amp;apiAction=getBrowserVersions&amp;period=day&amp;date=2008-12-06,2009-01-04</imageGraphEvolutionUrl>
<uniqueId>DevicesDetection_getBrowserVersions</uniqueId>
</row>
<row>
<category>Visitor Devices</category>
<name>Browser engines</name>
<module>DevicesDetection</module>
<action>getBrowserEngines</action>
<dimension>Browser engine</dimension>
<metrics>
<nb_visits>Visits</nb_visits>
<nb_uniq_visitors>Unique visitors</nb_uniq_visitors>
<nb_actions>Actions</nb_actions>
<nb_users>Users</nb_users>
</metrics>
<metricsDocumentation>
<nb_visits>If a visitor comes to your website for the first time or if he visits a page more than 30 minutes after his last page view, this will be recorded as a new visit.</nb_visits>
<nb_uniq_visitors>The number of unduplicated visitors coming to your website. Every user is only counted once, even if he visits the website multiple times a day.</nb_uniq_visitors>
<nb_actions>The number of actions performed by your visitors. Actions can be page views, internal site searches, downloads or outlinks.</nb_actions>
<nb_users>The number of users logged in your website. It is the number of unique active users that have a User ID set (via the Tracking code function 'setUserId').</nb_users>
</metricsDocumentation>
<processedMetrics>
<nb_actions_per_visit>Actions per Visit</nb_actions_per_visit>
<avg_time_on_site>Avg. Time on Website</avg_time_on_site>
<bounce_rate>Bounce Rate</bounce_rate>
<conversion_rate>Conversion Rate</conversion_rate>
</processedMetrics>
<imageGraphUrl>index.php?module=API&amp;method=ImageGraph.get&amp;idSite=1&amp;apiModule=DevicesDetection&amp;apiAction=getBrowserEngines&amp;period=day&amp;date=2009-01-04</imageGraphUrl>
<imageGraphEvolutionUrl>index.php?module=API&amp;method=ImageGraph.get&amp;idSite=1&amp;apiModule=DevicesDetection&amp;apiAction=getBrowserEngines&amp;period=day&amp;date=2008-12-06,2009-01-04</imageGraphEvolutionUrl>
<uniqueId>DevicesDetection_getBrowserEngines</uniqueId>
</row>
<row>
<category>API</category>
<name>Main metrics</name>
......
......@@ -114,6 +114,14 @@
<segment>browserCode</segment>
<acceptedValues>FF, IE, CH, SF, OP, etc.</acceptedValues>
</row>
<row>
<type>dimension</type>
<category>Visit</category>
<name>Browser engine</name>
<segment>browserEngine</segment>
<acceptedValues>Trident, WebKit, Presto, Gecko, Blink, etc.</acceptedValues>
<suggestedValuesCallback>\DeviceDetector\Parser\Client\Browser\Engine::getAvailableEngines</suggestedValuesCallback>
</row>
<row>
<type>dimension</type>
<category>Visit</category>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter