To add a click-to-call button, use a normal HTML link whose address starts with tel: followed by your phone number in international format. When a visitor taps it on a phone, the dialer opens with your number filled in. Copy the line below, swap in your own number and wording, and paste it into any page.

<a href="tel:+16177787312">Call us at (617) 778-7312</a>

That one line is the whole feature. The rest of this guide covers where to paste it in WordPress, Wix, Shopify and Squarespace, how to style it as a button, how to show it only on mobile, and how to track the calls it produces.

What is a click-to-call button and how does it work?

A click-to-call button is a clickable element on a website (or app) that allows visitors to instantly initiate a phone call with just one tap or click. No more copying and dialing a phone number like it’s 2007. Users can simply press the button, and their device (usually a smartphone) will open the dialer with the number pre-filled and ready to call.

You’ll usually find them on contact pages, product pages - anywhere you actually want people to get in touch. They’re especially helpful for mobile users, but they work on desktops too (if the user has calling software like Skype or FaceTime installed).

How does click-to-call work and why is it important?

It’s just a regular old HTML link with a tel: protocol to make it dial. When a user clicks the link, their device automatically opens its default phone app with the number pre-filled, ready to call. On smartphones, the call can be initiated immediately, while on desktops, it may prompt calling apps like Skype, Zoom, or FaceTime (if installed).

How it works step-by-step

  1. User clicks the button:
    The visitor taps or clicks the click-to-call button on your website.

  2. Device triggers the phone app:

    • On mobile devices: The phone app opens with the number ready to dial.
    • On desktops: The browser checks for any installed calling software and prompts the user to choose one.
  3. User confirms the call:
    The user hits “Call” to start the conversation with your business.

  4. You receive the call:
    Just like a regular phone call, your phone rings, and you can speak directly with the customer.

Example of the HTML code behind it

<a href="tel:+11234567890">Call Us Now</a>

Why use a click-to-call button?

  • Convenience: Makes it super easy for visitors to contact you.
  • Improved user experience: Reduces friction, which can lead to more calls and conversions.
  • Mobile-friendly: With more people browsing on their phones, this is a must-have.
  • Boosts customer engagement: Quick access to your team can improve customer satisfaction and trust.

In a nutshell, click-to-call buttons bridge the gap between online browsing and real-time conversations, making it easier for customers to reach out when they’re ready to talk.

How to add a click-to-call button on your website {step-by-step}

You don’t need to be a developer or tech-savvy to pull this one off. It’s easier than making your morning coffee!
Here are the steps:

Step 1: Access your HTML editor

WordPress

Open the WordPress editor and click on the “+” button. Type HTML and click on the Custom HTML option.

How to add custom HTML in WordPress

Type the next steps in the HTML container.

Wix

  1. Go to Blog in your site’s dashboard.
  2. Click Edit on the relevant blog post, or Create New Post to write a new one.
  3. Click Add plus button on the left side.
  4. Click HTML code.

How to add custom HTML in WIX

Type the next steps in the HTML container.

Shopify

  1. In Shopify, create a custom content block.
  2. Inside the block editor, click the Add content+ button, search for Custom HTML, and then click to insert a Custom HTML block.

Squarespace

To add a code block:

  1. Edit a page or post, click Add Block or an insert point, then click Code. For help, visit Adding content with blocks.
  2. Open the block editor by clicking the pencil icon on the block.
  3. Add your code in the text field.
  4. If you’re using the code block to display code snippets, switch the Display Source toggle on.

Simply paste this code into the page:

<a href=""></a> 

Step 3: Enter your company’s phone number.

Enter the number in full international format: a plus sign, the country code, then the number, with no spaces or brackets. For a US number that means starting with +1. This way the link works for visitors calling from another country too. Hyphens are allowed as separators, so tel:+1-617-778-7312 dials the same number, but the plain form is the safest.

<a href="+16177787312"></a> 

Step 4: Add tel

<a href="tel:+16177787312"></a> 

Step 5: Add a call to action message

The text between the tags is what visitors see, so write the number there in the format people are used to reading.

<a href="tel:+16177787312">Call us at (617) 778-7312</a> 

It should show like this:

Call us at (617) 778-7312

That’s it! Your click-to-call link is now ready and customers can click on it to call you!
In case you want to also track clicks on this click-to-call links, check out this guide:
How to track phone calls from your website

