The Amplitude integration connects one Userflow environment to one Amplitude project. It streams Userflow-generated events into Amplitude, and it syncs Amplitude cohorts into Userflow as segments you can target content with.
What does the Amplitude integration do?
The Amplitude integration does two separate things. You can set up either one or both.
Event streaming: Userflow-generated events, such as Flow Started and Checklist Task Completed, are sent to the Amplitude project you choose.
Cohort sync: cohorts you define in Amplitude appear as segments in Userflow. Userflow calls these lists of users “segments” and Amplitude calls them “cohorts”, but they’re the same thing.
Do I need a separate Amplitude integration for Staging and Production?
Yes. Each Amplitude integration connects one Userflow environment to one Amplitude project. Use a separate Amplitude project for each of your Userflow environments, such as Production and Staging, so Staging data doesn’t mix with Production data.
If you have both, set up the integration once for each. We strongly recommend connecting Staging first and checking that it works before you connect Production.
Use the same user ID in Amplitude and Userflow
The Amplitude integration matches users by user ID. Identify each user with the same ID in Amplitude and in Userflow, or streamed events and synced cohorts won’t line up.
Stream Userflow events to Amplitude
Sign in to Amplitude and go to Settings.
.png)
Go to Projects.
.png)
Select the project you want to send Userflow events to.
.png)
Copy the API Key.
.png)
Sign in to Userflow and switch to the environment you want to send events from.
.png)
Go to Settings → Integrations and click Add integration.
.png)
Find and click Amplitude in the list.
.png)
Click Add Amplitude.
.png)
If you don’t see Add Amplitude, the integration may not be included in your plan. Check your billing settings.
Paste the API key you copied from Amplitude into the Amplitude API Key field and click Save.
.png)
Click the Stream events from Userflow to Amplitude switch and confirm in the dialog.
.png)
Streaming starts immediately.
.png)
In Amplitude, go to User Look-Up in the main menu.
.png)
Check that the right project is selected at the top, then check that Userflow events are coming in. It can take a minute for them to appear.
.png)
How do I stop streaming events to Amplitude?
In Userflow, go to Settings → Integrations and open Amplitude.
Check the Stream events from Userflow to Amplitude switch. Gray means streaming is already off. Green means it’s on.
Click the switch and confirm in the dialog.
Event streaming to Amplitude stops immediately.
Sync Amplitude cohorts to Userflow
Cohort sync keeps an Amplitude cohort up to date as a segment in Userflow. Add the Amplitude integration in Userflow before you start (steps 5 to 9 of Stream Userflow events to Amplitude; you don’t need to turn on streaming).
In Userflow, go to Settings → Integrations → Amplitude and click Reveal Integration Secret.
Copy the Integration Secret.
In Amplitude, go to Cohorts.
Pick the cohort you want to sync.
Click Sync to… → Destinations Page → View All Destinations.
Find and click Userflow.
Click Add another destination.
Give it a name, such as your Userflow account name and environment.
Paste the Integration Secret you copied from Userflow.
Important: under User ID Mapping, choose User ID on the Amplitude side. Amplitude and Userflow must use the same user ID.
Click Save.
Go back to the cohort you want to sync. You may need to reload the page.
Click Sync to… → Userflow.
Choose a one-time sync or a recurring sync.
Click Save sync.
Amplitude starts syncing right away. The cohort appears as a segment on the Users page in Userflow.
Related articles
Userflow-generated events: the full list of events Userflow streams to Amplitude
Users and Segments: where synced cohorts appear and how to target them