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

Refs #3490 Docs, and fix a few tests, more to come

parent bd4a8528
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -948,7 +948,7 @@ class PiwikTracker
}
/**
* The User ID is a string representing a given user in your system.
* Force the action to be recorded for a specific User. The User ID is a string representing a given user in your system.
*
* A User ID can be a username, UUID or an email address, or any number or string that uniquely identifies a user or client.
*
......
......@@ -39,6 +39,7 @@ class ProcessedReport
foreach ($reportsMetadata as $report) {
// See ArchiveProcessor/Aggregator.php - unique visitors are not processed for period != day
// todo: should use SettingsPiwik::isUniqueVisitorsEnabled instead
if (($period && $period != 'day') && !($apiModule == 'VisitsSummary' && $apiAction == 'get')) {
unset($report['metrics']['nb_uniq_visitors']);
}
......
......@@ -4,6 +4,7 @@
<idSite>1</idSite>
<idVisit>1</idVisit>
<visitIp>156.5.3.2</visitIp>
<userId />
<actionDetails>
<row>
......
......@@ -82,7 +82,7 @@ class TestRequestResponse
private function normalizeApiResponse($apiResponse)
{
if ($this->shouldDeleteLiveIds()) {
$this->removeAllIdsFromXml($apiResponse);
$apiResponse = $this->removeAllIdsFromXml($apiResponse);
}
if ($this->shouldDeleteLiveDates()) {
......@@ -225,7 +225,7 @@ class TestRequestResponse
private function shouldDeleteLiveIds()
{
return empty($this->params['keepLiveDates']);
return empty($this->params['keepLiveIds']);
}
private function shouldDeleteLiveDates()
......
......@@ -156,6 +156,14 @@
<segment>visitServerHour</segment>
<acceptedValues>0, 1, 2, 3, ..., 20, 21, 22, 23</acceptedValues>
</row>
<row>
<type>dimension</type>
<category>Visit</category>
<name>User ID</name>
<segment>userId</segment>
<acceptedValues>any non empty unique string identifying the user (such as an email address or a username).</acceptedValues>
<permission>1</permission>
</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