AI-generated Key Takeaways
-
A Conversion Event resource in Google Analytics 4 represents actions like clicks or purchases, allowing you to track and analyze important user interactions.
-
Conversion events can be configured with a
countingMethod
to specify how conversions are tallied during a user's session, such as counting each instance or only once per session. -
Optionally, a default value and currency can be assigned to a conversion event, automatically populating conversion data when the event's value parameter is not set.
-
You can manage conversion events using methods like creating, deleting, retrieving, listing, and updating them within a Google Analytics property.
Resource: ConversionEvent
A conversion event in a Google Analytics property.
JSON representation |
---|
{ "name": string, "eventName": string, "createTime": string, "deletable": boolean, "custom": boolean, "countingMethod": enum ( |
Fields | |
---|---|
name |
Output only. Resource name of this conversion event. Format: properties/{property}/conversionEvents/{conversionEvent} |
eventName |
Immutable. The event name for this conversion event. Examples: 'click', 'purchase' |
createTime |
Output only. Time when this conversion event was created in the property. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
deletable |
Output only. If set, this event can currently be deleted with conversionEvents.delete. |
custom |
Output only. If set to true, this conversion event refers to a custom event. If set to false, this conversion event refers to a default event in GA. Default events typically have special meaning in GA. Default events are usually created for you by the GA system, but in some cases can be created by property admins. Custom events count towards the maximum number of custom conversion events that may be created per property. |
countingMethod |
Optional. The method by which conversions will be counted across multiple events within a session. If this value is not provided, it will be set to |
defaultConversionValue |
Optional. Defines a default value/currency for a conversion event. |
ConversionCountingMethod
The method by which conversions will be counted across multiple events within a session.
Enums | |
---|---|
CONVERSION_COUNTING_METHOD_UNSPECIFIED |
Counting method not specified. |
ONCE_PER_EVENT |
Each Event instance is considered a Conversion. |
ONCE_PER_SESSION |
An Event instance is considered a Conversion at most once per session per user. |
DefaultConversionValue
Defines a default value/currency for a conversion event. Both value and currency must be provided.
JSON representation |
---|
{ "value": number, "currencyCode": string } |
Fields | |
---|---|
value |
This value will be used to populate the value for all conversions of the specified eventName where the event "value" parameter is unset. |
currencyCode |
When a conversion event for this eventName has no set currency, this currency will be applied as the default. Must be in ISO 4217 currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for more information. |
Methods |
|
---|---|
(deprecated) |
Deprecated: Use CreateKeyEvent instead. |
(deprecated) |
Deprecated: Use DeleteKeyEvent instead. |
(deprecated) |
Deprecated: Use GetKeyEvent instead. |
(deprecated) |
Deprecated: Use ListKeyEvents instead. |
(deprecated) |
Deprecated: Use UpdateKeyEvent instead. |