{% extends "partials/google_analytics.html" %}

{% block extratracking %}
    _gaq.push(['_addTrans',
    '{{ order.number|escapejs }}',
    '{{ shop_name|escapejs }}',
    '{{ order.total_incl_tax|escapejs }}',
    '{{ order.total_tax|escapejs }}',
    '{{ order.shipping_incl_tax|escapejs }}',
    '{{ order.shipping_address.line4|escapejs }}',
    '{{ order.shipping_address.state|escapejs }}',
    '{{ order.shipping_address.country.name|escapejs }}'
    ]);
    {% for line in order.lines.all %}
        _gaq.push(['_addItem',
        '{{ order.number }}',
        '{{ line.partner_sku|escapejs }}',
        '{{ line.title|escapejs }}',
        '{{ line.category|default:"Uncategorised"|escapejs }}',
        '{{ line.unit_price_incl_tax }}',
        '{{ line.quantity }}']);
    {% endfor %}
    _gaq.push(['_trackTrans']);
{% endblock %}

{% extends "partials/google_analytics.html" %}

{% block extratracking %}
    _gaq.push(['_addTrans',
    '{{ order.number|escapejs }}',
    '{{ shop_name|escapejs }}',
    '{{ order.total_incl_tax|escapejs }}',
    '{{ order.total_tax|escapejs }}',
    '{{ order.shipping_incl_tax|escapejs }}',
    '{{ order.shipping_address.line4|escapejs }}',
    '{{ order.shipping_address.state|escapejs }}',
    '{{ order.shipping_address.country.name|escapejs }}'
    ]);
    {% for line in order.lines.all %}
        _gaq.push(['_addItem',
        '{{ order.number }}',
        '{{ line.partner_sku|escapejs }}',
        '{{ line.title|escapejs }}',
        '{{ line.category|default:"Uncategorised"|escapejs }}',
        '{{ line.unit_price_incl_tax }}',
        '{{ line.quantity }}']);
    {% endfor %}
    _gaq.push(['_set', 'currencyCode', '{{ order.currency|escapejs }}']);
    _gaq.push(['_trackTrans']);
{% endblock %}

Send order currency to Google Analytics
Send order currency to Google Analytics

See https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingEcommerce#localcurrencies
