document.addEventListener('click', function (e) { track(e.target); }, false); function track(e) { if (e) { if (e.nodeName === 'A') { if (e.href.startsWith('tel:')) { window.wixDevelopersAnalytics.triggerEvent('Lead', {value: e.href, label: e.href}); } else if (e.href.startsWith('https://apps.wix.com/place-invites')) { window.wixDevelopersAnalytics.triggerEvent('CustomEvent', {event: 'Download', eventCategory: 'Engagement', eventAction: e.href, eventLabel: e.href}); } } else { track(e.parentElement); } } } G-J9LZQDQEE9