How to track phone number and email clicks in WordPress
For a lot of local businesses, a tap on the phone number is the most valuable click on the site. Here's how to count it.
If you run a trades business, a salon, a clinic or any service where people ring you, a tap on your phone number is often worth more than a form submission. But most analytics setups don’t count it. The visitor leaves your site and goes to their phone app, and the visit just looks like someone who left.
The good news is that phone and email links are easy to spot reliably, because of how they’re built.
How phone and email links work
A clickable phone number is a normal link whose address starts with tel::
<a href="tel:+441234567890">01234 567890</a>
An email link starts with mailto::
<a href="mailto:hello@example.co.uk">hello@example.co.uk</a>
So you don’t need to add a class to every phone number on your site. You can match on how the link starts.
The selectors
| To count | CSS selector |
|---|---|
| Every phone number link | a[href^="tel:"] |
| Every email link | a[href^="mailto:"] |
| WhatsApp links | a[href*="wa.me"] |
| Only the phone number in your header | header a[href^="tel:"] |
^= means “starts with” and *= means “contains”.
Setting it up in WP Click Tracker
- Go to Click Tracker → Trackers → New tracker.
- Name it Phone calls.
- Choose Any CSS selector and enter
a[href^="tel:"]. - Save, then repeat with
a[href^="mailto:"]for Emails.
Every phone number on every page is now counted, including ones in the footer, on contact pages and in blog posts, and including numbers you add later.
Making the numbers useful
Once the data comes in, there are three things worth checking on the dashboard:
- Top pages: which pages make people pick up the phone. That’s often a service page rather than the contact page.
- Devices: phone taps come almost entirely from mobiles. If your mobile share is high but phone clicks are low, check the number is easy to find on a small screen.
- When people click: the day-by-hour grid shows when people try to ring. That’s useful for deciding when the phone needs answering, or when to put “We’re open now” on the site.
Is the number actually clickable?
If you’ve typed your number as plain text, phones may still detect it, but it isn’t a real link and won’t be counted. Make it a link. In the block editor, select the number, click the link button and enter tel:+441234567890 (international format, no spaces).