src/Webiny/AnalyticsDb/Query/Dimensions.php
public function setDimension($dimensionName, $dimensionValue = null)
    {
        $this->pipeline['$match']['name'] = $dimensionName;

        if (!empty($dimensionValue)) {
            $this->pipeline['$match']['value'] = $dimensionValue;
        }

        return $this;
    }
public function setDimension($dimensionName, $dimensionValue = null)
    {
        $this->pipeline['$match']['name'] = $dimensionName;

        if (!empty($dimensionValue)) {
            $this->pipeline['$match']['value'] = $dimensionValue;
        }

        return $this;
    }
public function setDimension ( $ dimensionName , $ dimensionValue = null ) { $ this -> pipeline [ '$match' ] [ 'name' ] = $ dimensionName ; if ( ! empty ( $ dimensionValue ) ) { $ this -> pipeline [ '$match' ] [ 'value' ] = $ dimensionValue ; } return $ this ; }
Filter the dimension records.

@param string      $dimensionName  Dimension name.
@param string|null $dimensionValue Dimension value.

@return $this
Filter the dimension records .