You can use the paths tool in Heap to see what users did before completing a specific event, which can lead to insights on how to improve this flow.
To see this in Heap, complete the following steps:
1. Navigate to Analyze > Paths and filter down what type of user activity you’d like to see by choosing between see only raw pageviews, see only defined events, or see both raw pageviews and defined events. Note that on mobile, screenview events will appear as pageviews.
In a Heap on Heap example, we may want to see what our customers are doing before using the Paths module. We’ll select both raw pageviews and defined events to have as broad a scope as possible for our user activity.
2. On the very next drop-down, select Into. This is what enables you to see what users are doing before your goal event.
3. Complete this field by selecting your goal event. In our example, we want to see what happens before customers run a Paths query.
You can apply filters if you’d like to see only results for a specific selection of users, or group pageviews by a property. As an example, you may have long site URLs and only want to see a certain section of the URL. You can set up a defined property to capture this information only, then use it in this query to make the results cleaner.
4. Last but not least, click Run Query. Hover over and click on any of the paths to drill down for more details about the path.
For more information and best practices on using the Paths module, see Paths.