Hello :wave:, it seems that for Facebook Pixel (cl...
# support
l
Hello 👋, it seems that for Facebook Pixel (cloud mode) does not map
user_data
information correctly in the request. See threads for details
m
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
l
Screenshot 2023-02-22 at 16.34.18.png
it this event “Order Canceled”,
email
and
phone
are correctly hashed, but they are sent under the wrong key.
They should be sent under
user_data
and not
custom_data
This is the request payload rudder sends to facebook conversion API :
Copy code
{
  user_data: {
    external_id: '59dd65bab17315ac8caaebfac0cf1ebc525afdad89ecdad099701797a5d33067',
    client_ip_address: '176.34.68.218'
  },
  event_name: 'Order Canceled',
  event_time: 1677079930,
  event_id: 'Order Canceled.898598',
  custom_data: {
    currency: 'EUR',
    discount: 0,
    fbc: null,
    fbp: null,
    gclid: 'CjwKCAiA9NGfBhBvEiwAq5vSy0SBidEwmlVfYx-JCRZA1gzSJALj1J_avTMeccmdiv4PJC4GVOYwfhoCg6MQAvD_BwE',
    order_id: 898598,
    'products[0].brand': 'apple',
    'products[0].category': 'Upfront',
    'products[0].currency': 'EUR',
    'products[0].name': 'Apport Apple iPhone 13 Pro Max 128GB',
    'products[0].price': 159,
    'products[0].product_id': '2372',
    'products[0].sku': 'UPFAPP000031',
    'products[1].brand': 'apple',
    'products[1].category': 'Subscription',
    'products[1].currency': 'EUR',
    'products[1].name': 'Location Apple iPhone 13 Pro Max 128GB Sierra Blue - Engagement 20 mois',
    'products[1].price': 42.9,
    'products[1].product_id': '2603',
    'products[1].sku': 'SUBSMAAPP00076',
    shipping: 0,
    subscription_id: 898598,
    subtotal: 168.25,
    tax: 33.65,
    total: 201.9,
    value: 168.25,
    email: '3b436077a13af5ea25f71586a40c0e3e65c8528381841430a5f466729d778b79',
    phone: 'c84e7f5eb586739445c2f0a7a5e7bc434f9927c88d4600f2f2f2a296ac2693ae'
  }
}
email
and
phone
are not a the correct place
and actuallu, according to the doc
phone
should be
ph
and
email
should be
em
Are you aware of the issue ?
PS : this event is sent server side using
@rudderstack/rudder-sdk-node: 1.1.4
Same thing with
@rudderstack/rudder-sdk-node: 2.0.2
Apparently it needs to be put in “context.traits”
gratitude thank you 1
this way it works 😕