PendoEventMapping

public struct PendoEventMapping : Equatable

Information for mapping from AnalyticsEvent to Pendo events

  • Pendo event name (used when mapping from AnalyticsEvent.screenView)

    Declaration

    Swift

    public let name: String
  • Top-level key for Pendo event data dictionary (used when mapping from AnalyticsEvent.screenView)

    Declaration

    Swift

    public let topLevelKey: String
  • Pendo user property type (visitor or account) (used when mapping from AnalyticsEvent.userProperty)

    Declaration

    Swift

    public let type: PendoUserPropertyType
  • Initialize mapping info

    Declaration

    Swift

    public init(name: String = "", topLevelKey: String = "", type: PendoUserPropertyType = .visitor)

    Parameters

    name

    pendo event name (only used for AnalyticsEvent.screenView)

    topLevelKey

    data dictionary top-level key (only used for AnalyticEvent.screenView)

    type

    pendo user property type (visitor or account) (only used for AnalyticEvent.userProperty)

  • default mapping from AnalyticsEvent.screenView

    Declaration

    Swift

    static let defaultScreenView: PendoEventMapping
  • default mapping from AnalyticsEvent.userProperty

    Declaration

    Swift

    static let defaultUserProperty: PendoEventMapping
  • default mappings from all AnalyticsEvent cases to Pendo events

    Declaration

    Swift

    static let `default`: [String : PendoEventMapping]