Product_added_to_cart event not firing when cart-transform runs

It looks like the product_added_to_cart event isn’t firing when the cart-transform function runs for items added through it.
Has anyone run into this issue before?

Hi @Pedro_Carrera

Is it only the `product_added_to_cart` event that isn’t triggering? Is my screenshot helpful to you?

Hi @kyle_liu !

Yes, in my case only `product_added_to_cart` is not triggering…. products are added by calling add.js endpoint with a custom app and cart-transform runs to merge the products (it is a bundle page). I am not sure why it is not triggering

Hi Pedro!

Are you adding multiple products to the cart in a single add.js request when this issue occurs?

Hi @Paige-Shopify !
Yes, two products and then the cart-transform does the merge operation to consolidate then in a single bundle product

Thanks for confirming.
I was able to replicate this when I’m adding multiple products together and it results in a merge as well.
This appears to be a gap in our Web Pixels API that we’ll need to address.

Thanks for reaching out about this! I’ll provide an update here once we’ve shipped a solution for this :slight_smile:

1 Like

Hi @Paige-Shopify ! I am glad we have discovered this together :slight_smile:

Do you have any visibility on when it should be addressed and fixed? I am asking because not seeing ATC events during holiday season is quite critical for the whole business.

Thank you.

1 Like

That’s completely fair.

At the moment, we don’t have plans to address this in the near term since there’s a workaround available. You can add the products to cart using separate add.js requests. While this does result in multiple add_to_cart events instead of a single one, it should still allow you to capture business-critical data.