custom/static-plugins/IronMatomo/src/Resources/views/storefront/iron_matomo/product.html.twig line 1

Open in your IDE?
  1. {% set price = page.product.calculatedPrice %}
  2. {% if page.product.calculatedPrices|length >= 1 %}
  3.     {% set price = page.product.calculatedPrices.first %}
  4. {% endif %}
  5. ironMatomoDataLayer.track.push(['setEcommerceView',"{{ page.product.productNumber }}","{{ page.product.translated.name }}","",{{ price.unitPrice|number_format(2, '.', '') }}]);