class Google::Apis::AnalyticsreportingV4::EcommerceData
E-commerce details associated with the user activity.
Attributes
action_type[RW]
Action associated with this e-commerce action. Corresponds to the JSON property `actionType` @return [String]
ecommerce_type[RW]
The type of this e-commerce activity. Corresponds to the JSON property `ecommerceType` @return [String]
products[RW]
Details of the products in this transaction. Corresponds to the JSON property `products` @return [Array<Google::Apis::AnalyticsreportingV4::ProductData>]
transaction[RW]
Represents details collected when the visitor performs a transaction on the page. Corresponds to the JSON property `transaction` @return [Google::Apis::AnalyticsreportingV4::TransactionData]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 524 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 529 def update!(**args) @action_type = args[:action_type] if args.key?(:action_type) @ecommerce_type = args[:ecommerce_type] if args.key?(:ecommerce_type) @products = args[:products] if args.key?(:products) @transaction = args[:transaction] if args.key?(:transaction) end