Skip to content

Commit d38aa9b

Browse files
author
markzegarelli
committed
merge master
2 parents d95800b + bc79211 commit d38aa9b

File tree

4 files changed

+41
-34
lines changed

4 files changed

+41
-34
lines changed

.github/styles/Vocab/Docs/accept.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ Twilio
145145
upsert
146146
US
147147
utm
148+
varchar
148149
Vero
149150
Vidora
150151
viewability

src/engage/user-subscriptions/subscription-sql.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To use Subscriptions with SQL Traits, you need the following:
2323
2424
## Sync subscription data with SQL
2525

26-
You can sync with SQL from two locations in the Segment app. Navigate to **Profiles > Profile explorer** or **Engage > Audiences > Profile explorer**, then:
26+
You can sync with SQL from two locations in the Segment app. Navigate to **Unify > Profile explorer** or **Engage > Audiences > Profile explorer**, then:
2727

2828
1. Click **Manage subscription statuses**, and select **Update subscription statuses**.
2929
2. Select **Sync with SQL**, and click **Configure**.
@@ -64,7 +64,7 @@ You can schedule sync intervals to import subscription data from your warehouse
6464

6565
Use the Update History page to view all SQL jobs.
6666

67-
1. Navigate to **Profiles > Profile explorer** or **Engage > Audiences > Profile explorer.**
67+
1. Navigate to **Unify > Profile explorer** or **Engage > Audiences > Profile explorer.**
6868
2. Click **Manage subscription statuses**.
6969
3. Select **View update history**, then select the **SQL Jobs** tab.
7070

@@ -76,7 +76,7 @@ When you build your SQL query, keep the following requirements in mind for the d
7676

7777
**Your query must:**
7878

79-
- Return at least one column with `user_id`, `anonymous_id`, `email`, `phone` (or `group_id` for account traits if Profiles for B2B is enabled).
79+
- Return at least one column with `user_id`, `anonymous_id`, `email`, `phone` (or `group_id` for account traits if Unify for B2B is enabled).
8080
- Return records less than 16KB in size.
8181

8282
**Your query must not:**

src/unify/profiles-sync/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ To start seeing unified profiles in your warehouse and build attribution models,
103103

104104
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"}.
105105

106+
> warning ""
107+
> 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.
108+
106109
## Profiles Sync limits
107110

108111
As you use Profiles Sync, please keep the following limits in mind:

src/unify/profiles-sync/tables.md

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ Using the profile merge scenario, Segment would generate three new entries to th
9292

9393
<div style="overflow-x:auto;" markdown=1>
9494

95-
| `segment_id` (varchar) | `canonical_segment_id` (varchar) | `triggering_event_type` (varchar) | `triggering_event_id` (varchar) | `timestamp` (datetime) |
96-
| ------------ | ---------------------- | ----------------------- | --------------------- | ------------------- |
97-
| `profile_1` | `profile_1` | `page` | `event_1` | 2022-05-02 14:01:00 |
98-
| `profile_2` | `profile_2` | `page` | `event_3` | 2022-06-22 10:47:15 |
99-
| `profile_2` | `profile_1` | `identify` | `event_4` | 2022-06-22 10:48:00 |
95+
| `segment_id` (varchar) | `canonical_segment_id` (varchar) | `triggering_event_type` (varchar) | `triggering_event_id` (varchar) | `timestamp` (datetime) |
96+
| ---------------------- | -------------------------------- | --------------------------------- | ------------------------------- | ---------------------- |
97+
| `profile_1` | `profile_1` | `page` | `event_1` | 2022-05-02 14:01:00 |
98+
| `profile_2` | `profile_2` | `page` | `event_3` | 2022-06-22 10:47:15 |
99+
| `profile_2` | `profile_1` | `identify` | `event_4` | 2022-06-22 10:48:00 |
100100

101101
</div>
102102

@@ -117,11 +117,11 @@ The anonymous site visits sample used earlier would generate the following event
117117

118118
<div style="overflow-x:auto;" markdown=1>
119119

