Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.75 KB

File metadata and controls

32 lines (26 loc) · 1.75 KB

TalonOne::ApplicationAnalyticsDataPoint

Properties

Name Type Description Notes
start_time Time The start of the aggregation time frame in UTC.
end_time Time The end of the aggregation time frame in UTC.
total_revenue AnalyticsDataPoint The total, pre-discount value of all items purchased in a customer session. [optional]
sessions_count AnalyticsDataPoint The number of all closed sessions. The `influenced` value includes only sessions with at least one applied effect. [optional]
avg_items_per_session AnalyticsDataPoint The number of items from sessions divided by the number of sessions. The `influenced` value includes only sessions with at least one applied effect. [optional]
avg_session_value AnalyticsDataPoint The average customer session value, calculated by dividing the revenue value by the number of sessions. The `influenced` value includes only sessions with at least one applied effect. [optional]
total_discounts Float The total value of discounts given for cart items in influenced sessions. [optional]
coupons_count Float The number of times a coupon was successfully redeemed in influenced sessions. [optional]

Example

require 'talon_one_sdk'

instance = TalonOne::ApplicationAnalyticsDataPoint.new(
  start_time: 2024-02-01T00:00:00Z,
  end_time: 2024-02-01T23:59:99Z,
  total_revenue: null,
  sessions_count: null,
  avg_items_per_session: null,
  avg_session_value: null,
  total_discounts: 10,
  coupons_count: 12
)