Digital Marketing Stud

Cutting edge skills

This is the heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

This is the heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

This is the heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

This is the heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

document.addEventListener('DOMContentLoaded', function () { const links = document.querySelectorAll('.whatsapp-text-link'); links.forEach(function (link) { link.addEventListener('click', function (e) { e.preventDefault(); const phoneNumber = "919833458906"; // Use country code format const message = "I am interested in the product"; const pageURL = window.location.href; const finalMessage = encodeURIComponent(`${message}\nPage: ${pageURL}`); const waLink = `https://wa.me/${phoneNumber}?text=${finalMessage}`; // 🔹 Track Event (GA4 or Google Ads) if (typeof gtag === 'function') { gtag('event', 'whatsapp_click', { event_category: 'WhatsApp', event_label: pageURL, value: 1 }); } // 🔗 Open WhatsApp in new tab window.open(waLink, '_blank'); }); }); });
document.addEventListener('DOMContentLoaded', function () { const links = document.querySelectorAll('.whatsapp-text-link'); links.forEach(function (link) { link.addEventListener('click', function (e) { e.preventDefault(); const phoneNumber = "919833458906"; // Use country code format const message = "I am interested in the product"; const pageURL = window.location.href; const finalMessage = encodeURIComponent(`${message}\nPage: ${pageURL}`); const waLink = `https://wa.me/${phoneNumber}?text=${finalMessage}`; // 🔹 Track Event (GA4 or Google Ads) if (typeof gtag === 'function') { gtag('event', 'whatsapp_click', { event_category: 'WhatsApp', event_label: pageURL, value: 1 }); } // 🔗 Open WhatsApp in new tab window.open(waLink, '_blank'); }); }); });