You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/unify/index.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,6 @@ You can then use this interaction data with customer engagement tools, such as E
15
15
> success ""
16
16
> If you need to troubleshoot or learn about your profile data, use [Profiles Insights](/docs/unify/insights/) for a transparent view of your Unify profiles.
17
17
18
-
19
18
## Getting started
20
19
21
20
> info ""
@@ -78,6 +77,14 @@ Learn about your events and identifiers on your profiles and answer questions su
78
77
79
78
Visit the [Profiles Insights](/docs/unify/insights/) doc to learn more.
80
79
80
+
## Profiles Sync
81
+
82
+
Use Profiles Sync to connect identity-resolved customer profiles to a data warehouse of your choice.
83
+
84
+
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 identity graph monitoring, attribution analysis, machine learning, and more.
85
+
86
+
Visit the [Profiles Sync Setup](/unify/profiles-sync/profiles-sync-setup/) doc to learn more.
87
+
81
88
## Next steps: activate your profiles with Engage
82
89
83
90
For Engage users, after you set up your identity rules and have data flowing through Unify, you can activate profiles to deliver personalized engagement experiences. Visit the [Engage docs](/docs/engage/) to learn more.
Copy file name to clipboardExpand all lines: src/unify/profiles-sync/profiles-sync-setup/index.md
+60-38Lines changed: 60 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,33 +9,33 @@ On this page, you’ll learn how to set up Profiles Sync, enable historical back
9
9
10
10
## Initial Profiles Sync setup
11
11
12
-
> info "Identity Resolution Setup"
12
+
> info "Identity Resolution setup"
13
13
> To use Profiles Sync, you must first set up [Identity Resolution](/docs/unify/identity-resolution/).
14
14
15
15
To set up Profiles Sync, you’ll first create a warehouse, then connect the warehouse within the Segment app.
16
16
17
17
Before you begin, prepare for setup with these tips:
18
18
19
19
- To connect your warehouse to Segment, you must have read and write permissions with the warehouse Destination you choose.
20
-
- 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.
21
-
- Make sure to copy any IP addresses Segment asks you to allowlist in your warehouse Destination.
22
-
23
-
### Step 1: Create a warehouse
20
+
- 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.
21
+
- Make sure to copy any IP addresses Segment asks you to allowlist in your warehouse destination.
22
+
23
+
### Step 1: Select a warehouse
24
24
25
-
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.
25
+
You’ll first choose the destination warehouse to which Segment will sync profiles. Profiles Sync supports the Snowflake, Redshift, BigQuery, Azure, Postgres, and Databricks warehouse Destinations. Your initial setup will depend on the warehouse you choose.
26
26
27
-
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:
27
+
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:
|[Snowflake](/docs/connections/storage/catalog/snowflake/#getting-started)|1. Create virtual warehouse. <br> 2. Create a database. <br> 3. Create role for Segment. <br> 4. Create user for Segment. <br> 5. Test the user and credentials.|
32
-
|[Redshift](/docs/connections/storage/catalog/redshift/#getting-started)|1. Choose an instance. <br> 2. Provision a new Redshift cluster. |
33
-
|[BigQuery](/docs/connections/storage/catalog/bigquery/)| 1. Create a project and enable BigQuery. <br> 2. Create a service account for Segment.|
34
-
|[Azure](/docs/connections/storage/catalog/azuresqldw/)|1. Sign up for an Azure subscription. <br> 2. Provision a dedicated SQL pool. |
35
-
|[Postgres](/docs/connections/storage/catalog/postgres/)|1. Follow the steps in the [Postgres getting started](/docs/connections/storage/catalog/postgres/) section. |
36
-
|[Databricks](/docs/unify/profiles-sync/profiles-sync-setup/databricks-profiles-sync/)| 1. Follow the steps in the [Databricks for Profiles Sync](/docs/unify/profiles-sync/profiles-sync-setup/databricks-profiles-sync/) guide.|
29
+
| Warehouse Destination | Required steps
30
+
| -------------- | ----------- |
31
+
|[Snowflake](/docs/connections/storage/catalog/snowflake/#getting-started)|Follow the steps in [Snowflake Getting Started](/connections/storage/catalog/snowflake/#getting-started)|
32
+
|[Redshift](/docs/connections/storage/catalog/redshift/#getting-started)|Follow the steps in [Redshift Getting Started](/connections/storage/catalog/redshift/#getting-started)|
|[Azure](/docs/connections/storage/catalog/azuresqldw/)|Follow the steps in [Azure Synapse Analytics Getting Started](/connections/storage/catalog/azuresqldw/#getting-started)|
35
+
|[Postgres](/docs/connections/storage/catalog/postgres/)| Follow the steps in [Postgres getting started](/docs/connections/storage/catalog/postgres/). |
36
+
|[Databricks](/docs/unify/profiles-sync/profiles-sync-setup/databricks-profiles-sync/)|Follow the steps in the [Databricks for Profiles Sync](/docs/unify/profiles-sync/profiles-sync-setup/databricks-profiles-sync/) guide. |
37
37
38
-
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.**
38
+
After 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.**
39
39
40
40
#### Profiles Sync permissions
41
41
@@ -60,25 +60,39 @@ The following Segment access [roles](/docs/segment-app/iam/roles/) apply to Prof
60
60
61
61
### Step 2: Connect the warehouse and enable Profiles Sync
62
62
63
-
With your warehouse configured, you can now connect it to Segment.
63
+
After selecting your warehouse, you can connect it to Segment.
64
64
65
-
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.
65
+
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.
66
66
67
67
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.
68
68
69
-
Follow these steps to connect your warehouse:
69
+
To connect your warehouse:
70
70
71
-
1. In your Segment workspace, navigate to **Unify > Profiles Sync**.
72
-
2. Select **Add warehouse**, choose the warehouse you just set up, then select **Next**.
73
-
3. Segment shows an IP address to allowlist. Copy it to your warehouse Destination.
74
-
4. Segment prompts you to enter specific warehouse credentials. Enter them, then select **Test Connection**.
71
+
1. Configure your database.
72
+
- Be sure to log in with a user who has read and write permissions so that Segment can write to your database.
73
+
- Segment shows an IP address to allowlist. Copy it to your warehouse destination.
74
+
2. Enter a schema name to help you identify this space in the warehouse, or use the default name provided.
75
+
- The schema name can't be changed after the warehouse is connected.
76
+
4. Enter your warehouse credentials, then select **Test Connection**.
75
77
5. If the connection test succeeds, Segment enables the **Next** button. Select it.
76
78
* If the connection test fails, verify that you’ve correctly entered the warehouse credentials, then try again.
77
-
6. Set up a **Sync Schedule**, and select **Next**.
78
-
7. From the [Set Selective Sync](#using-selective-sync) page, select the tables and columns you'd like to sync and click **Next**. Segment displays the Profiles Sync overview page.
79
-
7. Select **Request sync to be enabled**.
80
79
81
-
Segment staff then receives and enables live sync for your account.
80
+
81
+
### Step 3: Set up Selective Sync
82
+
83
+
Set up Selective Sync to control the exact tables and columns that Segment will sync to your connected data warehouse.
84
+
85
+
> info ""
86
+
> Data will be backfilled to your warehouse based on the last two months of history.
|[Track event tables](/docs/unify/profiles-sync/tables/#track-event-tables)| To view and select individual track tables, don't sync track tables during the initial setup. Edit your sync settings after enabling Profiles Sync and waiting for the first sync to complete. | 2 months |
82
96
83
97
#### Using Selective Sync
84
98
@@ -92,15 +106,12 @@ You'll see a list of event type tables, event tables, and [tables Segment materi
92
106
93
107
Regardless of schema size, only the first 5,000 collections and 5,000 properties per collection can be managed using your Segment space. To edit Selective Sync settings for any collection which exceeds this limit, [contact Segment support](https://app.segment.com/workspaces?contact=1){:target="blank"}.
94
108
95
-
> warning ""
96
-
> Profiles Sync will always sync the External ID Mapping and ID Graph Updates tables. These tables can't be disabled with Selective Sync.
97
-
98
109
> info ""
99
110
> You must be a workspace owner to change Selective Sync settings.
100
111
101
112
#### When to use Selective Sync
102
113
103
-
By default, Segment syncs all tables and properties to your warehouse. Use Selective Sync when you'd like to prevent specific tables and properties from syncing to your warehouse. Segment stops syncing from disabled tables or properties, but will not delete any historical data from your warehouse.
114
+
Use Selective Sync when you want to prevent specific tables and properties from syncing to your warehouse. Segment stops syncing from disabled tables or properties, but will not delete any historical data from your warehouse.
104
115
105
116
If you choose to re-enable a table or property to sync again, only new data generated will sync to your warehouse. Segment doesn't backfill data that was omitted with Selective Sync.
106
117
@@ -113,8 +124,8 @@ Profiles Sync sends profiles to your warehouse on an hourly basis, beginning aft
113
124
114
125
When Segment runs historical backfills:
115
126
116
-
-The `id_graph_updates`, `external_id_mapping_updates`, and `profile_traits_updates` tables sync your entire historical data to your warehouse.
117
-
- Profiles Sync gathers the last two months of all events, including those from the `identities`, `page`, `screens`, and `tracks`tables, and syncs them to your warehouse.
127
+
-Profile raw and materialized tables sync your entire historical data to your warehouse.
128
+
- Profiles Sync gathers the last two months of all events for Event type and Track event tables and syncs them to your warehouse.
118
129
119
130
Segment lands the data on an internal staging location, then removes the backfill banner. Segment then syncs the backfill data to your warehouse.
120
131
@@ -123,22 +134,33 @@ Reach out to [Segment support](https://app.segment.com/workspaces?contact=1){:ta
123
134
> success ""
124
135
> While historical backfill is running, you can start building [materialized views](/docs/unify/profiles-sync/tables/#tables-you-materialize) and running [sample queries](/docs/unify/profiles-sync/sample-queries).
125
136
126
-
### Step 3: Materialize key views using a SQL automation tool
137
+
138
+
### Step 4 (Optional): Materialize key views using a SQL automation tool
139
+
140
+
During setup, you have the option of setting up materialized key views in one of two ways:
141
+
142
+
1. You can choose to materialize views on your own by using `profiles raw tables`.
143
+
You may want to materialize your own tables if, for example, you want to transform additional data or join Segment profile data with external data before materialization.
144
+
145
+
2. You can choose to use Segment's open source dbt models by using `profiles materialized` tables.
146
+
147
+
> success ""
148
+
> You can alternatively use [tables that Segment materializes](/docs/unify/profiles-sync/tables/#tables-segment-materializes) and syncs to your data warehouse.
127
149
128
150
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:
129
151
130
152
*`id_graph`: the current state of relationships between segment ids
131
153
*`external_id_mapping`: the current-state mapping between each external identifier you’ve observed and its corresponding, fully-merged `canonical_segment_id`
132
154
*`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
133
155
134
-
Please visit[Tables you materialize](/docs/unify/profiles-sync/tables/#tables-you-materialize) for more on how to materialize these views either on your own, or with [Segment's open source dbt models](https://github.com/segmentio/profiles-sync-dbt){:target="blank"}.
156
+
See[Tables you materialize](/docs/unify/profiles-sync/tables/#tables-you-materialize) for more on how to materialize these views either on your own, or with [Segment's open source dbt models](https://github.com/segmentio/profiles-sync-dbt){:target="blank"}.
135
157
136
158
> warning ""
137
-
> Please note that dbt models are in beta and need modifications to run efficiently on BigQuery, Synapse, and Postgres warehouses. Segment is actively working on this feature.
159
+
> Note that dbt models are in beta and need modifications to run efficiently on BigQuery, Synapse, and Postgres warehouses. Segment is actively working on this feature.
138
160
139
161
## Profiles Sync limits
140
162
141
-
As you use Profiles Sync, please keep the following limits in mind:
163
+
As you use Profiles Sync, keep the following limits in mind:
142
164
143
165
- For event tables, Segment can only backfill up to 2,000 tables for each workspace.
144
166
- Segment can only initiate backfills after a successful sync with > 0 rows.
@@ -157,7 +179,7 @@ In the Syncs table, you’ll find reports on individual syncs. Segment lists you
| Sync status | - `Success`, which indicates that all rows synced correctly; <br> - `Partial success`, indicating that some rows synced correctly <br> - `Failed`, indicating that no rows synced correctly |
182
+
| Sync status | - `Success`, which indicates that all rows synced correctly <br> - `Partial success`, indicating that some rows synced correctly <br> - `Failed`, indicating that no rows synced correctly |
161
183
| Duration | Length of sync time, in minutes |
162
184
| Start time | The date and time when the sync began |
163
185
| Synced rows | The number of rows synced to the warehouse |
0 commit comments