This page describes how to use Census with Segment.

πŸƒβ€β™€οΈ Getting Started

In this guide, we will show you how to connect Segment to Census and create your first sync.


Segment Sync Setup

1. Create or get a Segment API key

  • From within Segment, navigate to Settings > Workspace Settings > Access Management > Tokens. Or click here and change the URL to add your Project Id.
  • Click the Create Token Button and grant access as an Admin to the sources to which you want to sync.
  • Copy the Created Token.
  • Navigate to the Connections Page of Census, click on the "Add Service" button and select Segment, and past the created token in the designated field
  • Census will convert this right here and now you're all set with the Segment Connection!
Don't worry if the credential here is different!
Note: Census's permissions will be the same as this Segment token.

2. Connect your data warehouse

If you don't already have a data warehouse connected, follow one of our short guides depending on your data warehouse service:
You should now have a connection to Segment and to your data warehouse! Let's start syncing user data.

3. Create your first Model

Now navigate to the Model section of our Dashboard.β€‹β€Œ
Here you will have to write SQL queries to select the data you want to join to a Segment User. Here are some ideas of data you should selectβ€Œ.
  • User with product usage properties
  • User with the organization they are associated to
  • User with the classification coming from a User Classification model

4. Create your first Sync

Now head to the Sync page and click the Add Sync buttonβ€Œ.
In the " What data do you want to sync?" sectionβ€Œ
  • For the Connection, select the data warehouse you connected in step 2
  • For the Source, select the model you created in step 3
Next up is the "Where do you want to sync data to?" sectionβ€Œ
  • Pick the name of Segment service from step 1 as the Connection, right now the object we can sync to is limited to User​
For the " How should changes to the source be synced?" sectionβ€Œ
  • Update or Create will be preselected as it is supported​
  • Pick the right mapping key, we can sync based on userId from the Segment Identify call or to the device: AnonymousId
Finally, select the fields you want to update in the Mapper in the "Which Fields should be updated?" sectionβ€Œ.
  • Here simply map the fields from your model to the Segment User Properties you want to sync to. You can specify specific properties or "Sync All Properties" such that new columns in the source table will be created on the Segment User object according to the normalization rule you apply
The end result should look something like this​:
Click the Next button to see the final preview which will have a recap of what will happen when you start the syncβ€Œ.
That's it! In 4 steps, you've connected Segment and started syncing user properties data from your warehouse πŸŽ‰

πŸ—„ Supported Objects

Segment support is pretty straight forward!
Object Name
​Contact us if you want Census to support more objects for Segment.

πŸ”„ Supported Sync Behaviors

Learn more about all of our sync behaviors on our Core Concepts page.
Update or Create
​Contact us if you want Census to support more Sync behaviors for Segment.

πŸš‘ Need help connecting to Segment?

​Contact us via [email protected] or start a conversation with us via the in-app chat.
Last modified 22d ago