Segment is a leading customer data platform (CDP). 1Flow’s Cloud Destination integration with Segment allows you to automatically stream events and user data you’re already tracking into 1Flow. This allows you to reach out to the right users at the right time, without extra engineering efforts.
Events tracked in other sources can be used to define target audience for your 1Flow surveys and messaging. However, events not tracked directly in 1Flow cannot be used as survey triggers, as the data streaming is not real-time and often have visible delays. Please use the 1Flow SDK for tracking events which are used for triggering purposes.
Connect Segment (Cloud Destination)
From Segment
- Log into your organization’s Segment account.
- Navigate to Settings > Workspace Settings > Access Management > Tokens.
- Copy the Segment Token - you’ll need to paste this into 1Flow.
From 1Flow
- Log into your 1Flow dashboard and navigate to Integrations.
- Click on Segment (Cloud Destination) > Connect.
- In the side panel that opens up, paste the Segment Token.
Congratulations! You have successfully set up Segment (Cloud Destination) and will start receiving events and user profiles in your 1Flow project. Data received can be used to target the right users at the right time with the right messaging.
Segment calls supported
The following types of Segment tracking calls are supported by 1Flow.
Identify
Send
identify
calls to create new user profile or update existing users with new trait values. For example: javascriptanalytics.identify('userId123', { email: 'john.doe@example.com' });
Segment sends Identify calls to 1Flow as an
identify
event.Track
Send
track
calls to record user behavior in your app. For example: javascriptanalytics.track('Login Button Clicked')
Segment sends Track calls to 1Flow as a
track
event.Screen
Send Screen calls to record which mobile app screens users have viewed. For example:
objective-c[[SEGAnalytics sharedAnalytics] screen:@"Home"];
Segment
screenview
event is recorded in 1Flow as a track
event with the name screen_[name]
(or screen_view
if a screen name isn’t provided).Page
Send Page calls to record which website pages users have visited. For example:
javascriptanalytics.page('Pricing', { title: 'Segment Pricing', url: 'https://segment.com/pricing', path: '/pricing', referrer: 'https://segment.com/warehouses' });
Segment
pageview
event is recorded in 1Flow as a track
event with the name page_[name]
(or page_view
if a page name isn’t provided).