120-
| `segment_id` (varchar) | `external_id_type` (varchar) | `external_id_value` (varchar) | `triggering_event_type` (varchar) | `triggering_event_id` (varchar) | `timestamp` (datetime) |
121-
| ------------ | -------------------| ------------------------| ----------------------- |-----------------------| ------------------- |
122-
| `profile_1` | `anonymous_id` | `5285bc35-05ef-4d21` | `page` | `event_1` | 2022-05-02 14:01:00 |
123-
| `profile_1` | `email` | `[email protected]` | `identify` | `event_2` | 2022-05-02 14:01:47 |
124-
| `profile_2` | `anonymous_id` | `b50e18a5-1b8d-451c` | `page` | `event_3` | 2022-06-22 10:48:00 |
120+
| `segment_id` (varchar) | `external_id_type` (varchar) | `external_id_value` (varchar) | `triggering_event_type` (varchar) | `triggering_event_id` (varchar) | `timestamp` (datetime) |
121+
| ---------------------- | ---------------------------- | ----------------------------- | --------------------------------- | ------------------------------- | ---------------------- |
122+
| `profile_1` | `anonymous_id` | `5285bc35-05ef-4d21` | `page` | `event_1` | 2022-05-02 14:01:00 |
123+
| `profile_1` | `email` | `[email protected]` | `identify` | `event_2` | 2022-05-02 14:01:47 |
124+
| `profile_2` | `anonymous_id` | `b50e18a5-1b8d-451c` | `page` | `event_3` | 2022-06-22 10:48:00 |
125125

126126
</div>
127127

@@ -142,21 +142,21 @@ The previous result would generate two entries in the `pages` table:
142142

143143
<div style="overflow-x:auto;" markdown=1>
144144

145-
| `segment_id` (varchar) | `context_url` (array) | `anonymous_id` (varchar) | `event_source_id` (varchar) | `event_id` (varchar) | `timestamp` (datetime) |
146-
| ------------ | ---------------------- | -------------------- | ----------------- | ---------- | ------------------- |
147-
| `profile_1` | `twilio.com` | `5285bc35-05ef-4d21` | `source_1` | `event_1` | 2022-05-02 14:01:00 |
148-
| `profile_2` | `twilio.com/education` | `b50e18a5-1b8d-451c` | `source_1` | `event_3` | 2022-06-22 10:47:15 |
145+
| `segment_id` (varchar) | `context_url` (array) | `anonymous_id` (varchar) | `event_source_id` (varchar) | `event_id` (varchar) | `timestamp` (datetime) |
146+
| ---------------------- | ---------------------- | ------------------------ | --------------------------- | -------------------- | ---------------------- |
147+
| `profile_1` | `twilio.com` | `5285bc35-05ef-4d21` | `source_1` | `event_1` | 2022-05-02 14:01:00 |
148+
| `profile_2` | `twilio.com/education` | `b50e18a5-1b8d-451c` | `source_1` | `event_3` | 2022-06-22 10:47:15 |
149149

150150
</div>
151151

152152
And two entries in the `identifies` table:
153153

154154
<div style="overflow-x:auto;" markdown=1>
155155

156-
| `segment_id` (varchar) | `context_url` (array) | `anonymous_id` (varchar) | `email` (varchar) | `event_source_id` (varchar) | `event_id` (varchar) | `timestamp` (datetime) |
157-
| ------------ | ---------------------------- | -------------------- | ---------------------- | ----------------- | ---------- | ------------------- |
158-
| `profile_1` | `twilio.com/try_twilio` | `5285bc35-05ef-4d21` | `[email protected]` | `source_1` | `event_2` | 2022-05-02 14:01:47 |
159-
| `profile_2` | `twilio.com/events/webinars` | `b50e18a5-1b8d-451c` | `[email protected]` | `source_2` | `event_4` | 2022-06-22 10:48:00 |
156+
| `segment_id` (varchar) | `context_url` (array) | `anonymous_id` (varchar) | `email` (varchar) | `event_source_id` (varchar) | `event_id` (varchar) | `timestamp` (datetime) |
157+
| ---------------------- | ---------------------------- | ------------------------ | ---------------------- | --------------------------- | -------------------- | ---------------------- |
158+
| `profile_1` | `twilio.com/try_twilio` | `5285bc35-05ef-4d21` | `[email protected]` | `source_1` | `event_2` | 2022-05-02 14:01:47 |
159+
| `profile_2` | `twilio.com/events/webinars` | `b50e18a5-1b8d-451c` | `[email protected]` | `source_2` | `event_4` | 2022-06-22 10:48:00 |
160160

