Articles on: Integrations

Google AdWords Tracking

In order to add Goolgle adwords tracking, please add the following code to the pages with the widget:

<script>
  $(function() {
    document.body.addEventListener('th:order:confirmed', function(event) {
      gtag('event', 'conversion', {
        'send_to': 'AW-592797690/rESRCK67o9kCEPq_1ZoC',
        'value': event.detail.total.split(' ')[1],
        'currency': event.detail.total.split(' ')[0],
        'transaction_id': event.detail.id
      });
    });
  });
</script>

Updated on: 03/01/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!