Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2016-10-03 08:17:37 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2016-10-03 08:17:37 +0300
commitd475dd18f118421c21050b5a6b8f58a2464b1f18 (patch)
treef17173566d286a75b1546b9e86b58c231c014c39 /plugins
parentecb3d2e833f4c667875ca0249fa83b212ccf62a0 (diff)
Visitor IP Segment is defined twice (#10621)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/API/SegmentMetadata.php43
m---------plugins/CustomDimensions0
2 files changed, 1 insertions, 42 deletions
diff --git a/plugins/API/SegmentMetadata.php b/plugins/API/SegmentMetadata.php
index fbe73a774f..c708702b45 100644
--- a/plugins/API/SegmentMetadata.php
+++ b/plugins/API/SegmentMetadata.php
@@ -27,47 +27,6 @@ class SegmentMetadata
}
}
- $segments[] = array(
- 'type' => 'dimension',
- 'category' => Piwik::translate('General_Visit'),
- 'name' => 'General_UserId',
- 'segment' => 'userId',
- 'acceptedValues' => 'any non empty unique string identifying the user (such as an email address or a username).',
- 'sqlSegment' => 'log_visit.user_id',
- 'permission' => $isAuthenticatedWithViewAccess,
- );
-
- $segments[] = array(
- 'type' => 'dimension',
- 'category' => Piwik::translate('General_Visit'),
- 'name' => 'General_VisitorID',
- 'segment' => 'visitorId',
- 'acceptedValues' => '34c31e04394bdc63 - any 16 Hexadecimal chars ID, which can be fetched using the Tracking API function getVisitorId()',
- 'sqlSegment' => 'log_visit.idvisitor',
- 'sqlFilterValue' => array('Piwik\Common', 'convertVisitorIdToBin'),
- 'permission' => $isAuthenticatedWithViewAccess,
- );
-
- $segments[] = array(
- 'type' => 'dimension',
- 'category' => Piwik::translate('General_Visit'),
- 'name' => Piwik::translate('General_Visit') . " ID",
- 'segment' => 'visitId',
- 'acceptedValues' => 'Any integer.',
- 'sqlSegment' => 'log_visit.idvisit',
- 'permission' => $isAuthenticatedWithViewAccess,
- );
-
- $segments[] = array(
- 'type' => 'metric',
- 'category' => Piwik::translate('General_Visit'),
- 'name' => 'General_VisitorIP',
- 'segment' => 'visitIp',
- 'acceptedValues' => '13.54.122.1. </code>Select IP ranges with notation: <code>visitIp>13.54.122.0;visitIp<13.54.122.255',
- 'sqlSegment' => 'log_visit.location_ip',
- 'sqlFilterValue' => array('Piwik\Network\IPUtils', 'stringToBinaryIP'),
- 'permission' => $isAuthenticatedWithViewAccess,
- );
foreach ($segments as &$segment) {
$segment['name'] = Piwik::translate($segment['name']);
@@ -120,4 +79,4 @@ class SegmentMetadata
return $compare;
}
-} \ No newline at end of file
+}
diff --git a/plugins/CustomDimensions b/plugins/CustomDimensions
-Subproject 096c2707dd0ed9818bbfd7bed4774f54d681083
+Subproject a6bdbaef0040f00e34d344231da777304883026