Hello guys. With Facebook pixel enabled (with `Us...
# support
l
Hello guys. With Facebook pixel enabled (with
Use device-mode to send events
set to ON), the rudderstack js client (v1.1) discard our mapping. In our mapping we have •
Order Completed
(rudderstack) ->
StartTrial
(facebook) We have 2 sources : • Our API:
Order Completed
correctly sends
StartTrial
event to fb • Our website:
Order Completed
sends
Purchase
(instead of
StartTrial
to fb) Why is that ?
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but 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
In the live event viewer we don’t get anything from our website as it uses the device-mode/native SDK
but why is it discarding our mapping ?
q
Hi @limited-wall-6616
Order Completed
=
Purchase
is coming from Standard events https://www.rudderstack.com/docs/destinations/streaming-destinations/fb-pixel/#standard-events You can use the
Map your events with Facebook Standard Events
setting in the RudderStack dashboard to override the default mappings specified in the link above.
l
Hello @quiet-wolf-72320
I know, that’s what we did already
Screenshot 2023-02-16 at 12.45.50.png
This works fine with our API source (events are correctly mapped) but it does not work with the our website source
Given the mapping I sent above, if on our website I open a console and type :
rudderstackanalytics.track('Order Completed')
I should have a FB event firing
StartTrial
because that’s what I’ve set in the mapping
but instead, it triggers a
Purchase
event
q
does it work if you disable
Use device-mode to send events
?
l
Now, on our backend node.js if I trigger a
Order Completed
I correctly see a
StartTrial
event firing
Yes if I disable it, it works
But I need to enable it to have both pixel and server to server integration as per recommanded by facebook to not loose any events and to have event deduplication work correctly
q
that means cloud mode is working both for web & server but device mode for web is not working from these options
I will read more on device mode and check with the team. Did you loose any event if you send web and server both via cloud mode?
l
So actually no, I don’t loose any events, but the strange thing is that I get duplicated event when using both via cloud mode. That’s why I have enabled device mode.
Although I send a unique event_id from both sources
(and in the live event view, I see the event_id is correcty sent to FB from both sources, and both event_id are the same !)
For ex: Order Completed (event_id = « Order Completed.xxx » where xxx is the actual order id in our database) I see in the live event, that « startrial » is sent twice (1 from each source) with the same event_id. But in facebook event manager, it’s counted twice 😩, thus it does not get deduplicated… I don’t understand why
I would actually really prefer using cloud mode for website source but I need to manage this duplicated event issue….
q
Deduplication is handled and there are some conditions for that. Here is a reference https://www.rudderstack.com/docs/destinations/streaming-destinations/fb-pixel/#deduplication
l
Yes, as I said we are using the « event_id » deduplication method as specified in your doc
q
can you share your workspace id?
l
But when both source (website in cloud mode, and our node backend) send the same event (same name, same event_id), it gets counted twice in FB event manager
q
and a payload from website and backend
l
As a side note: events are seems at the same second (time)
sure
I’m on my phone right now but as soon as I get back on my computer I’ll send you that !
thank you 🙏
q
can you also check your instrumentation and confirm below Facebook determines if events are identical based on their ID and name. So, for an event to be deduplicated: 1. In corresponding events, a Meta Pixel’s
eventID
must match the Conversion API’s
event_id
. 2. In corresponding events, a Meta Pixel’s
event
must match the Conversion API’s
event_name
. if you are sending
event_id
and
event_name
from both the sources, then it might be preventing the deduplication https://developers.facebook.com/docs/marketing-api/conversions-api/deduplicate-pixel-and-server-events/#event-id-and-event-name---recommended
l
@quiet-wolf-72320 The problem with duplication is that when cloud mode is enabled, it uses Facebook Conversion API. So our backend uses conversion API and our frontend source (cloud mode) also uses conversion API
So this is normal that FB does only deduplicate events when there are send from Conversion API AND pixel (not cloud mode)
as this is 2 server side events, there are counted twice.
So the real question is : Why does rudderstack ignores my custom event mapping when device mode is used ? (not cloud mode)
Up 🙂