Google Analytics Admin V1alpha Client - Class EventMapping (0.25.2)

Reference documentation and code samples for the Google Analytics Admin V1alpha Client class EventMapping.

Event setting conditions to match an event.

Generated from protobuf message google.analytics.admin.v1alpha.EventMapping

Namespace

Google \ Analytics \ Admin \ V1alpha

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ event_namestring

Required. Name of the GA4 event. It must always be set. The max allowed display name length is 40 UTF-16 code units.

↳ min_event_countint|string

At least one of the following four min/max values must be set. The values set will be ANDed together to qualify an event. The minimum number of times the event occurred. If not set, minimum event count won't be checked.

↳ max_event_countint|string

The maximum number of times the event occurred. If not set, maximum event count won't be checked.

↳ min_event_valuefloat

The minimum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, minimum event value won't be checked.

↳ max_event_valuefloat

The maximum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, maximum event value won't be checked.

getEventName

Required. Name of the GA4 event. It must always be set.

The max allowed display name length is 40 UTF-16 code units.

Returns
TypeDescription
string

setEventName

Required. Name of the GA4 event. It must always be set.

The max allowed display name length is 40 UTF-16 code units.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getMinEventCount

At least one of the following four min/max values must be set. The values set will be ANDed together to qualify an event.

The minimum number of times the event occurred. If not set, minimum event count won't be checked.

Returns
TypeDescription
int|string

hasMinEventCount

clearMinEventCount

setMinEventCount

At least one of the following four min/max values must be set. The values set will be ANDed together to qualify an event.

The minimum number of times the event occurred. If not set, minimum event count won't be checked.

Parameter
NameDescription
varint|string
Returns
TypeDescription
$this

getMaxEventCount

The maximum number of times the event occurred. If not set, maximum event count won't be checked.

Returns
TypeDescription
int|string

hasMaxEventCount

clearMaxEventCount

setMaxEventCount

The maximum number of times the event occurred. If not set, maximum event count won't be checked.

Parameter
NameDescription
varint|string
Returns
TypeDescription
$this

getMinEventValue

The minimum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, minimum event value won't be checked.

Returns
TypeDescription
float

hasMinEventValue

clearMinEventValue

setMinEventValue

The minimum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, minimum event value won't be checked.

Parameter
NameDescription
varfloat
Returns
TypeDescription
$this

getMaxEventValue

The maximum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, maximum event value won't be checked.

Returns
TypeDescription
float

hasMaxEventValue

clearMaxEventValue

setMaxEventValue

The maximum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, maximum event value won't be checked.

Parameter
NameDescription
varfloat
Returns
TypeDescription
$this