A flow is a visual representation of actions an actor takes, an intuitive graph plotting the actor's journey. You can view the paths of all actors simultaneously, and then take a sequence of events by a particular actor to analyze with finer granularity.
When you create a flow, there is a default set of properties from which you can choose. You can also create custom flow properties. Adding custom properties to a flow is similar to running ad-hoc queries, with the exception of the following:
- You can control how to aggregate over the events—forward, backward, or just take the final value and put it on all events).
- You are unable to reference properties from another flow from a current flow. However, you could use two separate flows to generate those results.
Creating a custom flow property
This section demonstrates how to create a custom property for a flow. You must first create a flow, before you can create a custom flow property.
- Aggregate—The most common properties aggregate events, such as counting the unique number of session IDs.
- Defined Value—You may want to perform a bucketing operation, such as if "Num5MinSessions > 10" then "heavy user" otherwise "light user".
- Function—You can perform a mathematical function and apply it as a property. For example, if you have Num5MinSessions and Num60MinSessions, you can apply a function that returns a ratio of the two for the property.
To create a flow property, do the following:
- Click the Flows icon in the left navigation bar.
- Select the flow (for which you want to create a property) from the list on the right, then click Properties in the upper right menu bar.
- Click New Flow Property in the upper right corner.
- Enter a unique name for the property at the top of the window.
- Select the Show tab and choose the appropriate options from the drop-down lists. In this example, we chose to count of events, filtered to events with action that matches post_comment.
- Optional: Click + and add another filter.
- Click Defined Value, enter a value, and choose appropriate options from the drop-down lists. In our value 1, we chose set First of user_type (flow) that matches consumer and filtered to all events.
- Optional: Click Function and choose options for a mathematical function that will be applied with the property.
- Click GO to generate results for the flow property.