Google Event tracking for phone number

I am running a WordPress site, which is verified with Google Webmaster Tools and has a GA code associated with Google Analytics.

I’ve done some research on the web to add an Event tracker for clickable phone numbers in mobile, so that I can measure how many people actually use the phone number on the homepage of the website we developed for a client: posanarestaurant.com.

Read More

Most of the blogs that offered up how to do this simply gave me this code to add to my site below:

<a href="tel:18285053969" onclick="_gaq.push(['_trackEvent','Phone Call Tracking','Click/Touch','Home Banner']);">828.505.3969</a>

They said that Google would start to pick up tracking in 24 to 48-hours, but I haven’t seen anything in GA yet.

I know that there is some javascript that might go in the head of the site, but one of the plugins I’m using already adds that javascript, so I don’t want to duplicate having two exact same javascript references in the head of the site.

What am I doing wrong?

Related posts

Leave a Reply

1 comment

  1. The syntax for UA event tracking is

    ga('send', 'event', 'Phone Call Tracking', 'Click/Touch', 'Home Banner')
    

    So your complete code would be

    <a href="tel:18285053969" onclick="ga('send', 'event', 'Phone Call Tracking', 'Click/Touch', 'Home Banner');">828.505.3969</a>
    

    Once you have that set, and if you are not filtering out your own views, you can check for the event hit in Real-Time reports (so you don’t have to wait 24 hours to see if it’s working).