VisitorPath

@objc(ZDKVisitorPath)
public final class VisitorPath : NSObject, DataConvertible, ReflectedStringConvertible

A Custom Update Event that can be seen in the agent dashboard.

The VisitorPath API is a way to know if visitors have performed certain events in your app. VisitorPath events can be queued before a chat has started, and they’ll be sent when the first message is sent.

Note

The url field is unparsed by the backend, so it can be any String. If subsequent urls are the same, only the initial VisitorPath update will be sent. If url parameter of VisitorPath is not specified, an ISO8601 timestamp will be sent.
  • Custom title

    Declaration

    Swift

    @objc
    public let title: String
  • url

    Optional url string. ISO8601 timestamp by default.

    Declaration

    Swift

    @objc
    public let url: String
  • Initializer for VisitorPath updates

    Declaration

    Swift

    @objc
    public init(title: String, url: String = Date().iso8601)

    Parameters

    title

    The title for user-event

    url

    Another string associated with the event.