<script type="text/javascript">
    
dataLayer.push({
        'transactionId': '{{transaction.id}}',
        'transactionAffiliation': '{{transaction.affiliation|e}}',
        'transactionTotal': '{{transaction.revenue}}',
        'transactionTax': '{{transaction.tax}}',
        'transactionShipping': '{{transaction.shipping}}',
        'transactionProducts': [
            {%for item in items%}
            {
                "id": "{{item.id}}",
                'sku': '{{item.sku|e}}',
                'name': '{{item.name|e}}',
                "brand": "{{item.brand|e}}",
                'category': '{{item.category|e}}',
                'price': '{{item.price}}',
                'quantity': '{{item.quantity}}',
                "variant": "{{item.desc|e}}"
            },
            {%endfor%}        
            ]
    });

</script>