melodic-lion-74852
02/01/2023, 1:22 PMvalue field in our Purchase events is always zero despite their being valid values set in both properties.price and properties.value
2. (major) User data is nested in the custom_data object not user_data object so won't be picked up by Facebook for identifying customers
3. (minor) The server IP address is included and being picked up by Facebook as a client IPmillions-activity-52391
02/01/2023, 1:22 PMmelodic-lion-74852
02/01/2023, 1:23 PM{
"anonymousId": null,
"context": {
"library": {
"name": "rudder-analytics-python",
"version": "1.0.6"
}
},
"event": "Order Placed",
"integrations": {},
"messageId": "a0ba9011-8912-4281-80dd-d9e7664228e4",
"properties": {
"city": "Hounslow",
"country": "GB",
"coupon_code": "",
"currency": "GBP",
"discount": 0,
"discount_gbp": 0,
"dropship_mixed_basket": null,
"dropshipper_id": null,
"dropshipper_order_id": null,
"email": "rob@sungod.co",
"first_name": "Robert",
"has_preorder_items": false,
"is_dropship": false,
"is_held": false,
"item_count": 1,
"items": [
{
"discount": 0,
"price": 65,
"sku": "renegades-rgf_Mblack-rgle_Nblue-rgi_Bblue"
}
],
"last_name": "Watkiss",
"order_id": 469269,
"payment_method": "mastercard",
"payment_source": "stripe_payment",
"phone": "+44 7966 629261",
"referred_by": null,
"referrer_id": "UTnaQGhpSp",
"shipping": 0,
"shipping_gbp": 0,
"shipping_method": "DHL Express",
"state": "Brentford",
"status": "SHIPPED",
"subtotal": 65,
"subtotal_gbp": 65,
"tax": 0,
"tax_gbp": 0,
"total": 65,
"total_gbp": 65,
"tracking_number": "2476715065",
"zip": "TW8 9QU"
},
"rudderId": "f8bb37d6-394d-4619-b108-4dc651785de6",
"timestamp": "2023-02-01T13:22:05.812215+00:00",
"type": "track",
"userId": "rob@sungod.co"
}melodic-lion-74852
02/01/2023, 1:24 PM{
"body": {
"XML": {},
"FORM": {
"data": [
"{\"user_data\":{
\"external_id\":\"800481642d3b3eb50bda7a498f2d7de3be03736458d743307c43748df83a676b\"
},
\"event_name\":\"Purchase\",
\"event_time\":1675257726,
\"event_id\":\"a0ba9011-8912-4281-80dd-d9e7664228e4\",
\"custom_data\":{
\"total\":65,
\"city\":\"d7cb811928ff389561b798c8d0882a9b974e279b14c493ead62ff8407a83438b\",
\"country\":\"b4043b0b8297e379bc559ab33b6ae9c7a9b4ef6519d3baee53270f0c0dd3d960\",
\"email\":\"800481642d3b3eb50bda7a498f2d7de3be03736458d743307c43748df83a676b\",
\"first_name\":\"2238dd61a1bf83816b40ad894518814b8edf7221d84d897ffd2c0466ace07c41\",
\"last_name\":\"8d9281a039ef8d4adaa7e871a452a90e16053f1af010db972102cef67461664f\",
\"phone\":\"36717e042eb016a42a2947f758beda4f6c5a11add8116134d716fd185c9d3009\",
\"state\":\"bb425ed28d8d445665b339dd42d26243b85ad666eeaa4e0c1e72cf4e6ebfae66\",
\"zip\":\"572ff164ef77177c9ab3fc71faae428d7a364f6f41f2f242a1220efc9d1d85c3\",
\"content_ids\":[\"renegades-rgf_Mblack-rgle_Nblue-rgi_Bblue\"],
\"content_type\":\"product\",
\"currency\":\"GBP\",
\"value\":0,
\"contents\":[{\"id\":\"renegades-rgf_Mblack-rgle_Nblue-rgi_Bblue\",\"quantity\":1,\"item_price\":65}],
\"num_items\":1
}}"
],
"test_event_code": "TEST95988"
},
"JSON": {},
"JSON_ARRAY": {}
},
"type": "REST",
"files": {},
"method": "POST",
"params": {},
"userId": "",
"headers": {},
"version": "1",
"endpoint": "https://graph.facebook.com/v13.0/647269153434525/events?access_token=EAAN0jzG2TCYBAAR3ZAct4KZBzmmbKzpcGlIgFvwHJGllThmdYZCj2o80gkTOF6lfZArP7blNvKblaIEd4dbXCjULVJ4Fg6ZBYNZB3ZAGZB9hvcdBaXkKBO6bZA5p2TzoQvm9S77qaZCV1TvQP5fcrJ4kOBHPdszXdvZA41BbO1bS9JpYVxLas7WCQ5DDI4LnfhfHsAZD"
}melodic-lion-74852
02/01/2023, 1:26 PMmelodic-lion-74852
02/01/2023, 1:27 PMmelodic-lion-74852
02/03/2023, 8:49 AMquiet-wolf-72320
02/03/2023, 9:30 AMproperties.value as value field identifier but I donβt see this property in the event that you have shared above. Can you add this property to your payload and try?melodic-lion-74852
02/03/2023, 9:52 AMquiet-wolf-72320
02/03/2023, 10:19 AMmelodic-lion-74852
02/03/2023, 10:23 AMitems to products) but not the valuequiet-wolf-72320
02/03/2023, 10:26 AMmelodic-lion-74852
02/03/2023, 10:37 AMquiet-wolf-72320
02/03/2023, 10:53 AMmelodic-lion-74852
02/03/2023, 11:17 AMquiet-wolf-72320
02/03/2023, 12:22 PMbland-smartphone-16365
02/03/2023, 12:23 PMmelodic-lion-74852
02/03/2023, 1:05 PMquiet-wolf-72320
02/03/2023, 1:19 PMblue-sunset-32424
02/09/2023, 4:39 AMrevenue field solved this problem for us
I would highly encourage prioritizing updating the relevant docs because we missed out on a lot of data, and I suspect many others will as well