示例#1
0
 protected function configureSegments()
 {
     $segment = new Segment();
     $segment->setSegment('longitude');
     $segment->setName('UserCountry_Longitude');
     $segment->setAcceptedValues('-70.664, 14.326, etc.');
     $this->addSegment($segment);
 }
示例#2
0
 protected function configureSegments()
 {
     $segment = new Segment();
     $segment->setSegment('city');
     $segment->setName('UserCountry_City');
     $segment->setAcceptedValues('Sydney, Sao Paolo, Rome, etc.');
     $this->addSegment($segment);
 }
示例#3
0
 protected function configureSegments()
 {
     $segment = new Segment();
     $segment->setSegment('regionCode');
     $segment->setName('UserCountry_Region');
     $segment->setAcceptedValues('01 02, OR, P8, etc.<br/>eg. region=A1;country=fr');
     $this->addSegment($segment);
 }
示例#4
0
 protected function configureSegments()
 {
     $segment = new Segment();
     $segment->setSegment('latitude');
     $segment->setName('UserCountry_Latitude');
     $segment->setAcceptedValues('-33.578, 40.830, etc.<br/>You can select visitors within a lat/long range using &segment=lat&gt;X;lat&lt;Y;long&gt;M;long&lt;N.');
     $this->addSegment($segment);
 }
示例#5
0
文件: Country.php 项目: piwik/piwik
 protected function configureSegments()
 {
     $segment = new Segment();
     $segment->setSegment('countryCode');
     $segment->setName('UserCountry_Country');
     $segment->setAcceptedValues('de, us, fr, in, es, etc.');
     $this->addSegment($segment);
     $segment = new Segment();
     $segment->setSegment('continentCode');
     $segment->setName('UserCountry_Continent');
     $segment->setSqlFilter('Piwik\\Plugins\\UserCountry\\UserCountry::getCountriesForContinent');
     $segment->setAcceptedValues('eur, asi, amc, amn, ams, afr, ant, oce');
     $this->addSegment($segment);
 }