Google Analytics Data V1alpha Client - Class MetricHeader (0.18.0)

Reference documentation and code samples for the Google Analytics Data V1alpha 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.v1alpha.MetricHeader

Namespace

Google \ Analytics \ Data \ V1alpha

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

setType

The metric's data type.

Parameter
Name Description
var int
Returns
Type Description
$this