protected function configureSegments() { $segment = new Segment(); $segment->setSegment('longitude'); $segment->setName('UserCountry_Longitude'); $segment->setAcceptedValues('-70.664, 14.326, etc.'); $this->addSegment($segment); }
protected function configureSegments() { $segment = new Segment(); $segment->setSegment('city'); $segment->setName('UserCountry_City'); $segment->setAcceptedValues('Sydney, Sao Paolo, Rome, etc.'); $this->addSegment($segment); }
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); }
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>X;lat<Y;long>M;long<N.'); $this->addSegment($segment); }
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); }