Mobile Website Tracking for Call and Message Link Buttons

track mobile website call and message clicksEver wish you could find out how many people click the “call now” or “send mssage” buttons on your mobile website?  Well, you can!  With Google Analytics event tracking, it’s simple.

Install Basic Analytics Tracking Code

First, make sure you have you analytics tracking code on all your pages, just before the </head> tag.  It looks like this (where “UA-XXXXXXXX-X” is your Analytics Property ID (find it in the Admin section of Analytics)):

<script type=”text/javascript”>

var _gaq = _gaq || [];
_gaq.push([‘_setAccount’, ‘UA-XXXXXXXX-1’]);

(function() {
var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘’;
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);


Add the Links You Wish to Track

Now, add links that, when clicked, trigger a phone call, email message or text message.  Here’s what they’ll look like:

  • Code to create a “call” button on a mobile site: <a href=”tel:1111111111″>Call 111.111.1111</a> anytime.
  • Code to create a “message” button on a mobile site: <a href=” from Mobile Site”>sending email</a>
  • Code to create an SMS (text) message button on a mobile site:  <a href=”sms:1111111111″>Contact us by text message</a>

 Set up Event Tracking.

<a href=”tel:1111111111″ onClick=”_gaq.push([‘_trackEvent’, ‘Buttons’, ‘Call’, ‘Call from contact page’]);”>Call 111.111.1111</a>anytime.

Where “Buttons” is your category (required), “Call” is your action (required) and “Call from contact page” is your optional label. There are other optional fields, but for the sake of simplicity, we’ll stop there.

View Analytics Reports

After a day or so, visit your Google Analytics dashboard. Go to Reporting>Content>Events. Make sure data is being collected properly.

Set Up Event Goals

  1. In Analytics, click on “Admin” and choose the site.
  2. Click on the “Goals” tab.
  3. Click “+Goal” to add a goal to one of the goal sets.
  4. Click “Active”
  5. Give your goal a name. We’ll make ours “Calls from mobile site”
  6. Choose goal type “Event”.
  7. Using the tracking code we set up above, we would select:
    1. Category that matches Buttons.
    2. Action that matches Call.
    3. Label that matches Call from contact page.
    4. Choose a value that corresponds to the value of the action taken.  We chose 50.

Test Your New Event Goals

Refresh your mobile site and click the call link.  Check analytics the next day and bask in your brilliance!

Related articles:

About the Author Alisa Meredith (311 Posts)

As co-owner and chief inbound marketing consultant at Scalable Social Media, Alisa Meredith spends a lot of time keeping up with online marketing trends for the benefit of our customers. Computers have been a passion of hers since her first T1-99, so inbound and social media marketing is a natural fit.


  1. Excellent article and information, Alisa! Google Analytics is a gold mine of resources and this is proof. Thank you for sharing this!

  2. Alisa Meredith

    So glad you enjoyed it, Robin! I figured I probably wasn’t the only one wondering how to do this 🙂

  3. Wow! Great information here! I have people asking me all the time how to turn their numbers into a call button on their mobile site!

    • Alisa Meredith

      Glad you liked it, Sarah! I love when I get to blog about this sort of thing, so I have a reference when I forget how I did it 🙂

  4. WOW WOW WEE WOW! This is so helpful and beyond the “norm” info that’s shared over and over, Earmarking this for sure!! Thank you!

    • Alisa Meredith

      {blushing}. So glad you liked it! I know it’s one I’ll have to come back to over and over!

Trackbacks for this post

  1. Mobile Websites - Why You Need One Now!Scalable Social Media – Internet Marketing Services
  2. Email Campaign Metrics - What Do Those Numbers Mean? | Scalable Social Media - Internet Marketing ServicesScalable Social Media – Internet Marketing Services

Leave a Comment

Awesome! You've decided to leave a comment. Please keep in mind that comments are moderated.

Your email address will not be published. Required fields are marked *

XHTML: You can use these tags: