The Heap integration connects one Userflow environment to one Heap environment. It does two things: it streams Userflow-generated events into Heap, and it syncs segments you define in Heap into Userflow so you can target content with them.
Userflow-generated events, such as Flow Started and Checklist Task Completed, are streamed into the Heap environment you choose. Heap segments show up as segments on the Users page in Userflow.
Do I need a separate Heap integration for Staging and Production?
Yes. Each Heap integration connects one Userflow environment to one Heap environment. Use a separate Heap environment for each of your app's environments (Production, Staging and so on), the same way you use separate Userflow environments. This keeps Staging data out of Production.
If you have both Staging and Production, connect Heap once in each Userflow environment: switch environments in the top-right corner of Userflow, then follow Connect Heap to Userflow again. We strongly recommend connecting Staging first and checking that it works before you connect Production.
Use the same user ID in Heap and Userflow
The Heap integration matches users by user ID. Identify each user with the same ID in Heap and in Userflow, or events and segments won't line up.
Connect Heap to Userflow
Sign in to Userflow.
Check that the correct Userflow environment is selected in the top-right corner.
Go to Settings → Integrations.
Click Add integration.
Click Heap.
Click Add Heap.
Click Connect with Heap.
In the popup window, choose your Heap environment in the top-right corner.
Click Allow.
Userflow and Heap are now connected, but no data moves yet. To start, set up segment sync, event streaming, or both.
Sync Heap segments to Userflow
Heap segment sync keeps a Heap segment up to date as a segment in Userflow, so you can target Userflow content at it.
Sign in to Heap.
Go to Definitions → Segments.
Choose your segment.
In the right-side panel under Integrations, switch Userflow to ON.
The first time you turn on segment sync, Heap asks how to map users. We recommend Identity.
Click Enable Recurring Sync. Sync now runs a one-time sync instead, which is rarely useful with Userflow because the segment won't stay current.
Sign in to Userflow and go to Users.
Within a few moments, the segment appears in the segment list on the left with a Heap icon. Reload the page if you don't see it.
Stream Userflow events to Heap
Event streaming sends Userflow-generated events to Heap as they happen.
Sign in to Heap.
Check that the correct Heap environment is selected in the top-left corner.
Copy your Heap App ID from the browser's address bar. It's the
<id>part ofhttps://heapanalytics.com/app/env/<id>/....Sign in to Userflow and go to Settings → Integrations → Heap.
Paste the Heap App ID into the Heap App ID field.
Click Save.
Switch Stream events from Userflow to Heap to ON. Streaming starts immediately.
In Heap, go to Live and check that Userflow events are coming in. To trigger one, open the Resource Center or start a flow.
How do I disconnect Heap?
In Userflow, go to Settings → Integrations and find Heap.
Click the three-dot button in the top right.
Click Disconnect.
Event streaming and Heap segment sync stop immediately.
Related articles
Userflow-generated events: the full list of events Userflow streams to Heap
Users and Segments: where synced Heap segments appear and how to use them for targeting
Integrations: every integration Userflow supports