Skip to content

Commit c4eeb31

Browse files
Merge pull request #4734 from segmentio/bobbyatsegment-patch-2
Add section for user data field formatting
2 parents eaf0a3f + a046eb3 commit c4eeb31

File tree

1 file changed

+16
-0
lines changed
  • src/connections/destinations/catalog/actions-facebook-conversions-api

1 file changed

+16
-0
lines changed

src/connections/destinations/catalog/actions-facebook-conversions-api/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,22 @@ Segment creates a SHA-256 hash of the following fields before sending to Faceboo
165165

166166
If you use Facebook Pixel, the Pixel library also hashes the External ID. This means External IDs will match across Facebook Pixel and Facebook Conversions API if they use the External ID for [deduplication](https://developers.facebook.com/docs/marketing-api/conversions-api/deduplicate-pixel-and-server-events/#fbp-or-external-id){:target="_blank"}.
167167

168+
### User Data Formatting
169+
170+
Segment applies formatting to User Data Parameters as follows:
171+
172+
| User Data Field | Formatting applied to field value before hashing |
173+
|-----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
174+
| External ID | All whitespace is removed from string, set to lowercase. |
175+
| Email | All whitespace is removed from string, set to lowercase. |
176+
| First Name, Last Name | All whitespace is removed from string, set to lowercase. |
177+
| Gender | All whitespace is removed from string, set to lowercase. "male" is set to "m", "female" is set to "f". |
178+
| Date of Birth | No formatting is applied. |
179+
| Phone | All whitespace is removed from string. |
180+
| Zip Code | All whitespace is removed from string. |
181+
| State | All whitespace is removed from string and the result is compared against a map object of states and their two-character ANSI abbreviation code. Example: "Texas", "TX", or "tx" in this field will be formatted as "tx". |
182+
| Country | All whitespace is removed from string and the result is compared against a map object of countries and their two-letter ISO 3166-1 alpha-2 country code. Example: "Germany", "germany", or "de" will be formatted as "de". |
183+
168184
### User Data Parameters
169185

170186
Segment automatically maps User Data fields to their corresponding parameters [as expected by the Conversions API](https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/customer-information-parameters/){:target="_blank"} before sending to Facebook:

0 commit comments

Comments
 (0)