logo

Segment (Cloud Destination)

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

  1. Log into your organization’s Segment account.
  1. Navigate to Settings > Workspace Settings > Access Management > Tokens.
  1. Copy the Segment Token - you’ll need to paste this into 1Flow.

From 1Flow

  1. Log into your 1Flow dashboard and navigate to Integrations.
  1. Click on Segment (Cloud Destination) > Connect.
  1. 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:
javascript
analytics.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:
javascript
analytics.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:
javascript
analytics.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).