Avantlink Integration problem

Shopify Partner
2 0 0


I'm trying to set up my Avantlink tracking code in the Checkout settings of Shopify ( in "Additionnal Content and Script" )

I'm following this tutorial : http://support.avantlink.com/hc/en-us/articles/208048066-Shopify-Integration

<script type="text/javascript">
var _AvantMetrics = _AvantMetrics || [];
_AvantMetrics.push(['order',{ order_id:'{{order_number}}', amount:'{{subtotal_price | money_without_currency}}', state:'{{billing_address.province}}', country:'{{billing_address.country}}' }]);
{% for line in line_items %}
_AvantMetrics.push(['item',{ order_id:'{{order_number}}', variant_sku:'{{line.sku}}', price:'{{line.price | money_without_currency}}', qty:'{{line.quantity}}' }]);
{% endfor %}
<script type="text/javascript">
(function() {
var avm = document.createElement('script'); avm.type = 'text/javascript'; avm.async = true;
avm.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.avmws.com/[SITE_ID]/';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(avm, s);


For some reason an Avantlink tech is telling me that the "OrderId" is well received, but the 'line_items' array provided by Shopify is empty so no data is populating the _AvantMetrics 'item' push.

Any idea of what's wrong in the script ?

Thanks a lot