public function getVisitorsAndPageViews($numberOfDays = 365, $groupBy = 'date')
    {
        list($startDate, $endDate) = $this->calculateNumberOfDays($numberOfDays);

        return $this->getVisitorsAndPageViewsForPeriod($startDate, $endDate, $groupBy);
    }
public function getVisitorsAndPageViews($numberOfDays = 365, $groupBy = 'date')
    {
        list($startDate, $endDate) = $this->calculateNumberOfDays($numberOfDays);

        return $this->getVisitorsAndPageViewsForPeriod($startDate, $endDate, $groupBy);
    }
public function getVisitorsAndPageViews ( $ numberOfDays = 365 , $ groupBy = 'date' ) { list ( $ startDate , $ endDate ) = $ this -> calculateNumberOfDays ( $ numberOfDays ) ; return $ this -> getVisitorsAndPageViewsForPeriod ( $ startDate , $ endDate , $ groupBy ) ; }
Get the amount of visitors and pageviews.

@param int    $numberOfDays
@param string $groupBy      Possible values: date, yearMonth

@return Collection
Get the amount of visitors and pageviews .