Skip to content

Commit a4f6de1

Browse files
Add section for user data field formatting
1 parent cf8dc45 commit a4f6de1

File tree

1 file changed

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

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,19 @@ Segment creates a SHA-256 hash of the following fields before sending to Faceboo
149149

150150
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"}.
151151

152+
### User Data Formatting
153+
154+
Segment applies formatting to User Data Parameters as follows:
155+
156+
| User Data Field | Formatting applied to field value before hashing |
157+
|-------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
158+
| External ID, Email, Gender, Last Name, First Name, City, State, Zip Code, Country | All whitespace is removed from string, set to lowercase. |
159+
| Phone | All non-numeric characters are removed from string. |
160+
| Gender | A string of 'male' will be transformed to 'm', and 'female' to 'f'. |
161+
| Date of Birth | No formatting is applied. |
162+
| State | Compared against a Map object of states and their 2-character ANSI abbreviation code. Example: "Texas", "TX", or "tx" in this field will be formatted as "tx". |
163+
| Country | Compared against a Map object of countries and their 2-letter ISO 3166-1 alpha-2 country codes. |
164+
152165
### User Data Parameters
153166

154167
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)