diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-12 04:24:56 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-12 04:24:56 +0400 |
commit | 1fe0a1fcaa7685004b0d272d9e558fae0008c241 (patch) | |
tree | 3ccbd7e48407ac92c98a7adcda208abc4e56d44a /plugins/Events/Events.php | |
parent | 0cd8e6ac711d45fe848d9e0b2df1b77d90307c59 (diff) |
defined segments in dimensions
Diffstat (limited to 'plugins/Events/Events.php')
-rw-r--r-- | plugins/Events/Events.php | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/plugins/Events/Events.php b/plugins/Events/Events.php index c50b1f15db..32012c57da 100644 --- a/plugins/Events/Events.php +++ b/plugins/Events/Events.php @@ -19,8 +19,7 @@ class Events extends \Piwik\Plugin public function getListHooksRegistered() { return array( - 'API.getSegmentDimensionMetadata' => 'getSegmentsMetadata', - 'Metrics.getDefaultMetricTranslations' => 'addMetricTranslations' + 'Metrics.getDefaultMetricTranslations' => 'addMetricTranslations' ); } @@ -81,26 +80,6 @@ class Events extends \Piwik\Plugin public function getSegmentsMetadata(&$segments) { - $sqlFilter = '\\Piwik\\Tracker\\TableLogAction::getIdActionFromSegment'; - - foreach($this->metadataDimensions as $dimension => $metadata) { - $segments[] = array( - 'type' => 'dimension', - 'category' => 'Events_Events', - 'name' => $metadata[0], - 'segment' => $dimension, - 'sqlSegment' => $metadata[1], - 'sqlFilter' => $sqlFilter, - ); - } - $segments[] = array( - 'type' => 'metric', - 'category' => Piwik::translate('General_Visit'), - 'name' => 'Events_TotalEvents', - 'segment' => 'events', - 'sqlSegment' => 'log_visit.visit_total_events', - 'acceptedValues' => 'To select all visits who triggered an Event, use: &segment=events>0', - ); // $segments[] = array( // 'type' => 'metric', // 'category' => 'Events_Events', |