diff --git a/app/code/Meta/Conversion/view/frontend/templates/pixel/add_to_cart.phtml b/app/code/Meta/Conversion/view/frontend/templates/pixel/add_to_cart.phtml index fc778989..7d3913a5 100644 --- a/app/code/Meta/Conversion/view/frontend/templates/pixel/add_to_cart.phtml +++ b/app/code/Meta/Conversion/view/frontend/templates/pixel/add_to_cart.phtml @@ -27,7 +27,6 @@ $trackerUrl = $block->getTrackerUrl(); var product_info_url = 'getProductInfoUrl() ?>'; $(document).on('ajax:addToCart', function (event, data) { - if (!data.response.backUrl) { // check product data from swatch widget var swatchData = $('[data-role=swatch-options]').data('mage-SwatchRenderer'); if (swatchData) { @@ -90,7 +89,6 @@ $trackerUrl = $block->getTrackerUrl(); metaPixelTracker(addToCartConfigPixel); } }); - } }); });