Profiles Sync Setup
Profiles requires a Business tier account and is included with Engage.
See the available plans, or contact us.
Profiles Sync Beta
Profiles Sync is in beta and Segment is actively working on this feature. Segment’s First-Access and Beta terms govern this feature. To learn more, reach out to your CSM, AE, or SE.
Profiles Sync connects identity-resolved customer profiles to a data warehouse of your choice.
With a continual flow of synced Profiles, teams can enrich and use these data sets as the basis for new audiences and models. Profiles Sync addresses a number of use cases, with applications for machine learning, identity graph monitoring, and attribution analysis. View Profiles Sync Sample Queries for an in-depth guide to Profiles Sync applications.
On this page, you’ll learn how to set up Profiles Sync, enable historical backfill, and adjust settings for warehouses that you’ve connected to Profiles Sync.
Initial Profiles Sync setup
Identity Resolution Setup
To use Profiles Sync, you must first set up Identity Resolution.
To set up Profiles Sync, you’ll first create a warehouse, then connect the warehouse within the Segment app.
Before you begin, prepare for setup with these tips:
- To connect your warehouse to Segment, you must have read and write permissions with the warehouse Destination you choose.
- During Step 2, you’ll copy credentials between Segment and your warehouse Destination. To streamline setup, open your Segment workspace in one browser tab and open another with your warehouse account.
- Make sure to copy any IP addresses Segment asks you to allowlist in your warehouse Destination.
Step 1: Create a warehouse
You’ll first choose the Destination warehouse to which Segment will sync Profiles. Profiles Sync supports the Snowflake, Redshift, BigQuery, Azure, and Postgres warehouse Destinations. Your initial setup will depend on the warehouse you choose.
The following table shows the supported Profiles Sync warehouse Destinations and the corresponding required steps for each. Select a warehouse, view its Segment documentation, then carry out the warehouse’s required steps before moving to Step 2 of Profiles Sync setup:
Warehouse Destination | Required steps |
---|---|
Snowflake | 1. Create virtual warehouse. 2. Create a database. 3. Create role for Segment. 4. Create user for Segment. 5. Test the user and credentials. |
Redshift | 1. Choose an instance. 2. Provision a new Redshift cluster. |
BigQuery | 1. Create a project and enable BigQuery. 2. Create a service account for Segment. |
Azure | 1. Sign up for an Azure subscription. 2. Provision a dedicated SQL pool. |
Postgres | 1. Follow the steps in the Postgres getting started section. |
Once you’ve finished the required steps for your chosen warehouse, you’re ready to connect your warehouse to Segment. Because you’ll next enter credentials from the warehouse you just created, leave the warehouse tab open to streamline setup.
Step 2: Connect the warehouse and enable Profiles Sync
With your warehouse configured, you can now connect it to Segment.
During this step, you’ll copy credentials from the warehouse you just set up and enter them into the Segment app. The specific credentials you’ll enter depend on the warehouse you chose during Step 1.
Segment may also display IP addresses you’ll need to allowlist in your warehouse. Make sure to copy the IP addresses and enter them into your warehouse account.
Follow these steps to connect your warehouse:
- In your Segment workspace, navigate to Profiles > Profiles Sync.
- Select Add warehouse, choose the warehouse you just set up, then select Next.
- Segment shows an IP address to allowlist. Copy it to your warehouse Destination.
- Segment prompts you to enter specific warehouse credentials. Enter them, then select Test Connection.
- If the connection test succeeds, Segment enables the Next button. Select it.
- If the connection test fails, verify that you’ve correctly entered the warehouse credentials, then try again.
- Select Next on the Sync schedule page. Segment displays the Profiles Sync overview page.
- Select Request sync to be enabled.
Segment staff then receives and enables live sync for your account.
Using historical backfill
Profiles Sync sends Profiles to your warehouse on an hourly basis, beginning after you complete setup. You can use backfill, however, to sync historical Profiles to your warehouse, as well.
By default, Segment includes identity graph updates, external ID mapping tables, and two months of the events table in the initial warehouse sync made during setup. Reach out to Segment support if your use case exceeds the scope of the initial setup backfill.
Step 3: Materialize key views using a SQL automation tool
To start seeing unified profiles in your warehouse and build attribution models, you’ll need to materialize the tables that Profiles Sync lands into three key views:
id_graph
: the current state of relationships between segment idsexternal_id_mapping
: the current-state mapping between each external identifier you’ve observed and its corresponding, fully-mergedcanonical_segment_id
profile_traits
: the last seen value for all custom traits, computed traits, SQL traits, audiences, and journeys associated with a profile in a single row
Please visit Tables you materialize for more on how to materialize these views either on your own, or with Segment’s open source dbt models
Working with synced warehouses
Monitor Profiles Sync
You can view warehouse sync information in the overview section of the Profiles Sync page. Segment displays the dates and times of the last and next syncs, as well as your sync frequency.
In the Syncs table, you’ll find reports on individual syncs. Segment lists your most recent syncs first. The following table shows the information Segment tracks for each sync:
DATA TYPE | DEFINITION |
---|---|
Sync status | - Success , which indicates that all rows synced correctly; - Partial success , indicating that some rows synced correctly - Failed , indicating that no rows synced correctly |
Duration | Length of sync time, in minutes |
Start time | The date and time when the sync began |
Synced rows | The number of rows synced to the warehouse |
Selecting a row from the Syncs table opens a pane that contains granular sync information. In this view, you’ll see the sync’s status, duration, and start time. Segment also displays a nuanced breakdown of the total rows synced, sorting them into identity graph tables, event type tables, and event tables.
If the sync failed, Segment shows any available error messages in the sync report.
Settings and maintenance
The Settings tab of the Profiles Sync page contains tools that can help you monitor and maintain your synced warehouse.
Disable or delete a warehouse
In the Basic settings tab, you can disable warehouse syncs or delete your connected warehouse altogether.
To disable syncs, toggle Sync status to off. Segment retains your warehouse credentials but stops further Profiles syncs. Toggle Sync status back on at any point to continue syncs.
To delete your warehouse, toggle Sync status to off, then select Delete warehouse. Segment doesn’t retain credentials for deleted warehouses; to reconnect a deleted warehouse, you must set it up as a new warehouse.
Connection settings
In the Connection settings tab, you can verify your synced warehouse’s credentials and view IP addresses you’ll need to allowlist so that Segment can successfully sync Profiles.
If you have write access, you can verify that your warehouse is successfully connected to Segment by entering your password and then selecting Test Connection.
Changing your synced warehouse
If you’d like to change the warehouse connected to Profiles Sync, reach out to Segment support.
Sync schedule
Segment supports hourly syncs.
This page was last modified: 28 Feb 2023
Need support?
Questions? Problems? Need more info? Contact Segment Support for assistance!