Yeah it breaks JSON responses. I hacked this by adding this to includes/functions.php to fix it for the theme I’m using (Shoptimizer):
if (!isset($_GET['wc-ajax']) && (!isset($_POST['action']) || $_POST['action'] != 'shoptimizer_pdp_ajax_atc')) {
add_action('woocommerce_add_to_cart', array($this, 'snap_pixel_code_add_to_cart'), 10, 6);
}