MENù

Bando regionale strutture Ricettive

19 febbraio 2024 - ore 16:40 - Webinar Gratuito

document.addEventListener('click', function (e) { const el = e.target.closest('a, button'); if (!el) return; const href = el.getAttribute('href') || el.dataset.href || ''; const text = (el.innerText || el.textContent || '').trim(); const isCalendarLink = href.includes('calendar.google.com'); const looksLikeBookingButton = /fissa appuntamento|prenota|appuntamento/i.test(text); if (isCalendarLink || looksLikeBookingButton) { if (typeof gtag === 'function') { gtag('event', 'click_prenotazione', { event_category: 'lead', event_label: href || text, transport_type: 'beacon' }); } } }, true);