Skip to content

Commit 3424d02

Browse files
author
markzegarelli
authored
Merge pull request #2247 from segmentio/friday-fixes
Batch of small fixes
2 parents 7a4125e + a6292c0 commit 3424d02

File tree

6 files changed

+71
-9
lines changed

6 files changed

+71
-9
lines changed

src/connections/destinations/catalog/braze/index.md

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ Segment sends Page calls to Braze as custom events if you have enabled either **
137137
> info "Tip"
138138
> Add Segment's open-source [Middleware](https://github.com/segmentio/segment-braze-mobile-middleware) tool to optimize your integration. This tool limits [Data Point](https://www.braze.com/docs/user_guide/onboarding_with_braze/data_points/) use by debouncing duplicate identify() calls from Segment. For more information, see the project's [README](https://github.com/segmentio/segment-braze-mobile-middleware/blob/master/README.md#how-does-this-work).
139139

140-
141-
142140
If you're not familiar with the Segment Specs, take a look to understand what the [Identify method](/docs/connections/spec/identify/) does. An example call would look like:
143141
144142
```js
@@ -151,10 +149,42 @@ analytics.identify('ze8rt1u89', {
151149
152150
When you Identify a user, Segment passes that user's information to Braze with `userId` as Braze's External User ID.
153151
154-
If you are using a device-mode connection, Braze's SDK also automatically assigns a `braze_id` to every user. This allows Braze to capture anonymous activity from the device by matching on `braze_id` instead of `userId`. This applies to _device-mode connections_.
152+
If you're using a device-mode connection, Braze's SDK assigns a `device_id` and a backend identifier, `braze_id`, to every user. This allows Braze to capture anonymous activity from the device by matching on those identifiers instead of `userId`. This applies to _device-mode connections_.
155153
156154
To send anonymous user data in cloud-mode, you must manually include the user's `braze_id` in all your Segment API calls in the `integrations.Braze.braze_id` or `context.integrations.Braze.braze_id` object.
157155

156+
### Capture the braze_id of anonymous users
157+
158+
Pass one of the many identifiers that may exist on an anonymous user profile to the [Braze's User by Identifier REST endpoint](https://www.braze.com/docs/api/endpoints/export/user_data/post_users_identifier/){:target='_blank'} to capture and export the `braze_id`. These identifiers include:
159+
- email address
160+
- phone number
161+
- device_id
162+
163+
Choose an identifier that is available on the user profile at that point in the user lifecycle.
164+
165+
For example, if you pass device_id to the User by Identifier endpoint:
166+
167+
```js
168+
{
169+
"device_id": “{{device_id}}",
170+
"fields_to_export": ["braze_id"]
171+
}
172+
```
173+
174+
The endpoint returns:
175+
176+
```js
177+
{
178+
"users": [
179+
{
180+
"braze_id": “{{braze_id}}"
181+
}
182+
],
183+
"message": "success"
184+
}
185+
```
186+
187+
158188
> info "Tip"
159189
> Braze is complex. If you decide to use the `braze_id`, consider [contacting Segment Success Engineering](https://segment.com/help/contact/) or a Solutions Architect to verify your Braze implementation.
160190

src/connections/destinations/catalog/facebook-app-events/index.md

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,36 @@ You will have to be sure that the [IDFA](/docs/connections/sources/catalog/libra
249249

250250
Similarly, on Android, you'll need to include the Play Services Ads library as [mentioned here](/docs/connections/sources/catalog/libraries/mobile/android/#how-do-you-handle-unique-identifiers-) in order for the `advertisingId` to populate.
251251

252-
Once you have added these, you will start to see the `context.device.advertisingId` populate and the `context.device.adTrackingEnabled` flag set to `true` unless the user has ad tracking limited or is using a mobile ad blocker.
253-
254-
_Note_: While the network is deprecated, the relevant iOS [framework](https://developer.apple.com/reference/iad) is not.
255-
252+
Once you've added these, you will start to see the `context.device.advertisingId` populate and the `context.device.adTrackingEnabled` flag set to `true` unless the user has ad tracking limited or is using a mobile ad blocker.
253+
254+
> note ""
255+
> While the network is deprecated, the relevant iOS [framework](https://developer.apple.com/reference/iad) is not.
256+
257+
Facebook requires that payloads include the following:
258+
- `context.device.id`
259+
- `context.device.type`
260+
- `context.os.version`
261+
262+
For example:
263+
264+
```json
265+
{
266+
"anonymousId": "507f191e810c19729de860ea",
267+
"event": "Event Name",
268+
​ "context": {
269+
"device": {
270+
"id": "B5372DB0-C21E-11E4-8DFC-AA07A5B093DB",
271+
"type": "ios"
272+
},
273+
"os": {
274+
"version": "8.1.3"
275+
}
276+
},
277+
"messageId": "bbac-11e4-8dfc-aa07a53436b09b45567i8245237824",
278+
"type": "track",
279+
"userId": "97980cfea0067"
280+
}
281+
```
256282

257283
### Missing custom events
258284

src/connections/destinations/catalog/google-analytics/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: Google Universal Analytics Destination
33
strat: google
44
hide-dossier: true
5+
redirect_from:
6+
- '/connections/destinations/catalog/google-universal-analytics'
57
---
68

79
> warning "Migrate mobile implementations to Firebase"

src/connections/destinations/catalog/index-all.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Destination list
3+
hide-dossier: true
34
---
45

56

src/connections/sources/catalog/libraries/server/java/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Want to stay updated on releases? Subscribe to the [release feed](https://github
1616

1717
## Getting Started
1818

19-
[![Javadocs](https://javadoc-badge.appspot.com/com.segment.analytics.java/analytics.svg?label=javadoc)](https://javadoc-badge.appspot.com/com.segment.analytics.java/analytics)
19+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.segment.analytics.java/analytics/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.segment.analytics.java/analytics)
20+
2021

2122
### Install the library
2223

src/privacy/faq.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ In addition to your Raw Data destinations (Amazon S3 and Data Warehouses), we ca
5555
- Appcues
5656
- Vero
5757
- Google Analytics
58+
- Customer.io
59+
- Optimizely Full Stack
5860

59-
Segment cannot guarantee that data is deleted from your Destinations. When you issue a user deletion request, Segment forwards the request to supported streaming Destinations. You must still contact these Destinations to confirm that they have executed the request.
61+
Segment cannot guarantee that data is deleted from your Destinations. When you issue a user deletion request, Segment forwards the request to supported streaming Destinations. You must still contact these Destinations to confirm that they've executed the request.
6062

6163
### Which destinations require additional destination setting configuration?
6264

0 commit comments

Comments
 (0)