Google Analytics Data V1beta Client - Class MetricHeader (0.23.0)

Reference documentation and code samples for the Google Analytics Data V1beta Client class MetricHeader.

Describes a metric column in the report. Visible metrics requested in a report produce column entries within rows and MetricHeaders. However, metrics used exclusively within filters or expressions do not produce columns in a report; correspondingly, those metrics do not produce headers.

Generated from protobuf message google.analytics.data.v1beta.MetricHeader

Namespace

Google \ Analytics \ Data \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

The metric's name.

↳ type int

The metric's data type.

getName

The metric's name.

Returns
Type Description
string

setName

The metric's name.

Parameter
Name Description
var string
Returns
Type Description
$this

getType

The metric's data type.

Returns
Type Description
int Enum of type MetricType.

setType

The metric's data type.

Parameter
Name Description
var int

Enum of type MetricType.

Returns
Type Description
$this