How to add Meta Pixel tracking for phone and email links in WordPress

Meta Pixel can track more than page views and form submissions. On a WordPress site, you can also fire a Meta Contact event when a visitor clicks a phone number or email link, giving marketing teams better visibility into high-intent interactions.

In one implementation, the Meta Pixel base code was already installed site-wide. The remaining task was to add click-only event tracking for tel: and mailto: links in a contact area and the site footer. Phone tracking was implemented and verified successfully. The same snippet also supported email clicks, but there were no existing mailto: links in those areas to test against.

Issue background

The site already had the Meta Pixel base code installed, so page-level tracking infrastructure was in place.

The goal was to add more specific conversion signals for visitors who intentionally clicked:

  • A phone number using a tel: link.
  • An email address using a mailto: link.

The event needed to fire only when the visitor clicked the link. It should not run on page load.

Diagnosis

Because the Meta Pixel base script was already present, no new global Meta installation was required.

The missing piece was event-level tracking on the contact links themselves. Meta’s fbq() function could be called directly from the click event and use the standard Contact event with a custom parameter identifying whether the interaction was by phone or email.

The requested phone event was:

fbq('track', 'Contact', {
  contact_method: 'phone'
});

The requested email event was:

fbq('track', 'Contact', {
  contact_method: 'email'
});

The developer also confirmed an important limitation during verification: phone links existed in the target areas and could be tested, but there were no existing mailto: links there. That meant the email-handling code could be implemented, but a live email-click event could not be verified against the current markup.

Resolution steps

The documented implementation was straightforward:

  1. Confirm that Meta Pixel is already loaded. Before adding click events, verify that the base Meta Pixel code is available on the pages where the links appear.
  2. Target phone links using tel:. Add an onclick handler that fires the Meta Contact event only when the visitor clicks the phone link.
<a href="tel:+1XXXXXXXXXX" onclick="fbq('track', 'Contact', {contact_method: 'phone'});">
  Call us
</a>
  1. Target email links using mailto:. Use the same event with a different contact_method value.
<a href="mailto:info@example.com" onclick="fbq('track', 'Contact', {contact_method: 'email'});">
  Email us
</a>
  1. Keep the event click-driven. Do not place the fbq('track', ...) call in a page-load script if the goal is to measure intentional phone or email interactions.
  2. Apply the tracking to every relevant instance. In this case, phone tracking was added to the contact page and footer.
  3. Verify phone clicks. The developer confirmed that phone click tracking was working correctly after implementation.
  4. Handle email verification separately. The shared code already supported mailto: links, but no email links existed in the target areas at the time of testing, so that path could not be verified live.

This distinction matters when documenting analytics work: supporting a future link type in code is not the same as confirming that a real event fired from an existing link.

Final outcome

Meta Pixel phone-click tracking was implemented and verified on the relevant WordPress contact areas.

The same event logic was also prepared for email clicks using mailto: links. Because the site did not currently contain email links in those locations, the email path remained implemented but unverified against live markup.

The broader lesson is that Meta Pixel contact tracking can be added with a very small amount of code when the base pixel is already installed. The key is to attach the event to the actual user interaction and distinguish contact methods with parameters such as contact_method: 'phone' and contact_method: 'email'.

If you need to add Meta Pixel conversion tracking to phone links, email links, buttons, forms, or other WordPress interactions, contact Freshy. Our WordPress team can implement the event tracking and verify that the signals fire only when the intended user action occurs.