161161
</div>
162162

@@ -188,6 +188,9 @@ Follow the steps below to change your schema name:
188188
> info "dbt model definitions package"
189189
> To get started with your table materializations, try Segment's [open-source dbt models](https://github.com/segmentio/profiles-sync-dbt){:target="_blank"}, or materialize views with your own tools.
190190
191+
> warning ""
192+
> 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.
193+
191194
Every customer profile (or `canonical_segment_id`) will be represented in each of the following tables.
192195

193196
### `id_graph` table
@@ -196,10 +199,10 @@ This table represents the current state of your identity graph, showing only whe
196199

197200
The most recent entry for each `segment_id` from `id_graph_updates` reflects this. After the four example events, `id_graph` would show the following:
198201

199-
| `segment_id` (varchar) | `canonical_segment_id` (varchar) | `timestamp` (datetime) |
200-
| ------------ | ---------------------- | ------------------- |
201-
| `profile_1` | `profile_1` | 2022-05-02 14:01:00 |
202-
| `profile_2` | `profile_1` | 2022-06-22 10:48:00 |
202+
| `segment_id` (varchar) | `canonical_segment_id` (varchar) | `timestamp` (datetime) |
203+
| ---------------------- | -------------------------------- | ----------------------- |
204+
| `profile_1` | `profile_1` | 2022-05-02 14:01:00 |
205+
| `profile_2` | `profile_1` | 2022-06-22 10:48:00 |
203206

204207
Segment drops most diagnostic information from this table, since it’s designed for reference use. In this case, you’d learn that any data references to `profile_2` or `profile_1` now map to the same customer, `profile_1`.
205208

@@ -209,11 +212,11 @@ Use this table to view the full, current-state mapping between each external ide
209212

210213
In the case study example, you’d see the following:
211214

212-
| `canonical_segment_id` (varchar) | `external_id_type` (varchar) | `external_id_value` (varchar) | `timestamp` (datetime) |
213-
| ---------------------- | ------------------ | ---------------------- | --------------------- |
214-
| `profile_1` | `anonymous_id` | `5285bc35-05ef-4d21` | `2022-05-02 14:01:00` |
215-
| `profile_1` | `email` | `[email protected]` | `2022-05-02 14:01:47` |
216-
| `profile_1` | `anonymous_id` | `b50e18a5-1b8d-451c` | `2022-06-22 10:48:00` |
215+
| `canonical_segment_id` (varchar) | `external_id_type` (varchar) | `external_id_value` (varchar) | `timestamp` (datetime) |
216+
| -------------------------------- | ---------------------------- | ----------------------------- | ---------------------- |
217+
| `profile_1` | `anonymous_id` | `5285bc35-05ef-4d21` | `2022-05-02 14:01:00` |
218+
| `profile_1` | `email` | `[email protected]` | `2022-05-02 14:01:47` |
219+
| `profile_1` | `anonymous_id` | `b50e18a5-1b8d-451c` | `2022-06-22 10:48:00` |
217220

218221

219222
### `profile_traits` table
@@ -226,10 +229,10 @@ If Segment later merges away a profile, it populates the `segment_id` it merged
226229

227230
In the case study example, Segment only collected email. As a result, Segment would generate the following `profile_traits` table:
228231

229-
| `canonical_segment_id` (varchar) | `email` (varchar) | `merged_to` (varchar)|
230-
| ---------------------- | ---------------------- | ----------- |
231-
| `profile_1` | `[email protected]` | |
232-
| `profile_2` | | `profile_1` |
232+
| `canonical_segment_id` (varchar) | `email` (varchar) | `merged_to` (varchar) |
233+
| -------------------------------- | ---------------------- | --------------------- |
234+
| `profile_1` | `[email protected]` | |
235+
| `profile_2` | | `profile_1` |
233236

234237
> info "Merged profiles"
235238
> Profiles that Segment merges away are no longer canonical.

0 commit comments

Comments
 (0)