Dodałem to w taki sposób, czy o to chodziło? (jkbc jestem trochę zielonkawy)
Tak dodane jednak nie dział, czy na to może mieć wpływ bramka płatności (CashBill)?
<!-- Facebook Pixel Code --> <script> !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', 'xxxxxxxxxxx'); fbq('track', 'PageView'); </script> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=xxxxxxxxxx&ev=PageView&noscript=1" /></noscript> <!-- End Facebook Pixel Code --> {if $page.page_name == 'order-confirmation'} {literal} fbq('track', 'Purchase', { content_ids: [{/literal}{foreach from=$cart.products item=product name=products}{$product.id_product}{if !$smarty.foreach.products.last},{/if}{/foreach}{literal}], content_type: 'product_group', currency: '{/literal}{$currency.iso_code}{literal}', value: {/literal}{$cart.totals.total.amount}{literal} }); {/literal} {/if} {if $page.page_name == 'checkout'} {literal} fbq('track', 'InitiateCheckout'); {/literal} {/if}