document.addEventListener('DOMContentLoaded', function() { var leadButton = document.querySelector('[data-track-lead]'); if (leadButton) { leadButton.addEventListener('click', function() { fbq('track', 'Lead'); }); } });