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/connections/destinations/catalog/facebook-pixel-server-side/index.md
+12-13Lines changed: 12 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,8 +76,7 @@ This approach provides a redundancy that ensures maximum signal reliability. Eve
76
76
77
77
#### Match rate considerations
78
78
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.
81
80
82
81
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.
83
82
@@ -91,9 +90,9 @@ Use this approach if you want to separate tracking events completed on a user's
91
90
92
91
#### Match rate considerations
93
92
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.
95
94
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.
97
96
98
97
#### Deduplication considerations
99
98
@@ -124,7 +123,7 @@ For more information about Track calls, see the [Track method](/docs/connections
124
123
125
124
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.
126
125
127
-
| Server Event Parameter | Requirement | Implementation |
126
+
| Server Event Parameter | Requirement | Implementation p|
|`action_source`| Always required | It is set automatically but it can be set manually. |
130
129
|`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
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.
269
268
270
269
### Alternative External IDs
271
270
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`.
273
272
274
-
### Alternative "Value" Properties
273
+
### Alternative Value Properties
275
274
276
275
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
280
279
`price`.
281
280
282
281
## Limited Data Use
@@ -313,7 +312,7 @@ minutes. You can confirm that Facebook received them:
313
312
314
313
1. Go to the Events Manager.
315
314
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`.
317
316
318
317
> info ""
319
318
> **Note**: It might take a few minutes before events appear in the Events Manager.
0 commit comments