Heap
Heap is a product analytics platform.
The Userflow-Heap integration enables you to analyze how users interact with your flows/checklists, and correlate it to other behavioral analytics that you collect in Heap.
Userflow-generated events, such as Flow Started and Checklist Task Completed, can be continuously streamed into your Heap environment of choice.
You can also sync segments defined in Heap into Userflow segments, so that you can target Userflow content based on behavior captured in Heap.
Heap environments and Userflow environments
It’s recommended to use a separate Heap environment for each of your app’s environments (Production, Staging etc.). The same is true in Userflow. This is to ensure that e.g. Staging data doesn’t pollute Production data.
A Userflow-Heap integration is between a single Userflow environment and a single Heap environment. If you have both a Staging and a Production environment, you therefore have to run the below setup guide for both Production and for Staging.
We strongly recommend that you start with your Staging environment, and verify that it works as you expect, before connecting your Production environment.
Required User ID match for integration
To match data between users in Heap and Userflow it is a requirement that you use the same user id to identify users in both platforms.
Setup guide
- Sign into Userflow.
- Make sure the correct Userflow environment is selected in the top-right corner of the screen.
- Go to Settings → Integrations.
- Click Add integration.
- Click Heap.
- Click Add Heap.
- Click Connect with Heap.
- Choose your desired Heap environment in the top-right of the popup window that opens.
- Click Allow.
Your Userflow account and your Heap account are now connected, but nothing will happen just yet. Continue to sync a segment and/or set up event streaming.
Syncing segments from Heap to Userflow
- Sign into Heap.
- Go to Definitions → Segments.
- Choose your segment.
- In the right-side panel under Integrations, flip the switch next to Userflow to ON.
- The first time you enable segment sync, Heap will ask you how to map users. We recommend using the “Identity” option.
- Click Enable Recurring Sync. You can also use the Sync now button for a one-time sync, but that’s usually not very useful with Userflow.
- Sign into Userflow.
- Go to Users.
- Within a few moments, the segment should appear in the segment list on the left with a Heap icon. You may need to reload the page to reload segments.
Streaming events from Userflow to Heap
- Sign into Heap.
- Make sure the correct Heap environment is chosen in the top-left of the screen.
-
Copy your Heap App ID. You find it in your browser’s address bar. It’s the
<id>
part ofhttps://heapanalytics.com/app/env/<id>/...
. - Sign into Userflow.
- Go to Settings → Integrations → Heap.
- Paste the App ID that you copied in step 3 into the Heap App ID field.
- Click Save.
- Flip the Stream events from Userflow to Heap switch to ON. Event streaming will start immediately.
- Sign into Heap and go to the Live menu item.
- Verify that Userflow events start showing up. To trigger an event, you can, for example, open the resource center, start a flow etc.
Stopping the integration
- Find your Heap integration in Userflow under Settings -> Integrations.
- Click the three-dot button in the top right.
- Click Disconnect.
- Event streaming and segment sync will stop immediately.