Skip to content

Commit f8ec2fa

Browse files
authored
Merge pull request #56 from segmentio/repo-sync
repo sync
2 parents c56f422 + e9f4ccd commit f8ec2fa

File tree

7 files changed

+45
-39
lines changed

7 files changed

+45
-39
lines changed

src/_data/catalog/destination_categories.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PUBLIC API. DO NOT EDIT
2-
# destination categories last updated 2021-10-08
2+
# destination categories last updated 2021-10-11
33
items:
44
- display_name: A/B Testing
55
slug: a-b-testing

src/_data/catalog/destinations.yml

+16-13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PUBLIC API. DO NOT EDIT
2-
# destination data last updated 2021-10-08
2+
# destination data last updated 2021-10-11
33
items:
44
- display_name: 2mee
55
name: 2mee
@@ -7812,7 +7812,7 @@ items:
78127812
type: string
78137813
defaultValue: ''
78147814
description: >-
7815-
Your Pixel ID, from the snippet created on the [Facebook Pixel creation
7815+
Your Pixel ID from the snippet created on the [Facebook Pixel creation
78167816
page](https://www.facebook.com/ads/manager/pixel/facebook_pixel/).
78177817
required: true
78187818
label: Pixel ID
@@ -8014,20 +8014,22 @@ items:
80148014
type: boolean
80158015
defaultValue: false
80168016
description: >-
8017-
If true, we will initialize Facebook Pixel with any user traits that's
8018-
been cached in the Segment cookies from your previous `.identify()` calls.
8017+
If enabled, we will initialize Facebook Pixel with any user traits that
8018+
have been cached in the Segment cookies from your previous `.identify()`
8019+
calls.
80198020
required: false
80208021
label: Enable Advanced Matching
80218022
- name: keyForExternalId
80228023
type: string
80238024
defaultValue: ''
80248025
description: >-
8025-
Please indicated a user trait key which you would like Segment to use to
8026+
Please indicate a user trait key which you would like Segment to use to
80268027
send an `external_id` to Facebook Pixel using advanced matching. Segment
80278028
will use the value of this trait to map it to Facebook Pixel's
8028-
`external_id`.
8029+
`external_id`. Note: **Enable Advanced Matching** must be enabled to use
8030+
this setting.
80298031
required: false
8030-
label: 'Client-Side Only: Advanced Match Trait Key for External ID'
8032+
label: Advanced Match Trait Key for External ID
80318033
- name: legacyEvents
80328034
type: text-map
80338035
defaultValue: {}
@@ -8056,7 +8058,7 @@ items:
80568058
type: string
80578059
defaultValue: ''
80588060
description: >-
8059-
Your Pixel ID, from the snippet created on the [Facebook Pixel creation
8061+
Your Pixel ID from the snippet created on the [Facebook Pixel creation
80608062
page](https://www.facebook.com/ads/manager/pixel/facebook_pixel/).
80618063
required: true
80628064
label: Pixel ID
@@ -8086,10 +8088,11 @@ items:
80868088
type: boolean
80878089
defaultValue: false
80888090
description: >-
8089-
Enable this setting if you want to send, `userId` (or `anonymousId` if not
8090-
present) as external Id to Facebook.
8091+
Enable this setting if you want to send `userId` (or `anonymousId` if not
8092+
present) as `external_id` to Facebook when using advanced matching. Note:
8093+
**Enable Advanced Matching** must be enabled to use this setting.
80918094
required: false
8092-
label: Use UserId or Anonymous Id as External Id
8095+
label: Use User ID or Anonymous ID as External ID
80938096
- name: valueIdentifier
80948097
type: select
80958098
defaultValue: value
@@ -14968,10 +14971,10 @@ items:
1496814971
- Personalization
1496914972
logo:
1497014973
url: >-
14971-
https://public-segment-devcenter-production.s3.amazonaws.com/de56ef24-11ea-4cc6-8df2-19db90ff5c1c.svg
14974+
https://public-segment-devcenter-production.s3.amazonaws.com/8bef9c9a-f29b-4019-8a93-687a77d538a9.svg
1497214975
mark:
1497314976
url: >-
14974-
https://public-segment-devcenter-production.s3.amazonaws.com/6aeb55d8-ffc0-468b-a5f7-21f8b2aa18e0.svg
14977+
https://public-segment-devcenter-production.s3.amazonaws.com/b77aa858-b09d-444a-94cc-39d6c7115283.svg
1497514978
methods:
1497614979
track: false
1497714980
identify: true

src/_data/catalog/source_categories.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PUBLIC API. DO NOT EDIT
2-
# source cateogries last updated 2021-10-08
2+
# source cateogries last updated 2021-10-11
33
items:
44
- display_name: A/B Testing
55
slug: a-b-testing

src/_data/catalog/sources.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PUBLIC API. DO NOT EDIT
2-
# sources last updated 2021-10-08
2+
# sources last updated 2021-10-11
33
items:
44
- display_name: .NET
55
slug: net

src/_data/catalog/warehouse_papi.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PUBLIC API. DO NOT EDIT
2-
# warehouse data last updated 2021-10-08
2+
# warehouse data last updated 2021-10-11
33
items:
44
- display_name: Azure SQL Data Warehouse
55
slug: azuresqldw

src/connections/destinations/catalog/facebook-pixel-server-side/index.md

+12-13
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ This approach provides a redundancy that ensures maximum signal reliability. Eve
7676

7777
#### Match rate considerations
7878

79-
For this option to work best, you must pass the same `external_id` from both the browser and the server sources.
80-
To do this, go to your Facebook Pixel destination settings in Segment, and enable **Use UserId or Anonymous Id as External Id**. By default the Facebook Conversions API destination uses the `userId` (or `anonymousId` if not present) to set the External Id, so when you set up Facebook Pixel to use the same settings, Facebook can then match the users.
79+
For this option to work best, pass the same `external_id` from the browser and the server. To achieve this, go to the Facebook Pixel destination settings in Segment and enable the **Enable Advanced Matching** and **Use User ID or Anonymous ID as External ID** settings. By default, the Facebook Conversions API destination uses the `userId` (or `anonymousId` if not present) to set the `external_id`, so when you configure Facebook Pixel to use the same settings, Facebook matches users by those IDs.
8180

8281
You can also increase the match rate for events from a server source by sending [user traits in the context object of the track events](#default-mappings-to-facebook-properties). You can also collect other fields from the browser, such as `userAgent`, `ip` address, and [Facebook's parameters (fbp, fbc)](https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/fbp-and-fbc) and pass them to the server, and manually add them to the events.
8382

@@ -91,9 +90,9 @@ Use this approach if you want to separate tracking events completed on a user's
9190

9291
#### Match rate considerations
9392

94-
For this option to work best, the same `external_id` needs to be passed from the browser and from the server. To easily achieve this go to your Segment destination settings for Facebook Pixel and toggle on the setting called **Use UserId or Anonymous Id as External Id**. The Facebook Conversions API destination uses the userId (or anonymousId if not present) to set the External Id by default. Therefore enabling this on Facebook Pixel will allow Facebook to match the users.
93+
For this option to work best, the same `external_id` needs to be passed from the browser and the server. To achieve this, go to your Facebook Pixel destination settings in Segment and enable the **Enable Advanced Matching** and **Use User ID or Anonymous ID as External ID** settings. By default the Facebook Conversions API destination uses the `userId` (or `anonymousId` if not present) to set the `external_id`, so when you set up Facebook Pixel to use the same settings, Facebook can then match the users.
9594

96-
You can also increase the match rate for events from a server source by sending [user traits in the context object of the track events](#default-mappings-to-facebook-properties). You can also collect other fields from the browser, such as `userAgent`, `ip` address, and [Facebook's parameters (fbp, fbc)](https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/fbp-and-fbc) and pass them to the server, and manually add them to the events.
95+
You can also send [user traits in the context object of the track events](#default-mappings-to-facebook-properties)to increase the match rate for events from a server source. Collect other fields from the browser, like `userAgent`, `ip` address, and [Facebook's parameters (fbp, fbc)](https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/fbp-and-fbc){:target="_blank"}, pass them to the server, and manually add them to the events.
9796

9897
#### Deduplication considerations
9998

@@ -124,7 +123,7 @@ For more information about Track calls, see the [Track method](/docs/connections
124123

125124
Beginning February 15th 2021, Facebook requires the `action_source` server event parameter for all events sent to the Conversions API. This parameter is used to specify where the conversions occurred. If `action_source` is set to 'website' then the `client_user_agent` and the `event_source_url` parameters are also required. Events sent to the Conversions API after February 15th that do not meet the requirements may not be available for optimization, targeting, or measurement.
126125

127-
| Server Event Parameter | Requirement | Implementation |
126+
| Server Event Parameter | Requirement | Implementation p |
128127
| ---------------------- | ------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
129128
| `action_source` | Always required | It is set automatically but it can be set manually. |
130129
| `client_user_agent` | Only required if `action_source` = "website" | It must be set manually if using a server library. It is set automatically if using the Segment web library. |
@@ -139,7 +138,7 @@ You can set `action_source` manually by passing it as a property of a Track even
139138

140139
| Action Source Values | Description |
141140
| -------------------- | --------------------------------------------------------------------------------------------------------- |
142-
| `chat` | Conversion was made via a messaging app, SMS, or online messaging feature. |
141+
| `chat` | Conversion was made through a messaging app, SMS, or online messaging feature. |
143142
| `email` | Conversion happened over email. |
144143
| `other` | Conversion happened in a way that is not listed. |
145144
| `phone_call` | Conversion was made over the phone. |
@@ -265,18 +264,18 @@ analytics.track("Clicked Email", {
265264
```
266265

267266
### Custom Mappings to Facebook Properties
268-
Any properties you send that aren't listed above are sent in the 'Custom Data' part of the Segment payload to Facebook.
267+
Any properties you send that aren't listed above are sent in the `custom_data` part of the Segment payload to Facebook.
269268

270269
### Alternative External IDs
271270

272-
By default, Segment sends the `userID` as `externalID`, and if `userID` is absent falls back to `anonymousID`. To use a different field in your payload as the External ID, use the "Alternative External ID Field". An example value for this setting would be `properties.externalId`.
271+
By default, Segment sends the `userId` as `external_id`, and if `userId` is absent falls back to `anonymousId`. To use a different field in your payload as the `external_id`, use the **Alternative External ID Field** setting. An example value for this setting would be `properties.externalId`.
273272

274-
### Alternative "Value" Properties
273+
### Alternative Value Properties
275274

276275
For most events Segment sends revenue for the Pixel value field, but for
277-
the pre-purchase events "Product Viewed" and "Product Added", Segment
278-
uses the value of the "Value Field Identifier" setting to determine which
279-
property to use for the "value" field. This field defaults to
276+
the pre-purchase events `Product Viewed` and `Product Added`, Segment
277+
uses the value of the **Value Field Identifier** setting to determine which
278+
property to use for the `value` field. This field defaults to
280279
`price`.
281280

282281
## Limited Data Use
@@ -313,7 +312,7 @@ minutes. You can confirm that Facebook received them:
313312

314313
1. Go to the Events Manager.
315314
2. Click on the corresponding pixel.
316-
3. In the **Overview** tab, look for events where the "Connection Mode" is `Server`.
315+
3. In the **Overview** tab, look for events where the "Connection Method" is `Server`.
317316

318317
> info ""
319318
> **Note**: It might take a few minutes before events appear in the Events Manager.

src/connections/destinations/catalog/facebook-pixel/index.md

+13-9
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ strat: facebook
66

77
[Facebook Pixel](https://developers.facebook.com/docs/facebook-pixel) lets you measure and optimize the performance of your Facebook Ads. It makes conversion tracking, optimization and remarketing easier than ever. The Facebook Pixel Destination is open-source. You can browse the code [on GitHub](https://github.com/segment-integrations/analytics.js-integration-facebook-pixel).
88

9-
_**NOTE:** Facebook has deprecated their modular "Ads For Websites" suite, which previously comprised Facebook Custom Audiences and Facebook Conversion Tracking. We've consolidated those two destinations into this new and improved "Facebook Pixel" destination._
9+
> warning ""
10+
> Facebook has deprecated the modular "Ads For Websites" suite, which previously comprised Facebook Custom Audiences and Facebook Conversion Tracking. We've consolidated those two destinations into this new and improved "Facebook Pixel" destination.
11+
1012

11-
This document was last updated on 31st October, 2018. If you notice any gaps, out-dated information or simply want to leave some feedback to help us improve our documentation, [let us know](https://segment.com/help/contact)!
1213

1314
**Use Cases**
1415

@@ -39,7 +40,7 @@ Segment automatically initializes Facebook's pixel with your `pixelId` upon load
3940

4041
## Page
4142

42-
If you're not familiar with the Segment Specs, take a look to understand what the [Page method](https://segment.com/docs/connections/spec/page/) does. An example call would look like:
43+
If you're not familiar with the Segment Specs, take a look to understand what the [Page method](/docs/connections/spec/page/) does. An example call would look like:
4344

4445
```javascript
4546
analytics.page();
@@ -49,7 +50,7 @@ We've mapped `analytics.page()` to [Facebook's `fbq('track', "PageView")`](https
4950

5051
## Identify
5152

52-
If you're not familiar with the Segment Specs, take a look to understand what the [Identify method](https://segment.com/docs/connections/spec/identify/) does. An example call would look like:
53+
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:
5354

5455
```javascript
5556
analytics.identify('ze8rt1u89', {
@@ -69,7 +70,7 @@ When you make an Identify call with Segment, it will update Facebook Pixel the n
6970

7071
## Track
7172

72-
If you're not familiar with the Segment Specs, take a look to understand what the [Track method](https://segment.com/docs/connections/spec/track/) does. An example call would look like:
73+
If you're not familiar with the Segment Specs, take a look to understand what the [Track method](/docs/connections/spec/track/) does. An example call would look like:
7374

7475
```javascript
7576
analytics.track("My Custom Event", {
@@ -159,9 +160,12 @@ Facebook accepts the following properties:
159160
- State
160161
- Zip code
161162

162-
If you follow Segment's [spec](/docs/connections/spec/identify/#traits), these would automatically be sent correctly.
163+
If you follow Segment's [spec](/docs/connections/spec/identify/#traits), these properties send in the correct format.
164+
165+
When you use Advanced Matching, Facebook also accepts an External ID. This can be any unique ID from the advertiser, like loyalty membership IDs, user IDs, and external cookie IDs. To send an `external_id` to Facebook you can either:
163166

164-
Facebook also accepts an External ID. This can be any unique ID from the advertiser, such as loyalty membership IDs, user IDs, and external cookie IDs. In order to send an `external_id` to Facebook you can indicate which user trait you would like Segment to map to `external_id` using the **Client-Side Only: Advanced Match Trait Key for External ID** setting.
167+
- Send the Segment `userId` or `anonymousId` as `external_id` using the **Use User ID or Anonymous ID as External ID** setting
168+
- Indicate which user trait you would like Segment to map to `external_id` using the **Advanced Match Trait Key for External ID** setting
165169

166170
## Limited Data Use
167171

@@ -174,7 +178,7 @@ Facebook also accepts an External ID. This can be any unique ID from the adverti
174178

175179
Facebook uses the `context.ip` to determine the geolocation of the event.
176180

177-
You can manually change the Data Processing parameters by adding settings to the `integrations` object. For Facebook Pixel, you must store these settings in the [Load object](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/#load-options) so that Segment can set them *before* it calls `init`. The example below shows how you might set custom Data Processing parameters in Analytics.js.
181+
You can manually change the Data Processing parameters by adding settings to the `integrations` object. For Facebook Pixel, you must store these settings in the [Load object](/docs/connections/sources/catalog/libraries/website/javascript/#load-options) so that Segment can set them *before* it calls `init`. The example below shows how you might set custom Data Processing parameters in Analytics.js.
178182

179183
```javascript
180184
analytics.load("replace_with_your_write_key", {
@@ -213,7 +217,7 @@ Facebook enforces strict guidelines around sending Personally Identifiable Infor
213217

214218
Any `track` events with properties containing those keys will be sent to Facebook with those properties omitted.
215219

216-
If you have events that use any of those keys for non-PII properties, you can manually whitelist them using the **Allowlist PII Properties** setting. You may also add to this list and/or optionally hash blocklisted properties with the **Blocklist PII Properties** setting.
220+
If you have events that use any of those keys for non-PII properties, you can manually allowlist them using the **Allowlist PII Properties** setting. You may also add to this list and/or optionally hash blocklisted properties with the **Blocklist PII Properties** setting.
217221

218222
### Inconsistent or Missing Conversions
219223

0 commit comments

Comments
 (0)