{%- if sylius.channel.googleTagManagerId is not null -%}
{% if chcookieconsent_isCategoryAllowedByUser('analytics') == true %}
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
{% if push is not null %}
{% for data in push %}
window.dataLayer.push({{ data|json_encode|raw }});
{% endfor %}
{% endif %}
</script>
<script>
//sert uniquement pour l'event add_payment_info qui se déclenche quand on choisit et qu'on valide son moyen de paiement
{% if cart is not null %}
var cart = {{ cart|raw }}
{% endif %}
</script>
{% endif %}
{% endif %}