Мне нужно установить тег конверсии Pinterest, чтобы динамически отслеживать «значение» и «количество_заказа» из заказов WooCommerce. Тег Pinterest состоит из двух частей Javascript. Часть 1 — это базовый код, который находится в шапке сайта. Часть 2 — это код события, который указывается в заголовке Checkout.
Я думаю, что часть 2 — это то, что должно быть изменено ниже (значение и количество_заказа необходимо изменить, чтобы получить заказы из WooCommerce):
<script>
pintrk('track', ' checkout ', {
value: {{Enhanced Transaction Revenue}},
order_quantity: {{item.quantity}}
});
</script>
<noscript>
<img height="1" width="1" style="display:none;" alt="" src=" https://ct.pinterest.com/v3/?tid= 123456789 &event= checkout &noscript=1" /> </noscript>
Руководство по тегу конверсии Pinterest здесь: https://help.pinterest.com/sites/help/files/pinterest_tag_instructions.pdf
На данный момент я в отчаянии, поэтому любая помощь будет принята с благодарностью... и вознаграждена!