A click is not a call. Not every tap on the button ends in a real conversation, so click counts overstate your phone leads. See how to track phone leads at visitor level, with hands-on videos.

A plain link works, but a button is easier to tap. Add a class to the link and a few lines of CSS:

<a class="call-button" href="tel:+16177787312">Call us now</a>

<style>
  .call-button {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 8px;
    background: #1a73e8;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
  }
</style>

Keep the button at least 44 pixels tall so it is easy to tap with a thumb, and keep the wording specific: “Call us now” or “Call for a free quote” tells people what happens next.

Add hover and focus states

A button should react when someone points at it or reaches it with the keyboard. Add these rules under the button’s CSS, and change the colors to match your brand:

.call-button:hover {
  background: #1558b0;
}
.call-button:focus-visible {
  outline: 3px solid #9ec1f7;
  outline-offset: 2px;
}

Use a link (<a>), styled to look like a button. A tel: address belongs in a link’s href, and browsers, screen readers and phones all know what to do with it. The HTML <button> element is for actions on the page, such as sending a form, and it cannot start a call without extra JavaScript.

How to show the call button only on mobile

Most desktop visitors cannot place a call from their browser, so many sites show the button on phones and the plain number on larger screens. This CSS hides the button above a phone-sized width:

<style>
  @media (min-width: 768px) {
    .call-button { display: none; }
  }
</style>

How to add a sticky call button

A sticky button stays at the bottom of the screen while the visitor scrolls, which suits service businesses where the call is the main goal. Add a second class to the same link:

<a class="call-button call-sticky" href="tel:+16177787312">Call us now</a>

<style>
  .call-sticky {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
  }
</style>

Check that it does not cover a cookie banner, a chat widget or the page’s own buttons.

How to track calls from a click-to-call button

A click on the button is not a call. Some visitors tap by accident, some hang up before anyone answers, and people on desktop read the number and dial it from their phone without clicking anything. There are two levels of tracking:

What you track How What it tells you
Clicks on the button An event in Google Analytics 4 that fires on tel: link clicks How many people tapped the button, and on which page
Actual calls A tracking number shown in place of your own, swapped per visitor with dynamic number insertion Who called, which source and page sent them, how long they spoke and what was said

For click tracking, follow our guide to the 4 ways to track phone calls from a website. For calls, call tracking software replaces the number in both the link and its visible text, so the button keeps working and every call arrives with its source. That is what call attribution is built on.

Frequently asked questions about click-to-call buttons

What is the HTML code for a click-to-call button?

Use a link with the tel: scheme, for example <a href="tel:+16177787312">Call us</a>. The number goes after tel: in international format, and the text between the tags is what visitors see.

Should I include the country code in a tel: link?

Yes. Write the number with a plus sign and the country code, such as +1 for the United States, and leave out spaces, dashes and brackets. The link then works for callers in any country.

Does a click-to-call button work on desktop?

It depends on the visitor’s computer. If a calling app such as FaceTime, Skype or a softphone is installed, the browser offers to open it. If not, nothing happens, which is why many sites show the button only on mobile and the plain number on desktop.

How do I add a click-to-call button in WordPress?

Add a Custom HTML block to the page and paste the tel: link into it. You can also select any text or button block, add a link and type tel: followed by your number as the address.

How do I track clicks on a click-to-call button?

Set up an event in Google Analytics 4 that fires when a visitor clicks a link starting with tel:. That counts taps, not calls. To see the calls themselves, with their source and outcome, use call tracking software with a tracking number.

Should a call button be a link or a button element?

A link. Put the tel: address in the href of an a tag and style it to look like a button. The button element is for actions on the page and cannot start a call without JavaScript.

Can I use hyphens in a tel link?

Yes. Hyphens are allowed as separators, so tel:+1-617-778-7312 works. Spaces and brackets are not, so the plain form with only a plus sign and digits is the safest.

Takeaway

Adding a click-to-call button to your website is a total no-brainer if you want to make it easier for people to reach you.

It removes the friction, so more people reach out, faster. On a phone it opens the dialer with one tap. On a desktop it opens a calling app if the visitor has one, which is why many sites show the button on mobile only.

The best part? It’s super quick and easy to set up, and it won’t cost you a fortune. Want to take it a step further? Add call tracking, and you’ll know exactly where your calls are coming from. Pretty handy, right?

Bottom line? This is one of the easiest wins you’ll ever implement, and your future customers will thank you for it!