Google Analytics Data V1alpha Client - Class MetricHeader (0.14.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
NameDescription
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
TypeDescription
string

setName

The metric's name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

The metric's data type.

Returns
TypeDescription
int

setType

The metric's data type.

Parameter
NameDescription
var int
Returns
TypeDescription
$this