Stitch Documentation
has moved!

Please update your bookmarks to

If you're not automatically redirected after 5 seconds, click here.

Connecting Segment

Before we dive into how to connect Segment to Stitch, we want to briefly touch on how our Segment integration works.

Stitch uses what is called a direct integration to integrate with Segment. This is a webhook-based method of sending your Segment data to integrations. Unlike REST or SOAP APIs, webhooks deliver data as it happens in real-time.

In the event that our webhook service experiences downtime, you may notice some lag between an event occurring and the data appearing in your data warehouse.

To complete the setup, you'll need to:

  1. Add Stitch as a selective integration
  2. Add Segment as a data source in Stitch

Adding Stitch as a Selective Integration

All data collected by Segment is sent to us by default, but if individual snippets on your site specify which integrations data should be sent to, then these settings will be overridden. 

If you use selective integration snippetsyou'll need to add Stitch to the list of integrations before data will flow to your data warehouse.

Here's an example of a snippet that sends data to Stitch, Mixpanel, and KISSMetrics only:

}, {
  integrations: {
    'All': false,
    'Stitch': true,        // 'true' indicates if the integration receives data
    'Mixpanel': true,
    'KISSmetrics': true

When you add Stitch to your snippet, make sure you enter Stitch exactly as it appears in the example above.

Adding Segment as a Data Source in Stitch

  1. On the Stitch Dashboard page, click the Add an Integration button.
  2. Click the Segment icon.
  3. Enter a name for the integration. This is the name that will display on the Stitch dashboard for the integration; it’ll also be used to create the schema in your data warehouse.

    For example, the name “Stitch Segment” would create a schema called stitch_segment in the data warehouse.
  4. Click the Enable with Segment button.
  5. At this point, you'll be taken to Segment's website. Follow the instructions to complete the setup.

If the connection is successful, a Success! message will display at the top of the page. Now you can sit back and relax while Stitch replicates your Segment data to your data warehouse.


Was this article helpful?
0 out of 0 found this helpful


Questions or suggestions? If something in our documentation is unclear, let us know in the comments!