{% for action in actionDetails %} {% set customVariablesTooltip %} {% if action.customVariables is defined %} {{ 'CustomVariables_CustomVariables'|translate }} {% for id,customVariable in action.customVariables %} {% set name = 'customVariablePageName' ~ id %} {% set value = 'customVariablePageValue' ~ id %} - {{ customVariable[name]|raw }} {% if customVariable[value]|length > 0 %} = {{ customVariable[value]|raw }}{% endif %} {% endfor %} {% endif %} {% endset %} {% if not clientSideParameters.filterEcommerce or action.type == 'ecommerceOrder' or action.type == 'ecommerceAbandonedCart' %}
{% if action.type == 'ecommerceOrder' %}
{# spacing is important for tooltip to look nice #}
{% set ecommerceOrderTooltip %}{{ 'General_ColumnRevenue'|translate }}: {{ action.revenue|money(clientSideParameters.idSite)|raw }}
{% if action.revenueSubTotal is not empty %} - {{ 'General_Subtotal'|translate }}: {{ action.revenueSubTotal|money(clientSideParameters.idSite)|raw }}{% endif %}
{% if action.revenueTax is not empty %} - {{ 'General_Tax'|translate }}: {{ action.revenueTax|money(clientSideParameters.idSite)|raw }}{% endif %}
{% if action.revenueShipping is not empty %} - {{ 'General_Shipping'|translate }}: {{ action.revenueShipping|money(clientSideParameters.idSite)|raw }}{% endif %}
{% if action.revenueDiscount is not empty %} - {{ 'General_Discount'|translate }}: {{ action.revenueDiscount|money(clientSideParameters.idSite)|raw }}{% endif %}
{% endset %}
{{ 'General_ColumnRevenue'|translate }}:
{% else %}
{% set revenueLeft %}{{ 'General_ColumnRevenue'|translate }}{% endset %}
{{ 'Goals_LeftInCart'|translate(revenueLeft) }}:
{% endif %}
{{ action.revenue|money(clientSideParameters.idSite)|raw }}
{% if action.type == 'ecommerceOrder' %}
{% endif %}, {{ 'General_Quantity'|translate }}: {{ action.items }}
{# Ecommerce items in Cart/Order #}
{% if action.itemDetails is not empty %}
{% for product in action.itemDetails %}
{% endif %}
{% endif %}
{% if action.type == 'download' or action.type == 'outlink' %}
{% endif %}
{% if action.eventCategory|default(false) is not empty %}
(url)
{% else %}
{{ action.url }}
{% endif %}
{% if action.type == 'action' and action.pageTitle|default(false) is not empty %}
{{ clientSideParameters.pageUrlNotDefined }}
{% endif %} {% else %} {# Goal conversion #}