예제 #1
0
 protected function configureSegments()
 {
     $segment = new Segment();
     $segment->setSegment('entryPageTitle');
     $segment->setName('Actions_ColumnEntryPageTitle');
     $this->addSegment($segment);
 }
예제 #2
0
 protected function configureSegments()
 {
     $segment = new Segment();
     $segment->setSegment('exitPageUrl');
     $segment->setName('Actions_ColumnExitPageURL');
     $this->addSegment($segment);
 }
예제 #3
0
 protected function configureSegments()
 {
     $segment = new Segment();
     $segment->setSegment('contentPiece');
     $segment->setName('Contents_ContentPiece');
     $segment->setAcceptedValues('The actual content. For instance "ad.jpg" or "My text ad"');
     $this->addSegment($segment);
 }
예제 #4
0
 protected function configureSegments()
 {
     $segment = new Segment();
     $segment->setSegment('contentTarget');
     $segment->setName('Contents_ContentTarget');
     $segment->setAcceptedValues('For instance the URL of a landing page: "http://landingpage.example.com"');
     $this->addSegment($segment);
 }
예제 #5
0
 protected function configureSegments()
 {
     $segment = new Segment();
     $segment->setSegment('siteSearchKeyword');
     $segment->setName('Actions_SiteSearchKeyword');
     $segment->setSqlSegment('log_link_visit_action.idaction_name');
     $this->addSegment($segment);
 }
예제 #6
0
 protected function configureSegments()
 {
     $segment = new Segment();
     $segment->setSegment('actionUrl');
     $segment->setName('Actions_ColumnActionURL');
     $segment->setUnionOfSegments(array('pageUrl', 'downloadUrl', 'outlinkUrl'));
     $this->addSegment($segment);
 }
 protected function configureSegments()
 {
     $segment = new Segment();
     $segment->setSegment('contentInteraction');
     $segment->setName('Contents_Interaction');
     $segment->setAcceptedValues('The type of interaction with the content. For instance "click" or "submit".');
     $this->addSegment($segment);
 }
예제 #8
0
파일: DownloadUrl.php 프로젝트: cemo/piwik
 protected function configureSegments()
 {
     $segment = new Segment();
     $segment->setSegment('downloadUrl');
     $segment->setName('Actions_ColumnDownloadURL');
     $segment->setSqlSegment('log_link_visit_action.idaction_url');
     $this->addSegment($segment);
 }
예제 #9
0
 protected function configureSegments()
 {
     $segment = new Segment();
     $segment->setSegment('contentName');
     $segment->setName('Contents_ContentName');
     $segment->setAcceptedValues('The name of a content block, for instance "Ad Sale"');
     $this->addSegment($segment);
 }
예제 #10
0
 protected function configureSegments()
 {
     $segment = new Segment();
     $segment->setSegment('pageUrl');
     $segment->setName('Actions_ColumnPageURL');
     $segment->setAcceptedValues('All these segments must be URL encoded, for example: ' . urlencode('http://example.com/path/page?query'));
     $this->addSegment($segment);
 }
예제 #11
0
파일: ActionType.php 프로젝트: cemo/piwik
 protected function configureSegments()
 {
     $types = $this->types;
     $segment = new Segment();
     $segment->setSegment('actionType');
     $segment->setName('Actions_ActionType');
     $segment->setSqlSegment('log_action.type');
     $segment->setType(Segment::TYPE_METRIC);
     $segment->setAcceptedValues(sprintf('A type of action, such as: %s', implode(', ', $types)));
     $segment->setSqlFilter(function ($type) use($types) {
         if (array_key_exists($type, $types)) {
             return $type;
         }
         $index = array_search(strtolower(trim(urldecode($type))), $types);
         if ($index === false) {
             throw new Exception("actionType must be one of: " . implode(', ', $types));
         }
         return $index;
     });
     $segment->setSuggestedValuesCallback(function ($idSite, $maxSuggestionsToReturn) use($types) {
         return array_slice(array_values($types), 0, $maxSuggestionsToReturn);
     });
     $this->addSegment($segment);
 }