For Workers & Pages, what is the name of the domain?
avera.com.br
What is the error number?
Not an explicit error
What is the issue or error you’re encountering
Duplicate PII data in Facebook Pixel events (user_data and custom_data)
What steps have you taken to resolve the issue?
At moment I can’t see any workaround
What are the steps to reproduce the issue?
-
Set up Zaraz with Facebook Pixel integration enabled.
-
In the Facebook Pixel config, map the following default fields using Event Properties:
Email → user_email
Phone Number → phone
External ID → user_id -
On site, add the following code:
zaraz.set({
user_id: “8262c5c0-…”,
user_email: “[email protected]”,
phone: “5599999999999”
});
Then the resulting payload sent to Facebook (via zaraz debug):
{
“event_name”: “PageView”,
“user_data”: {
“em”: “<hashed_email>”,
“ph”: “<hashed_phone>”,
“external_id”: “<hashed_user_id>”
},
“custom_data”: {
“user_email”: “[email protected]”,
“phone”: “5599999999999”,
“user_id”: “8262c5c0-…”
}
}
This behavior is problematic because it exposes personal data in custom_data while simultaneously sending the hashed values in user_data. But if I hash the values Zaraz will apply an additional hash, resulting in double hashing and breaking Facebook’s matching process.
If use another map strategy, like Cookie, will result in double hash.
So, there is a way to solve this?