Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsadmin_v1alpha/classes.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb
Overview
A conversion event in a Google Analytics property.
Instance Attribute Summary collapse
-
#counting_method ⇒ String
Optional.
-
#create_time ⇒ String
Output only.
-
#custom ⇒ Boolean
(also: #custom?)
Output only.
-
#default_conversion_value ⇒ Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue
Defines a default value/currency for a conversion event.
-
#deletable ⇒ Boolean
(also: #deletable?)
Output only.
-
#event_name ⇒ String
Immutable.
-
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaConversionEvent
constructor
A new instance of GoogleAnalyticsAdminV1alphaConversionEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaConversionEvent
Returns a new instance of GoogleAnalyticsAdminV1alphaConversionEvent.
2273 2274 2275 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2273 def initialize(**args) update!(**args) end |
Instance Attribute Details
#counting_method ⇒ String
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
ONCE_PER_EVENT.
Corresponds to the JSON property countingMethod
2230 2231 2232 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2230 def counting_method @counting_method end |
#create_time ⇒ String
Output only. Time when this conversion event was created in the property.
Corresponds to the JSON property createTime
2235 2236 2237 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2235 def create_time @create_time end |
#custom ⇒ Boolean Also known as: 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.
Corresponds to the JSON property custom
2245 2246 2247 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2245 def custom @custom end |
#default_conversion_value ⇒ Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue
Defines a default value/currency for a conversion event. Both value and
currency must be provided.
Corresponds to the JSON property defaultConversionValue
2252 2253 2254 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2252 def default_conversion_value @default_conversion_value end |
#deletable ⇒ Boolean Also known as: deletable?
Output only. If set, this event can currently be deleted with
DeleteConversionEvent.
Corresponds to the JSON property deletable
2258 2259 2260 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2258 def deletable @deletable end |
#event_name ⇒ String
Immutable. The event name for this conversion event. Examples: 'click', '
purchase'
Corresponds to the JSON property eventName
2265 2266 2267 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2265 def event_name @event_name end |
#name ⇒ String
Output only. Resource name of this conversion event. Format: properties/
property/conversionEvents/conversion_event
Corresponds to the JSON property name
2271 2272 2273 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2271 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2278 2279 2280 2281 2282 2283 2284 2285 2286 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2278 def update!(**args) @counting_method = args[:counting_method] if args.key?(:counting_method) @create_time = args[:create_time] if args.key?(:create_time) @custom = args[:custom] if args.key?(:custom) @default_conversion_value = args[:default_conversion_value] if args.key?(:default_conversion_value) @deletable = args[:deletable] if args.key?(:deletable) @event_name = args[:event_name] if args.key?(:event_name) @name = args[:name] if args.key?(:name) end |