Event flows
Event flow is a series of events happening one after each other, creating a logically tied sequence. For example you might want to follow user journey from entering a screen to completing some action. For this you should start the flow with the event that you'd like to be first in the flow, and then end the flow once the event corresponding to the desired action is fired. Start and end event, as well as all of the events inbetween, will have their flows field populated with information about the flow.
For flow management, use actions parameter in logEvent function. You can:
- start a flow
- end a flow
- start a subflow
- end a subflow
Each top-level flow can have multiple subflows, but subflows can't have further subflows of their own.
PAAnalytics.logEvent("editor-open", actions: [.startFlow(name: "editor-flow")]
PAAnalytics.logEvent("tool-select", actions: [.startSubflow(name: "tool-select-flow", parent: "editor-flow")])
PAAnalytics.logEvent("tool-apply", actions: [.endSubflow(name: "tool-select-flow", parent: "editor-flow")]
PAAnalytics.logEvent("editor-close", actions: [.endFlow(name: "editor-flow")])