private function monthlyComparison($metrics = 'ga:users')
    {
        $thisMonth = $this->monthlySummary($metrics);
        $lastMonth = $this->monthlySummary($metrics, '-month_1');

        return json_response([
            'month'      => [
                'value'     => $thisMonth,
                'color'     => "#00c0ef",
                'highlight' => "#00a7d0",
                'label'     => "Current"
            ],
            'last_month' => [
                'value'     => $lastMonth,
                'color'     => "#00a65a",
                'highlight' => "#008d4c",
                'label'     => "Previous"
            ]
        ]);
    }
private function monthlyComparison($metrics = 'ga:users')
    {
        $thisMonth = $this->monthlySummary($metrics);
        $lastMonth = $this->monthlySummary($metrics, '-month_1');

        return json_response([
            'month'      => [
                'value'     => $thisMonth,
                'color'     => "#00c0ef",
                'highlight' => "#00a7d0",
                'label'     => "Current"
            ],
            'last_month' => [
                'value'     => $lastMonth,
                'color'     => "#00a65a",
                'highlight' => "#008d4c",
                'label'     => "Previous"
            ]
        ]);
    }
private function monthlyComparison ( $ metrics = 'ga:users' ) { $ thisMonth = $ this -> monthlySummary ( $ metrics ) ; $ lastMonth = $ this -> monthlySummary ( $ metrics , '-month_1' ) ; return json_response ( [ 'month' => [ 'value' => $ thisMonth , 'color' => "#00c0ef" , 'highlight' => "#00a7d0" , 'label' => "Current" ] , 'last_month' => [ 'value' => $ lastMonth , 'color' => "#00a65a" , 'highlight' => "#008d4c" , 'label' => "Previous" ] ] ) ; }
Get this and last month of the metrics for a comparison
@param string $metrics
@return \Illuminate\Http\JsonResponse
Get this and last month of the metrics for a comparison