Class: Google::Analytics::Admin::V1alpha::KeyEvent
- Inherits:
-
Object
- Object
- Google::Analytics::Admin::V1alpha::KeyEvent
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/analytics/admin/v1alpha/resources.rb
Overview
A key event in a Google Analytics property.
Defined Under Namespace
Modules: CountingMethod Classes: DefaultValue
Instance Attribute Summary collapse
-
#counting_method ⇒ ::Google::Analytics::Admin::V1alpha::KeyEvent::CountingMethod
Required.
-
#create_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#custom ⇒ ::Boolean
readonly
Output only.
-
#default_value ⇒ ::Google::Analytics::Admin::V1alpha::KeyEvent::DefaultValue
Optional.
-
#deletable ⇒ ::Boolean
readonly
Output only.
-
#event_name ⇒ ::String
Immutable.
-
#name ⇒ ::String
readonly
Output only.
Instance Attribute Details
#counting_method ⇒ ::Google::Analytics::Admin::V1alpha::KeyEvent::CountingMethod
Returns Required. The method by which Key Events will be counted across multiple events within a session.
903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 |
# File 'proto_docs/google/analytics/admin/v1alpha/resources.rb', line 903 class KeyEvent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines a default value/currency for a key event. # @!attribute [rw] numeric_value # @return [::Float] # Required. This will be used to populate the "value" parameter for all # occurrences of this Key Event (specified by event_name) where that # parameter is unset. # @!attribute [rw] currency_code # @return [::String] # Required. When an occurrence of this Key Event (specified by event_name) # 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. class DefaultValue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The method by which Key Events will be counted across multiple events # within a session. module CountingMethod # Counting method not specified. COUNTING_METHOD_UNSPECIFIED = 0 # Each Event instance is considered a Key Event. ONCE_PER_EVENT = 1 # An Event instance is considered a Key Event at most once per session per # user. ONCE_PER_SESSION = 2 end end |
#create_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. Time when this key event was created in the property.
903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 |
# File 'proto_docs/google/analytics/admin/v1alpha/resources.rb', line 903 class KeyEvent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines a default value/currency for a key event. # @!attribute [rw] numeric_value # @return [::Float] # Required. This will be used to populate the "value" parameter for all # occurrences of this Key Event (specified by event_name) where that # parameter is unset. # @!attribute [rw] currency_code # @return [::String] # Required. When an occurrence of this Key Event (specified by event_name) # 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. class DefaultValue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The method by which Key Events will be counted across multiple events # within a session. module CountingMethod # Counting method not specified. COUNTING_METHOD_UNSPECIFIED = 0 # Each Event instance is considered a Key Event. ONCE_PER_EVENT = 1 # An Event instance is considered a Key Event at most once per session per # user. ONCE_PER_SESSION = 2 end end |
#custom ⇒ ::Boolean (readonly)
Returns Output only. If set to true, this key event refers to a custom event. If set to false, this key 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 key events that may be created per property.
903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 |
# File 'proto_docs/google/analytics/admin/v1alpha/resources.rb', line 903 class KeyEvent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines a default value/currency for a key event. # @!attribute [rw] numeric_value # @return [::Float] # Required. This will be used to populate the "value" parameter for all # occurrences of this Key Event (specified by event_name) where that # parameter is unset. # @!attribute [rw] currency_code # @return [::String] # Required. When an occurrence of this Key Event (specified by event_name) # 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. class DefaultValue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The method by which Key Events will be counted across multiple events # within a session. module CountingMethod # Counting method not specified. COUNTING_METHOD_UNSPECIFIED = 0 # Each Event instance is considered a Key Event. ONCE_PER_EVENT = 1 # An Event instance is considered a Key Event at most once per session per # user. ONCE_PER_SESSION = 2 end end |
#default_value ⇒ ::Google::Analytics::Admin::V1alpha::KeyEvent::DefaultValue
Returns Optional. Defines a default value/currency for a key event.
903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 |
# File 'proto_docs/google/analytics/admin/v1alpha/resources.rb', line 903 class KeyEvent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines a default value/currency for a key event. # @!attribute [rw] numeric_value # @return [::Float] # Required. This will be used to populate the "value" parameter for all # occurrences of this Key Event (specified by event_name) where that # parameter is unset. # @!attribute [rw] currency_code # @return [::String] # Required. When an occurrence of this Key Event (specified by event_name) # 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. class DefaultValue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The method by which Key Events will be counted across multiple events # within a session. module CountingMethod # Counting method not specified. COUNTING_METHOD_UNSPECIFIED = 0 # Each Event instance is considered a Key Event. ONCE_PER_EVENT = 1 # An Event instance is considered a Key Event at most once per session per # user. ONCE_PER_SESSION = 2 end end |
#deletable ⇒ ::Boolean (readonly)
Returns Output only. If set to true, this event can be deleted.
903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 |
# File 'proto_docs/google/analytics/admin/v1alpha/resources.rb', line 903 class KeyEvent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines a default value/currency for a key event. # @!attribute [rw] numeric_value # @return [::Float] # Required. This will be used to populate the "value" parameter for all # occurrences of this Key Event (specified by event_name) where that # parameter is unset. # @!attribute [rw] currency_code # @return [::String] # Required. When an occurrence of this Key Event (specified by event_name) # 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. class DefaultValue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The method by which Key Events will be counted across multiple events # within a session. module CountingMethod # Counting method not specified. COUNTING_METHOD_UNSPECIFIED = 0 # Each Event instance is considered a Key Event. ONCE_PER_EVENT = 1 # An Event instance is considered a Key Event at most once per session per # user. ONCE_PER_SESSION = 2 end end |
#event_name ⇒ ::String
Returns Immutable. The event name for this key event. Examples: 'click', 'purchase'.
903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 |
# File 'proto_docs/google/analytics/admin/v1alpha/resources.rb', line 903 class KeyEvent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines a default value/currency for a key event. # @!attribute [rw] numeric_value # @return [::Float] # Required. This will be used to populate the "value" parameter for all # occurrences of this Key Event (specified by event_name) where that # parameter is unset. # @!attribute [rw] currency_code # @return [::String] # Required. When an occurrence of this Key Event (specified by event_name) # 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. class DefaultValue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The method by which Key Events will be counted across multiple events # within a session. module CountingMethod # Counting method not specified. COUNTING_METHOD_UNSPECIFIED = 0 # Each Event instance is considered a Key Event. ONCE_PER_EVENT = 1 # An Event instance is considered a Key Event at most once per session per # user. ONCE_PER_SESSION = 2 end end |
#name ⇒ ::String (readonly)
Returns Output only. Resource name of this key event. Format: properties/{property}/keyEvents/{key_event}.
903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 |
# File 'proto_docs/google/analytics/admin/v1alpha/resources.rb', line 903 class KeyEvent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines a default value/currency for a key event. # @!attribute [rw] numeric_value # @return [::Float] # Required. This will be used to populate the "value" parameter for all # occurrences of this Key Event (specified by event_name) where that # parameter is unset. # @!attribute [rw] currency_code # @return [::String] # Required. When an occurrence of this Key Event (specified by event_name) # 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. class DefaultValue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The method by which Key Events will be counted across multiple events # within a session. module CountingMethod # Counting method not specified. COUNTING_METHOD_UNSPECIFIED = 0 # Each Event instance is considered a Key Event. ONCE_PER_EVENT = 1 # An Event instance is considered a Key Event at most once per session per # user. ONCE_PER_SESSION = 2 end end |