Overview

If you use Segment to collect website analytics, Unify can be connected to your Segment workspace as a destination in order to reveal web traffic data. This will also let you build audiences and playbooks using Segment analytics data.

Steps

If you’re also using the Unify Tag, make sure that it isn’t running on the same websites as Segment or else events may be double counted.

Generate a key in Unify

  1. Log in to Unify

  2. Navigate to Settings -> Integrations -> Segment and click Setup

  3. Click the Copy button to copy the write key to your clipboard

Add Segment destination

  1. Log in to Segment and click on the Destinations tab in the sidebar

  2. Click Add destination in the top right corner

  3. Search for “webhook” and select the Webhook (actions) destination

  4. Click Add destination again in the top right corner

  5. Select website source whose data you want to send to Unify and then click Next

  6. Give this destination a name, make sure Fill in settings manually is selected, and click Create destination

  7. Click on the Mappings tab on the top and then select New Mapping

  8. Choose the Send option

  9. Fill in the following mapping values…

    1. Under Section 1:

      1. Unify currently supports Page, Track, and Identify event types. You should select any and then list all of these types.
      2. If there are specific event types that you know you do not want to forward to Unify, you can safely omit them.
    2. Under Section 2:

      1. Click Load Sample Event to populate the box with an example Segment event
    3. Under Section 3:

      1. Next to URL, fill in the following value:

        https://analytics.unifygtm.com/api/v1/webhooks/segment
        
      2. List two values under Headers (click Add Mapping Field to add more boxes):

        1. <YOUR WRITE KEYX-Write-Key
        2. application-jsonContent-Type
      3. Be sure to replace <YOUR WRITE KEY> with the key you copied earlier

    4. Under Section 4:

      1. Send a test event to verify that it’s working

That’s it! If you see Test succeeded, you’re all set. Traffic should now be flowing into Unify.