Skip to content

Google AdWords tracking

Google AdWords tracking integration

Google AdWords tracking can be added to your website to help you monitor and optimise your advertising campaigns. This guide explains how to add the necessary code to pages containing the widget.

Steps to add Google AdWords tracking

  1. Locate the pages containing the widget: Identify the pages on your website where the TicketingHub widget is present.
  2. Add the tracking code: Insert the following JavaScript code into these pages:
<script>
$(function() {
document.body.addEventListener('th:purchase', function(event) {
gtag('event', 'conversion', {
'send_to': 'AW-592797690/rESRCK67o9kCEPq_1ZoC',
'value': event.detail.value,
'currency': event.detail.currency,
'transaction_id': event.detail.order_id
});
});
});
</script>

By following these steps, you can successfully add Google AdWords tracking to your website. This will allow you to track conversions and optimise your advertising campaigns effectively.