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
Name
Description
data
array
Optional. Data for populating the Message object.
↳ event_name
string
Required. Name of the Google Analytics event. It must always be set. The max allowed display name length is 40 UTF-16 code units.
↳ min_event_count
int|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_count
int|string
The maximum number of times the event occurred. If not set, maximum event count won't be checked.
↳ min_event_value
float
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_value
float
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 Google Analytics event. It must always be set.
The max allowed display name length is 40 UTF-16 code units.
Returns
Type
Description
string
setEventName
Required. Name of the Google Analytics event. It must always be set.
The max allowed display name length is 40 UTF-16 code units.
Parameter
Name
Description
var
string
Returns
Type
Description
$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
Type
Description
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
Name
Description
var
int|string
Returns
Type
Description
$this
getMaxEventCount
The maximum number of times the event occurred. If not set, maximum event
count won't be checked.
Returns
Type
Description
int|string
hasMaxEventCount
clearMaxEventCount
setMaxEventCount
The maximum number of times the event occurred. If not set, maximum event
count won't be checked.
Parameter
Name
Description
var
int|string
Returns
Type
Description
$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
Type
Description
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
Name
Description
var
float
Returns
Type
Description
$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
Type
Description
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Analytics Admin V1alpha Client - Class EventMapping (0.29.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.29.1 (latest)](/php/docs/reference/analytics-admin/latest/V1alpha.EventMapping)\n- [0.29.0](/php/docs/reference/analytics-admin/0.29.0/V1alpha.EventMapping)\n- [0.28.1](/php/docs/reference/analytics-admin/0.28.1/V1alpha.EventMapping)\n- [0.27.0](/php/docs/reference/analytics-admin/0.27.0/V1alpha.EventMapping)\n- [0.26.0](/php/docs/reference/analytics-admin/0.26.0/V1alpha.EventMapping)\n- [0.25.2](/php/docs/reference/analytics-admin/0.25.2/V1alpha.EventMapping)\n- [0.24.2](/php/docs/reference/analytics-admin/0.24.2/V1alpha.EventMapping)\n- [0.23.0](/php/docs/reference/analytics-admin/0.23.0/V1alpha.EventMapping)\n- [0.22.5](/php/docs/reference/analytics-admin/0.22.5/V1alpha.EventMapping)\n- [0.20.0](/php/docs/reference/analytics-admin/0.20.0/V1alpha.EventMapping)\n- [0.19.0](/php/docs/reference/analytics-admin/0.19.0/V1alpha.EventMapping)\n- [0.18.1](/php/docs/reference/analytics-admin/0.18.1/V1alpha.EventMapping)\n- [0.17.0](/php/docs/reference/analytics-admin/0.17.0/V1alpha.EventMapping)\n- [0.16.0](/php/docs/reference/analytics-admin/0.16.0/V1alpha.EventMapping)\n- [0.15.1](/php/docs/reference/analytics-admin/0.15.1/V1alpha.EventMapping)\n- [0.14.0](/php/docs/reference/analytics-admin/0.14.0/V1alpha.EventMapping)\n- [0.13.0](/php/docs/reference/analytics-admin/0.13.0/V1alpha.EventMapping)\n- [0.12.0](/php/docs/reference/analytics-admin/0.12.0/V1alpha.EventMapping)\n- [0.11.1](/php/docs/reference/analytics-admin/0.11.1/V1alpha.EventMapping)\n- [0.10.0](/php/docs/reference/analytics-admin/0.10.0/V1alpha.EventMapping)\n- [0.9.0](/php/docs/reference/analytics-admin/0.9.0/V1alpha.EventMapping)\n- [0.8.2](/php/docs/reference/analytics-admin/0.8.2/V1alpha.EventMapping) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Analytics Admin V1alpha Client class EventMapping.\n\nEvent setting conditions to match an event.\n\nGenerated from protobuf message `google.analytics.admin.v1alpha.EventMapping`\n\nNamespace\n---------\n\nGoogle \\\\ Analytics \\\\ Admin \\\\ V1alpha\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getEventName\n\nRequired. Name of the Google Analytics event. It must always be set.\n\nThe max allowed display name length is 40 UTF-16 code units.\n\n### setEventName\n\nRequired. Name of the Google Analytics event. It must always be set.\n\nThe max allowed display name length is 40 UTF-16 code units.\n\n### getMinEventCount\n\nAt least one of the following four min/max values must be set. The\nvalues set will be ANDed together to qualify an event.\n\nThe minimum number of times the event occurred. If not set, minimum event\ncount won't be checked.\n\n### hasMinEventCount\n\n### clearMinEventCount\n\n### setMinEventCount\n\nAt least one of the following four min/max values must be set. The\nvalues set will be ANDed together to qualify an event.\n\nThe minimum number of times the event occurred. If not set, minimum event\ncount won't be checked.\n\n### getMaxEventCount\n\nThe maximum number of times the event occurred. If not set, maximum event\ncount won't be checked.\n\n### hasMaxEventCount\n\n### clearMaxEventCount\n\n### setMaxEventCount\n\nThe maximum number of times the event occurred. If not set, maximum event\ncount won't be checked.\n\n### getMinEventValue\n\nThe minimum revenue generated due to the event. Revenue currency will be\ndefined at the property level. If not set, minimum event value won't be\nchecked.\n\n### hasMinEventValue\n\n### clearMinEventValue\n\n### setMinEventValue\n\nThe minimum revenue generated due to the event. Revenue currency will be\ndefined at the property level. If not set, minimum event value won't be\nchecked.\n\n### getMaxEventValue\n\nThe maximum revenue generated due to the event. Revenue currency will be\ndefined at the property level. If not set, maximum event value won't be\nchecked.\n\n### hasMaxEventValue\n\n### clearMaxEventValue\n\n### setMaxEventValue\n\nThe maximum revenue generated due to the event. Revenue currency will be\ndefined at the property level. If not set, maximum event value won't be\nchecked."]]