Articles on: Integrations

Facebook Pixel

Our system is designed to seamlessly integrate with Facebook Pixel, assuming it's detected on the page.
However, should you need to disable this feature, it can be easily done.


In case you're interested in adding more advanced tracking, we also offer the capability to add custom JavaScript code. Below is an example of how you can incorporate this:

<script>  

document.body.addEventListener('th:order:confirmed', function(event) {

    var currency = amount = event.detail.total.split(' ')[0]

    var amount = event.detail.total.split(' ')[1]

    var uniqueOrderId = event.detail.id

    // your custom tracking code

  });

</script>


OR

<script>

  $(function() {

    $(document.body).on('th:order:confirmed', function(event) {

      gtag('event', 'conversion', {

        'send_to': 'AW-784030222/QrKLCOnZ_44BEI607fUC',

        'transaction_id': event.originalEvent.detail.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>

Updated on: 14/07/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!