Skip to content

Commit dabb060

Browse files
authored
Merge pull request #475 from segmentio/repo-sync
repo sync
2 parents 0a24a2d + 70b74de commit dabb060

File tree

6 files changed

+72
-72
lines changed

6 files changed

+72
-72
lines changed

src/_data/sidenav/strat.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ sections:
3333
- path: /connections/destinations/catalog/facebook-pixel
3434
title: Facebook Pixel destination
3535
- path: /connections/destinations/catalog/actions-facebook-conversions-api
36-
title: Facebook Conversions API (Actions) destination
36+
title: Facebook Conversions API (Actions) destination
3737
- path: /connections/destinations/catalog/facebook-app-events
3838
title: Facebook App Events destination
3939
- path: /connections/destinations/catalog/facebook-offline-conversions
@@ -73,7 +73,7 @@ sections:
7373
title: Google Ads Remarketing Lists destination (Personas)
7474
- path: /connections/destinations/catalog/personas-display-video-360
7575
title: Google Display & Video 360 destination (Personas)
76-
76+
7777

7878
- slug: salesforce
7979
section_title: Salesforce Integrations
@@ -160,7 +160,7 @@ sections:
160160
- path: /connections/sources/catalog/libraries/mobile/react-native
161161
title: Analytics-React-Native mobile source
162162
- path: /connections/sources/catalog/libraries/mobile/react-native/migration
163-
title: React-Native 2.0 Migration Guide
163+
title: Upgrade to React-Native 2.0
164164
- path: /connections/sources/catalog/libraries/mobile/react-native/troubleshooting
165165
title: Troubleshooting Analytics-React-Native
166166
- path: /connections/sources/catalog/libraries/mobile/react-native/react-faqs/

src/connections/destinations/catalog/rokt-integration/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Rokt Integration Destination
2+
title: Rokt Destination
33
id: 6268a16ce311a548d8cb1a72
44
---
55

@@ -10,8 +10,8 @@ This destination is maintained by Rokt. If you have any issues, please contact t
1010
## Getting Started
1111

1212
1. From the Destinations catalog page in the Segment App, click **Add Destination**.
13-
2. Search for “Rokt” in the Destinations Catalog. Select the Rokt Integration” destination.
14-
3. Choose which source should send data to the Rokt Integration” destination.
13+
2. Search for “Rokt” in the Destinations Catalog. Select the **Rokt** destination.
14+
3. Choose which source should send data to the Rokt destination.
1515
4. Enter the API key provided to you by your Rokt Account manager. If you haven't received your login credentials, please reach out to them.
1616

1717
Once you've entered the API credentials for Rokt, the chosen source sends data through to Rokt's API.

src/connections/sources/catalog/libraries/mobile/react-native/migration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: React Native 2.0 Migration Guide
2+
title: Upgrade to React Native 2.0
33
strat: react-native
44
---
55

