Skip to content

Facebook Pixel

The widget does not fire Facebook Pixel events automatically. To track conversions, add your own pixel code to the pages containing the widget and listen for the widget’s purchase event.

Below is an example of how you can incorporate this:

<script>
document.body.addEventListener('th:purchase', function(event) {
var currency = event.detail.currency
var amount = event.detail.value
var uniqueOrderId = event.detail.order_id
// your custom tracking code
});
</script>

OR

<script>
$(function() {
$(document.body).on('th:purchase', function(event) {
gtag('event', 'conversion', {
'send_to': 'AW-784030222/QrKLCOnZ_44BEI607fUC',
'transaction_id': event.originalEvent.detail.order_id
});
});
});
</script>

OR

<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', '1983518208612876');
</script>