Hi, I’m trying to setup Facebook Pixel (browser) a...
# support
t
Hi, I’m trying to setup Facebook Pixel (browser) and FB Conversion API (server) and I was able to see some logs on FB Test events. But the problem are • if
Use device-mode to send events
is ENABLED it only sends browser events and if it’s DISABLED it only sends server events • for page view, BROWSER events sends a lot of parameters but on SERVER events, it doesn’t have parameters Questions: • should I create 2 destination with FB Pixel (1 is enabled device-mode and 1 is disabled) or is there a way with 1 destination but it will send to both? • Is there a way to customize the parameters for both browser and server? do you have sample transformation code?
s
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.
q
Hi @tall-vase-21787 Let me find some info on this
t
thank you!
q
• if
Use device-mode to send events
is ENABLED it only sends browser events and if it’s DISABLED it only sends server events
In device mode only Web is supported but in cloud mode both web and server are supported. So device mode seems to be working fine here. Can you check if you are getting any error in cloud mode for browser events? Some details you can find here in docs https://www.rudderstack.com/docs/destinations/streaming-destinations/fb-pixel/
• for page view, BROWSER events sends a lot of parameters but on SERVER events, it doesn’t have parameters
Based on previous point these differences are not only because of browser and server but contributed by connection mode (device/cloud) too. Can you check if you are seeing differences if using cloud mode only. Questions: • should I create 2 destination with FB Pixel (1 is enabled device-mode and 1 is disabled) or is there a way with 1 destination but it will send to both? — If you want to use both device mode and cloud made together then you need to have two destination. Both connection modes can’t be enabled at the same time in one destination. • Is there a way to customize the parameters for both browser and server? do you have sample transformation code? can you site an example for page visit? — Once you receive the events from source, you can apply transformation to customize it before sending it to the destination. You can check this doc for reference. https://www.rudderstack.com/docs/features/transformations/cloud-mode-transformations I will try to find if there is any working example for page visits and share it with you. FYI.. Transformation in cloud mode and device mode are supported for enterprise plan only.
also, I noticed that when it’s server events, it’s always tagged as deduplicated but I can’t see any similar events
Deduplication is used when you send same event via both browser and server. I think FB pixel shows only one entry and marks it deduplicated. Some details here in doc https://www.facebook.com/business/help/823677331451951?id=1205376682832142
t
Can you check if you are getting any error in cloud mode for browser events?
it doesn’t have the pixel if it’s disabled
cloud mode is when
Use device-mode to send events
is disabled, right?
q
yes
t
ok, so just to confirm, I really need 2 destinations? • enabled (Use device-mode to send events): this sends browser events • disabled (Use device-mode to send events): this sends server events
FYI.. Transformation in cloud mode and device mode are supported for enterprise plan only.
We are on Growth plan and it says on your website that it should be available, right? https://www.rudderstack.com/pricing/
q
Let me check with the team and loop in concern TAM here
FYI.. Transformation in cloud mode and device mode are supported for enterprise plan only.
We are on Growth plan and it says on your website that it should be available, right?
slight correction in this - Cloud mode transformation is supported in both growth and enterprise plans . It was a miss on my end.
🙌 1
• enabled (Use device-mode to send events): this sends browser events
• disabled (Use device-mode to send events): this sends server events
If it is disabled then it should work for both browser and server. If it’s not happening then there should be some problem. I have sent the query to our team. Let me get the details from them
t
If it is disabled then it should work for both browser and server. If it’s not happening then there should be some problem. I have sent the query to our team. Let me get the details from them
yep. it’s not working that way so I did the 2 destination workaround 😞
l
Hi @tall-vase-21787 , regarding this, if the event_id is same for both browser and server events, it will be deduplicated. Rudderstack is mapping
event_id
from
'traits.event_id'
/
'context.traits.event_id'
/
'properties.event_id'
/`message.messageId` . Please have a look here, how facebook considers an event to be duplicate.
• server events are showing less parameters, where browser events shows a lot of parameters ◦ Regarding this, browser events are being fired with the SDK. And these parameters are captured automatically. ◦ Now for server sent events, Rudderstack is sending all the parameters sent by the users via properties. What we have observed is, for both SDK and server APIs not all the parameters are shown in Facebook, but that cannot confirm that facebook is not recording those. • when you set two destinations, one for device and one for cloud, events are getting deduplicated. ◦ This is valid, and this is how it should be. Please go through the references shared above and keep in mind what facebook recommends. • What solution Rudderstack offers: ◦ To facilitate optimum event matching, it is sending
event_name
,
external_id
,
event_id
,
fbp
and
fbc
parameters. So that facebook can match the two events and generate optimum reports using that.