To describe more the issue, I have a business manager account on Facebook and I have implemented everything as it should using React, my problem is when the event AddToCart is firing the count increases on Facebook analytics for AddToCart; event tho the user is coming lets from google or any other social media.

Is it applicable to only limited the events to be firing only if traffic comes from Facebook?

Root.tsx

ReactPixel.init('PIXEL ID', null, {
    autoConfig: true,
    debug: true,
})
ReactPixel.pageView()

on add to cart button a fire this action

 ReactPixel.fbq('track', 'AddToCart', {
                contents: [{ id: action.payload.sku, quantity: 1 }],
                content_type: 'product',
                value: action.payload.price,
                currency: 'USD',
            })

any advice would be helpful!

0

There are 0 best solutions below