I see to fire two facebook add to cart events for ...
# support
r
I see to fire two facebook add to cart events for the facebook pixel https://www.loom.com/share/a3112f8806f04ce39cd2db5f3597fc7b
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.
Hi Kevin, this is interesting. Can you also check if you have 2 RudderStack track calls. If they are both initiated by RudderStack you should see 2 RudderStack track events (If you see a request of type Preflight ignore it). You should see 2 RudderStack track events of type xhr for 2 requests, if they are both intiated by RudderStack It is possible that RudderStack sends the event twice especially if you have a slow network (Which you don't seem to have). Also did you install the FB SDK code directly apart from setting up a device mode (or), you have multiple FB destinations which are both in device mode.
f
(I am the developer of this site). No, we only see one event to Rudderstack. The Facebook pixel helper records 2 fb events and when the destination is turned off, there are 0 fb calls. The FB SDK is not installed on the site.
I have looked at the "Deduplication" concept but it would be weird if it only caused issues on this event only.
m
Is there a website where we can test this?
f
m
Oh ok. Thanks. We will review this and get back to you.
Hey I am facing an issue due to the site being in Swedish. Can you help me out on this?
f
Accept cookies = "Kör till" on the bottom of the page. Then go to this product: https://sweef.se/p/tillbehor/vardkit?v=KIT-SKI Add to cart = "Lägg till i varukorgen" which is the event that is reported duplicated to Meta
m
I see that the AddToCart FB event is triggered twice, inspite of the track call being made only once. In your destination config, you have a "Product Added" event that is mapped to "AddToCart". Can you delete that once and try?
f
I don't think we have that though
m
Yes the third mapping in the image
f
Changed
m
Oh ok. I ll try it in sometime.
In a minute or two
I checked and the result is the same. Also I don't think rudderStack is initiating the first event. Can you map "Product Added" to some other random event (say "Complete registration"). This is the list of standard events on FB.
f
Changed. Last week, I disabled the destination briefly which generated 0 events to FB. So there are nothing else generating the events than Rudderstack.
Use device-mode to send events
is enabled and there is a
Pixel ID
+
Business Access Token entered
m
Yes. I was trying to enable ad-blocker and check if the FB SDK is loaded even if the RudderStack SDK is not loaded. But that is not happening.
I sometimes see 2 "Cart Viewed" events as well on the RudderStack side.
f
We are aware of the Cart Viewed. So what do we do if there are only 1 Product Added event to Rudderstack?
m
Don't worry I am checking with the team internally and will be able to provide better answers once I get an update from the team.
f
@shy-kite-21035 any luck?
m
Yes, the team mentioned that this event is being captured automatically by FB Pixel. Can you remove the call to rudderanalytics.track() for this event and check once.
f
Sorry, we cannot do that since we are using the event on other tracking services. So you are basically saying that the FB destination is a no-go through Rudderstack?
m
Can you then try this. This should call the other integrations but not the FB Pixel, for this particular event. It would be preferable to try it in a staging/dev environment if possible `rudderanalytics.track(
Copy code
⁣
, , {
Copy code
⁣
integrations: {
Copy code
⁣
All: false,
Copy code
⁣
“Bing Ads”: true,
Copy code
⁣
“Pinterest Tag”: true,
Copy code
⁣
"Google Analytics": true, “TikTok Ads”: true,
Copy code
⁣
“Google Ads”: true
Copy code
⁣
}
Copy code
⁣
}
Copy code
⁣
); `⁣
f
Hi @shy-kite-21035 that seems to work. Are you guys going to enhance your script as many others likely should have this issue?
@shy-kite-21035 our traffic acquisition agency claims that they cannot track views on landing pages while Meta is on Cloud mode. Is this perhaps related to the same issue as with GA4 where UTM's are not captured?
m
No they should be able to track views but some additional features such as time_spent_on_page(engagement_time_ms in GA4) and location data may not be tracked but the basic page view should be tracked.
f
Any guesses to why they claim not seeing views from Meta Ads then?
m
I am not sure, but could it be because of the cookie consent? :) Since you load RudderStack post the cookie being accepted. However, the same should be true for device mode as well, unless you implement Meta SDK by yourself and put it outside the cookie consent. This is just a guess.
f
Is there any chance to get on a call with a technical resource from Rudderstack? We're kind of in the dark on how this best should be setup?
m
Sure we can get on a call on this tomorrow. I will send you an invite. You can setup a call here https://calendly.com/ranganathk/call-with-martin