Sendwithus’ Segment.com integration has been deprecated. Users with pre-existing Segment.com integrations will remain unaffected and are able to create and manage their triggers. If you have any questions, send us a message at support@sendwithus.com.

Segment.com is an event aggregator. The idea is that you replace all of your internal hooks with segment calls, then flip a switch to send that data to your analytics program, customer relationship management (crm), help desk, etc. We make use of both the identify and track call (more on that in the Segment documentation). But, if you’re not already set up with Segment, you should head over to their getting started guide before venturing forth. If you are using Segment, a Sendwithus integration is basically the flip of a switch!

  1. Turn on Sendwithus in Segment
  2. Create an API Key for Segment
  3. Create a Segment Integration ID
  4. Add a new Segment Trigger

Turn on Sendwithus in Segment

Turn on Email Automation

Ok there’s a bit of setup involved. But I promise it’s not that much. When you flip that switch, you’ll get a settings pane, asking you for an API key and an Integration ID.

empty segment

Next, you’ll need to log in to the app to create these.

Create an API Key for Segment

You will first need a new API key in Sendwithus. You can do this from the API Settings on the left side of your dashboard. Then, click on + Create New API Key and give it a name like “Segment” or “Segment Test” – a test key works in the same way as a production key, but will not affect logs or analytics.

Create API Key

Then simply copy it to your clipboard with the highlighted purple button and paste it into the Segment window in the API Key field.

API Key

Create a new Segment Integration ID

Next, navigate to the Automation tab, and under Manage Integrations, select Segment.com.

Segment Trigger

Here you will create a new project. Again, give it a nice, descriptive name and we’re good to go.

New Project

This will create the integration ID that you need to complete the integration setup.

Project ID

You’ll get a warning that no events have been received on this key yet, we’ll get to that. For now just click the copy button and paste the new key into the Integration ID field in Segment.

Segment API key

Save it and you’re good to go!

Add a new Segment Trigger

To add a new Segment.com trigger, go to the Triggers tab and click on New Trigger then select Segment.com Track Event as the Event Source.

Email events list

The drop-down menu will auto-populate with any events we’ve received so far, but if you know which event you want to use, you can type it in and it will work just the same. Just make sure you match it exactly, events are case sensitive.

From there, you just select which action you want to correspond to your chosen event, pick the appropriate template or drip campaign, and you’re all set.

Select action

The final product should look something like this:

Finished Email Trigger

Finished Trigger