{% load currency_filters l10n %}

{% if cookie_jar.settings.facebook_pixel and cookie_jar.facebook.is_allowed %}
    <script>
        fbq('track', 'AddToCart',
            {
                content_ids: ["{{product.upc}}"],
                content: ["{{product.title}}"],
                value: {{line.line_price_incl_tax_incl_discounts|unlocalize|escapejs}},
                currency: "{{line.price_currency}}",
            }
        );
    </script>
{% endif %}