logo

Segment Web (Actions) Destination

Segment is a leading customer data platform (CDP). 1Flow’s Web (Actions) 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.
💡
When you use the Actions destination, Segment loads the 1Flow SDK for you. This means you do not need to make any code changes to your website or web application in order to start using 1Flow to collect insights. All the events and user attributes that you’re sending to Segment will be available for use in 1Flow, too. If you use this integration, do not install 1Flow’s JavaScript SDK separately into the code base, since Segment SDK will automatically load the SDK for you already.

Connect Segment (Web Actions Destination)

From Segment

  1. Log into your organization’s Segment account.
  1. Navigate to Connections > Catalog, then select Destinations.
  1. Search for and select 1Flow Web (Actions) Destination.
  1. Select the web source that will send data to 1Flow web (Actions) and follow the steps to name your destination. The web source chosen must use Analytics.js 2.0.
  1. On the Settings tab, input your 1Flow PROJECT API KEY and other destinations settings.
  1. Follow the step in the Destinations Actions docs to customizing mappings.
  1. Enable the destination and configured mappings.
  1. After you set this up, wait for ~1 hour for the changes to propagate over the Internet.
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.