Aione Ferreira — Sistemas digitais que vendem // // // 6. Caso tenha descomentado, substitua MEASUREMENT_ID_AQUI pelo seu código // // ════════════════════════════════════════════════════════════════════════════ // window.dataLayer = window.dataLayer || []; // function gtag(){dataLayer.push(arguments);} // gtag('js', new Date()); // gtag('config', 'MEASUREMENT_ID_AQUI'); // ════════════════════════════════════════════════════════════════════════════ // 📊 RASTREAMENTO DE CLIQUES — funcionamento automático // ════════════════════════════════════════════════════════════════════════════ // Cada clique em link/botão dispara um evento rastreável. Se você descomen- // tar Meta Pixel ou GA4 acima, os cliques serão automaticamente rastreados. // ════════════════════════════════════════════════════════════════════════════ document.querySelectorAll('.link-btn, .social-btn').forEach(btn => { btn.addEventListener('click', () => { const label = btn.querySelector('.link-title')?.innerText || btn.getAttribute('aria-label') || btn.href; // ▼ DESCOMENTE uma das linhas abaixo se ativar Meta Pixel ou GA4: // Meta Pixel: // fbq('trackCustom', 'BioLinkClick', { url: btn.href, label: label }); // Google Analytics: // gtag('event', 'bio_click', { // 'event_category': 'engagement', // 'event_label': label, // 'url': btn.href // }); console.log('[BioLink] Click:', label, '→', btn.href); }); });
Precisar de ajuda?