Heap integration
CommandBar’s integration with Heap works in two directions:
- CommandBar —> Heap: send CommandBar-generated events to Heap, so you can build dashboards using CommandBar events (and mix them with other events in Heap)
- Heap —> CommandBar: use
segments
built in Heap for Who targeting in CommandBar
Once configured, the integration will "just work" — no maintenance required. You will not need to make any code changes to handle new/removed users that enter your synced segments.
Configuring Heap integration
-
Navigate to Integrations and click “Connect” on the Heap card.
-
To send CommandBar-generated events to Heap, set the toggle to “Send”.
-
To use the
segments
built in Heap, click “Sync with Heap”. -
At this point, you will OAuth into Heap.
- Select the Heap environment you want to connect to CommandBar.
- Click "Allow".
-
To finish syncing Heap heap, you’ll need to log in to Heap at https://heapanalytics.com/login.
Syncing Heap heap with CommandBar
-
Inside Heap, click on "Data" in the left-hand menu, and then select "Segments".
-
Choose a segment, then scroll down to the "Integrations" section in the right-hand detail pane for the segment. Turn on the toggle next to “CommandBar”.
-
Select the Heap User ID that should be used to link data to CommandBar. Then click “Confirm”.
-
If the integration modal closes, you will have to click the toggle next to the CommandBar integration again.
-
From here, we recommend using the "Enable Recurring Sync" option. You can also use “Sync now” if your plan does not have any remaining recurring syncs
- Recurring sync: Updates every 4 hours automatically
- Sync now: Only syncs once (must sync manually thereafter)
Because Heap emphasizes granular controls on integrations, you must repeat the above process for any segment that you want to connect to CommandBar.
How to use Heap segments in CommandBar
There are many ways to use Heap segments in CommandBar, and we'll walk through a few!r
Deploy a product tour to a specific segment
If you want to target a product tour to a specific Heap segment:
- From the Product Tours dashboard, click into a product tour or create a new one.
- Select the "Targeting" tab.
- In the
Audience
dropdown select “Custom”. - Click "Add condition", open the first dropdown, and choose "Heap Segment".
- Then choose the desired Heap segment.
Deploy a checklist to a target segment
If you want to deploy a checklist to a specific Heap segment:
- From the Checklist dashboard, click into a checklist or create a new one.
- Select the "Targeting" tab.
- In the
Audience
dropdown select “Custom”. - Click "Add condition", open the first dropdown, and choose "Heap Segment".
- Then choose the desired Heap segment.
What events are sent to Heap?
If enabled, these events are sent to Heap.