Monitoraggio di Google AdWords
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>
Aggiornato il: 03/01/2022
Grazie!