Track Contact
The Contact event fires when a visitor clicks a link to start a conversation — phone (tel:), WhatsApp (wa.me/), Messenger (m.me/), or email (mailto:). Essential for service businesses where the “conversion” is a call or message, not a form submit.

1. Copy the snippet
The snippet auto-detects every contact link on the page — you don’t need to add an id or class to each one.
Option A — pbq (recommended)
<!-- Place inside the <body> of every page that has a tel:, mailto:,
or wa.me/ link, AFTER the AdsPing script in <head>.
Most sites just put it in the shared footer template. -->
<script>
document.querySelectorAll(
'a[href^="tel:"], a[href^="mailto:"], a[href*="wa.me/"], a[href*="m.me/"]'
).forEach(function (el) {
el.addEventListener('click', function () {
pbq('track', 'Contact');
});
});
</script>Option B — dataLayer
<!-- Place inside the <body> of every page that has a tel:, mailto:,
or wa.me/ link, AFTER the AdsPing script in <head>.
Most sites just put it in the shared footer template. -->
<script>
document.querySelectorAll(
'a[href^="tel:"], a[href^="mailto:"], a[href*="wa.me/"], a[href*="m.me/"]'
).forEach(function (el) {
el.addEventListener('click', function () {
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({ event: 'contact' });
});
});
</script>2. Where to paste it
Paste it inside the <body> of your shared footer template (or any other template loaded on every page). One paste covers every contact link on every page.

3. Test it
Open your site, click any WhatsApp / phone / Messenger link. A Contact row appears in your Recent Events within 10 seconds with a green Success badge.

✓ Contact is live.
Every call, WhatsApp, or messenger click is now a conversion signal in Meta — perfect for service businesses where the phone is the sale.