6-
If you're using `analytics-react-native 1.5.1` or older, follow these steps to migrate to `analytics-react-native 2.0`. You can continue to use your React Native source write key for the migration to view historical events. Additionally, with React Native 2.0, you don't need to leverage bundled SDK packages, but can use [this list of supported destinations](/docs/connections/sources/catalog/libraries/mobile/react-native#supported-destinations).
6+
If you're using `analytics-react-native 1.5.1` or older, follow these steps to upgrade to `analytics-react-native 2.0`. You can continue to use your React Native source write key for the upgrade to view historical events. Additionally, with React Native 2.0, you don't need to leverage bundled SDK packages, but can use [this list of supported destinations](/docs/connections/sources/catalog/libraries/mobile/react-native#supported-destinations).
77

8-
To migrate to React Native 2.0:
8+
To upgrade to React Native 2.0:
99

1010
1. Update the existing package:
1111
```js

src/personas/sql-traits.md

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@ title: Personas SQL Traits
55

66

77

8-
SQL Traits allow you to import user or account traits from your data warehouse back into Personas to build audiences or to enhance Segment data that you send to other Destinations.
8+
Use SQL Traits to import user or account traits from your data warehouse back into Personas to build audiences or to enhance Segment data that you send to other Destinations.
99

1010
SQL Traits are only limited by the data in your warehouse. Because anything you can write a query for can become a SQL Trait, you can add detail to your user and account profiles, resulting in more nuanced personalization.
1111

1212
This unlocks some interesting possibilities to help you meet your business goals.
1313

14-
- To improve your support team's customer satisfaction score (CSAT), you can create a SQL Trait of the most common ticket requests for a customer's industry by joining data from cloud sources like Zendesk and Salesforce. The resulting SQL Trait helps you anticipate the user's problems and accelerate potential solutions.
15-
- To determine if a user resides in a specific area, you can query address data in your warehouse and send it as a `true` or `false` Trait to a Personas audience.
16-
- To fill gaps in your customer profiles to include information before you implemented Segment, you can import historical Traits from your warehouse.
17-
- To predict a customer's lifetime value (LTV), you can generate a complex query based on demographic and customer data in your warehouse. You can then use that information in a Personas audience to send personalized offers or recommend specific products.
18-
- To inform your outreach efforts, you can use complex queries to build churn or product adoption models.
14+
- To improve your support team's customer satisfaction score (CSAT), create a SQL Trait of the most common ticket requests for a customer's industry by joining data from cloud sources like Zendesk and Salesforce. The resulting SQL Trait helps you anticipate the user's problems and accelerate potential solutions.
15+
- To determine if a user resides in a specific area, query address data in your warehouse and send it as a `true` or `false` Trait to a Personas audience.
16+
- To fill gaps in your customer profiles to include information before you implemented Segment, import historical Traits from your warehouse.
17+
- To predict a customer's lifetime value (LTV), generate a complex query based on demographic and customer data in your warehouse. You can then use that information in a Personas audience to send personalized offers or recommend specific products.
18+
- To inform your outreach efforts, use complex queries to build churn or product adoption models.
1919

2020
Check out Segment's [SQL Traits blog post](https://segment.com/blog/sql-traits){:target="_blank"} for more customer case studies.
2121

2222

2323
### Example: Cloud Sources Sync
2424

25-
SQL Traits allow you to import data from [object cloud sources](/docs/connections/sources/#object-cloud-sources) like Salesforce, Stripe, Zendesk, Hubspot, Marketo, Intercom, and more. For example, you can bring in Salesforce Leads or Accounts, Zendesk ticket behavior, or Stripe LTV calculations.
25+
SQL Traits allow you to import data from [object cloud sources](/docs/connections/sources/#object-cloud-sources) like Salesforce, Stripe, Zendesk, Hubspot, Marketo, Intercom, and more. For example, bring in Salesforce Leads or Accounts, Zendesk ticket behavior, or Stripe LTV calculations.
2626

2727
The two examples below show SQL queries you can use to retrieve cloud-source information from your warehouse.
2828

@@ -52,7 +52,7 @@ This query computes whether a user has an open ticket:
5252
```
5353

5454

55-
## Setting up SQL traits
55+
## Setting up SQL Traits
5656

5757
To use SQL Traits, you need the following:
5858

@@ -65,9 +65,9 @@ To use SQL Traits, you need the following:
6565
Segment supports Redshift, Postgres, Snowflake, Azure SQL, and BigQuery as data warehouse sources for SQL Traits. Note that the BigQuery setup process _requires_ a service user.
6666

6767
> info "Safeguard your data"
68-
> For any warehouse, we recommend that you create a separate read-only user for building SQL Traits.
68+
> For any warehouse, Segment recommends that you create a separate read-only user for building SQL Traits.
6969
70-
#### Redshift, Postgres, Snowflake, Azure SQL Setup
70+
#### Redshift, Postgres, Snowflake, Azure SQL setup
7171

7272
If you don't already have a data warehouse, use one of the following guides to get started:
7373
- [Redshift Getting Started](/docs/connections/storage/catalog/redshift/#getting-started)
@@ -76,45 +76,45 @@ If you don't already have a data warehouse, use one of the following guides to g
7676
- [Azure SQL Getting Started](/docs/connections/storage/catalog/azuresqldw/#getting-started)
7777

7878

79-
#### BigQuery Setup
79+
#### BigQuery setup
8080

8181
To connect BigQuery to Segment SQL Traits, follow these instructions to create a service account for Segment to use:
8282

8383
1. Navigate to the Google Developers Console.
8484

8585
2. Click the drop down to the left of the search bar and select the project that you want to connect.
8686

87-
![](images/bigquery_setup1.png)
87+
![Select a project to connect from the drop down menu](images/bigquery_setup1.png)
8888

8989
> **Note**: If you don't see the project you want in the menu, click the account switcher in the upper right corner, and verify that you're logged in to the right Google account for the project.
9090
9191
3. Click the menu in the upper left and select **IAM & Admin**, then **Service accounts**.
9292

93-
5. Click **Create service account**.
93+
5. Click **Create Service Account**.
9494

95-
![](images/bigquery_setup2.png)
95+
![Click Create Service Account on the Service accounts screen](images/bigquery_setup2.png)
9696

9797
6. Give the service account a name like `segment-sqltraits`.
9898

9999
7. Under **Project Role**, add _only_ the `BigQuery Data Viewer` and `BigQuery Job User` roles.
100100

101-
![](images/bigquery_setup3a.png)
101+
![Select a project role](images/bigquery_setup3a.png)
102102

103-
![](images/bigquery_setup3b.png)
103+
![Add the BigQuery Data Viewer and BigQuery Job User roles](images/bigquery_setup3b.png)
104104

105105
> IMPORTANT: Do not add any other roles to the service account. Adding other roles can prevent Segment from connecting to the account.
106106
107107
6. Click **Create Key**.
108108

109-
![](images/bigquery_setup4.png)
109+
![Click Create Key](images/bigquery_setup4.png)
110110

111111
7. Select `JSON` and click **Create**.
112112

113-
![](images/bigquery_setup5.png)
113+
![Select Json and click Create](images/bigquery_setup5.png)
114114

115115
A file with the key is saved to your computer. Save this; you'll need it to set up the warehouse source in the next step.
116116

117-
![](images/bigquery_setup6.png)
117+
![A file key saved to your computer](images/bigquery_setup6.png)
118118

119119
You're now ready to create a new BigQuery warehouse source, upload the JSON key you just downloaded, and complete the BigQuery setup.
120120

@@ -124,35 +124,35 @@ Once your warehouse is up and running, follow these steps:
124124

125125
1. Navigate to the Personas settings (Personas > Settings tab > Warehouse Sources), and click **New Warehouse Source**.
126126

127-
![](images/warehouse_source_setup1.png)
127+
![Click New Warehouse Source button on the Warehouse Sources screen](images/warehouse_source_setup1.png)
128128

129129
2. Select the type of warehouse you're connecting.
130130

131-
![](images/warehouse_source_setup2A.png)
131+
![Select a warehouse to connect](images/warehouse_source_setup2A.png)
132132

133133
3. In the next screen, provide the connection credentials, and click **Save**.
134134

135-
![](images/warehouse_source_setup3.png)
135+
![The Configure warehouse source screen](images/warehouse_source_setup3.png)
136136

137137
If you're connecting a BigQuery warehouse, use the JSON key file that you downloaded as the last step.
138138

139139
## Creating a SQL Trait
140140

141141
Before you create a SQL Trait, you must first preview it to validate your query. If you're new to SQL, try out one of the templates Segment offers.
142142

143-
### Preview the SQL trait
143+
### Preview the SQL Trait
144144

145145
From the Personas screen, go to the Computed Traits tab, and click **New Computed Trait**. Next, choose SQL, and click **Configure**. Select the data warehouse that contains the data you want to query.
146146

147-
If you are sending data from [object cloud sources](/docs/connections/sources/#cloud-apps) to your warehouse, the SQL Traits UI has some pre-made templates you can try out.
147+
If you're sending data from [object cloud sources](/docs/connections/sources/#cloud-apps) to your warehouse, the SQL Traits UI has some pre-made templates you can try out.
148148

149149
![Example template: preview all users with an open Zendesk ticket](images/sql_traits_preview1.png)
150150

151151
<!-- need to actually give a sample here -->
152152

153153
When you're building your query, keep the following requirements in mind for the data your query returns.
154154

155-
- The query must return a column with a `user_id`, `email`, or `anonymous_id` (or `group_id` for account traits, if you have Personas for B2B enabled). The query _cannot_ include values for both `user_id` and `anonymous_id`.
155+
- The query must return a column with a `user_id`, `email`, or `anonymous_id` (or `group_id` for account traits, if you have Personas for B2B enabled). The query _cannot_ include values for both `user_id` and `anonymous_id`.
156156
- The query must return at least one trait in addition to `user_id`/`anonymous_id`/`email`/`group_id`, and no more than 25 total columns.
157157
- The query must not return any `user_id`s, `anonymous_id`s, or `group_id`s with a `null` value.
158158
- The query must not return any records with duplicate `user_id`s.
@@ -162,7 +162,7 @@ When you're building your query, keep the following requirements in mind for the
162162
A successful preview returns a sample of users and their traits.
163163
If Segment recognizes a user already in Personas, it displays a green checkmark on their profile. Clicking the checkmark displays the user's profile. If a user has a question mark, Segment hasn't detected this `user_id` in Personas before.
164164

165-
![Click on a user to check out their profile. If a user has a question mark, we haven't seen this user_id in Personas before](images/sql_traits_preview2.png)
165+
![Click on a user to check out their profile. If a user has a question mark, Segment hasn't seen this user_id in Personas before](images/sql_traits_preview2.png)
166166

167167

168168
### Configure SQL Trait options
@@ -177,13 +177,13 @@ If you're building Personas audiences from this data, select "Compute without en
177177

178178
Click **Create Computed Trait** to save the Trait.
179179

180-
![](images/sql_traits_connect3.png)
180+
![The Review and Create screen for a new computed trait](images/sql_traits_connect3.png)
181181
Check **Compute without destinations** if you only want to send to Personas.
182182

183183
When you create a SQL Trait, Segment runs the query on the warehouse twice a day by default. You can customize the time at which Segment queries the data warehouse and the frequency, up to once per hour, from the SQL Trait's settings.
184184
(If you're interested in a more frequent schedule, [contact Segment Support](https://segment.com/help/contact/){:target="_blank"}.)
185185

186-
For each row (user or account) in the query result, Personas sends an identify or group call with all the columns that were returned as Traits. For example, if you write a query that returns `user_id,has_open_ticket, num_tickets_90_days, avg_zendesk_rating_90days` we send an identify call with the following payload:
186+
For each row (user or account) in the query result, Personas sends an identify or group call with all the columns that were returned as Traits. For example, if you write a query that returns `user_id, has_open_ticket, num_tickets_90_days, avg_zendesk_rating_90days` Segment sends an identify call with the following payload:
187187

188188
```sql
189189
{
@@ -221,7 +221,7 @@ No. Personas only sends an identify/group call if the values in a row have chang
221221

222222
### I have a large (1M+) query of users to import, should I be worried?
223223

224-
If you're importing a large list of users and traits, you'll need to consider your API call usage as well as volume among the partners receiving your data. These vary depending on our partners, so [reach out to us](https://segment.com/help/contact/) for more information.
224+
If you're importing a large list of users and traits, you'll need to consider your API call usage as well as volume among the partners receiving your data. These vary depending on our partners, so [reach out to Segment](https://segment.com/help/contact/){:target="_blank"} for more information.
225225

226226
### Is there a limit on the size of a SQL Trait's payload?
227227

@@ -232,9 +232,9 @@ Yes, Segment limits request sizes to a maximum of 16kb. Records larger than this
232232
### I'm getting a permissions error.
233233

234234
You might encounter a `permission denied for schema` error, like the following:
235-
![](images/troubleshoot1.png)
235+
![An example of a permission denied for schema error](images/troubleshoot1.png)
236236

237-
Segment usually displays this error because you're querying a schema and table that the current user cannot access. To check the table privileges for a specific grantee (user), go to [your warehouse source credentials in Personas](https://app.segment.com/goto-my-workspace/personas/settings/warehouse-sources/) to retrieve the user name.
237+
Segment usually displays this error because you're querying a schema and table that the current user cannot access. To check the table privileges for a specific grantee (user), go to [your warehouse source credentials in Personas](https://app.segment.com/goto-my-workspace/personas/settings/warehouse-sources/){:target="_blank"} to retrieve the user name.
238238

239239
To grant access to a table, an admin usually needs to grant access to both a schema and table through the following similar commands:
240240

@@ -249,13 +249,13 @@ Learn more about granting permissions using the following links:
249249

250250
### I'm seeing a maximum columns error.
251251

252-
![](images/troubleshoot2.png)
252+
![An example of a maximum columns error](images/troubleshoot2.png)
253253

254-
Segment supports returning only 25 columns. [Contact us](https://segment.com/help/contact/) with a description of your use case if you need access to more than 25 columns.
254+
Segment supports returning only 25 columns. [Contact Segment](https://segment.com/help/contact/){:target="_blank"} with a description of your use case if you need access to more than 25 columns.
255255

256256
### I'm seeing a duplicate `user_id` error.
257257

258-
![](images/troubleshoot3.png)
258+
![An example of a duplicate user_id error](images/troubleshoot3.png)
259259

260260
Each query row must correspond to a unique user. Segment displays this error if it detects multiple rows with the same `user_id`. Use a `distinct` or `group by` statement to ensure that each row has a unique user_id.
261261

@@ -265,10 +265,10 @@ Question marks in previews indicate one of two things:
265265

266266
**1. Segment doesn't recognize this `user_id`/`group_id` in Personas.**
267267

268-
In this case, for [sources connected to Personas](https://app.segment.com/goto-my-workspace/personas/settings/sources), Segment has not received any event (identify, track, page etc) with this `user_id`. This could still be a legitimate `user_id` for a number of reasons, but before syncing, make sure you rule out option two (below), as sending a different identifier as the `user_id` can corrupt your identity graph.
268+
In this case, for [sources connected to Personas](https://app.segment.com/goto-my-workspace/personas/settings/sources){:target="_blank"}, Segment hasn't received any event (for example, identify, track, or page) with this `user_id`. This could still be a legitimate `user_id` for a number of reasons, but before syncing, make sure you rule out option two (below), as sending a different identifier as the `user_id` can corrupt your identity graph.
269269

270270
**2. You have the wrong `user_id` column.**
271271

272-
You might be returning a value for `user_id` that is inconsistent with how you track `user_id` elsewhere. Some customers want to return `email` as the `user_id`, or a partner's tool ID as the `user_id`. These conflict with Segment best practices and corrupt the identity graph if you then track `user_id` differently elsewhere in your apps.
272+
You might be returning a value for `user_id` that's inconsistent with how you track `user_id` elsewhere. Some customers want to return `email` as the `user_id`, or a partner's tool ID as the `user_id`. These conflict with Segment best practices and corrupt the identity graph if you then track `user_id` differently elsewhere in your apps.
273273

274-
If you see only question marks in the preview, and have already tracked data historically with Segment, then you likely have the wrong column. If your cloud source doesn't have the database `user_id`, we recommend using a `JOIN` clause with an internal users table before sending the results back to Segment.
274+
If you see only question marks in the preview, and have already tracked data historically with Segment, then you likely have the wrong column. If your cloud source doesn't have the database `user_id`, Segment recommends using a `JOIN` clause with an internal users table before sending the results back to Segment.

0 commit comments

Comments
 (0)