Could someone confirm how transformations are bein...
# support
p
Could someone confirm how transformations are being applied on the Facebook Pixel destination please? We are adding
properties.price
in the transformation and confirmed it to be working correctly as per the screenshot below. However after selecting to use this field in the
Value Field Identifier
it is still being passed through as
0
instead of the value specified in
properties.price
. I'm assuming that the transformation is being applied after this mapping instead of before? Destination Id:
2OHnzokaLTrnUsL61jviHP6j7Ob
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.
p
Looks like this field also needs to be sent for
Purchase
events and not just
Product Viewed
and
Product Added
Copy code
You can use this setting for the Product Viewed or Product Added event.
Related to this: https://rudderstack.slack.com/archives/C01E4PLB135/p1675917549652379?thread_ts=1675257762.310809&cid=C01E4PLB135 I'm not sure if the docs were ever updated @quiet-wolf-72320 / @late-pillow-88086? Looking at: https://github.com/rudderlabs/rudder-transformer/blob/7d29cb1ac4d1695311044cb00181dc00e91d9962/src/v0/destinations/facebook_pixel/transform.js#L78
Copy code
case 'order completed':
          customData = {
            ...customData,
            ...handleOrder(message, categoryToContent),
          };
          commonData.event_name = 'Purchase';
          break;
It expects the
order completed
event to pass the price in the revenue field
Copy code
const handleOrder = (message, categoryToContent) => {
  const { products, revenue } = message.properties;
  const value = formatRevenue(revenue);
q
Did you try
properties.revenue
for
order completed
event?