# Smarty Variablen Cart Pinterest

**URL:** <https://forum.shopware.com/t/smarty-variablen-cart-pinterest/98315>\
**Category:** Shopware 5\
**Created:** [2. Februar 2023 um 08:51 UTC](https://forum.shopware.com/t/smarty-variablen-cart-pinterest/98315 "2023-02-02T08:51:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![premium-dog](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@premium-dog](https://forum.shopware.com/u/premium-dog)\
**Post date:** [2. Februar 2023 um 08:51 UTC](https://forum.shopware.com/t/smarty-variablen-cart-pinterest/98315/1 "2023-02-02T08:51:26Z")

</div>

Hi,  
ich versuche gerade für Pinterest das Tracking zu realisieren.  
Dazu brauche ich einige Variablen. Ich habe mal versucht, die einzufügen, aber sie werden nicht erkannt, ausser value, dass funktioniert.  
Vielen Dank

```auto
<script>
pintrk('track', 'addtocart', {
value: '{$sBasket.sAmount}',
order_quantity: {if $smarty.request.sQuantity}{$smarty.request.sQuantity}{else}1{/if},
currency: 'EUR',
line_items: [
{
product_name: '{$sArticle.articleName|escape}',
product_id: '{$sArticle.ordernumber}',
product_price: '{$sArticle.price_numeric}',
product_category: '{$sCategoryInfo.name|escape}',
product_quantity: {if $smarty.request.sQuantity}{$smarty.request.sQuantity}{else}1{/if}
}
]
});
</script>

```
