Call Tracking using GTM

I’ve noticed onClick tracking can be troublesome and sometimes doesn’t work as expected on WordPress websites, so its never 100% accurate.

To get around these errors, I use Google Tag Manager to track call events.

How to Track phone calls using Google Tag Manager:

1. If you haven’t already, install GTM on your website.

trigger
trigger

2. Add a Trigger:

Settings:
Wait for tags 2000
Check Validation
Page URL Match RegEx .*
Click URL contains tel

choose built-in variable
choose built-in variable
click url
click url

2a. Adding Click URL variable:
Choose built-in variable

Select Click URL

tag
tag

3. Add a Tag

Settings:
Event
Contact
Click on Phone Number
{{Page URL}}
Value: Empty (unless you want to add a #)
False
{{Google Analytics}} or whatever you named that setting

calls
Calls

4. Add your pre-made trigger

preview
preview

5. Using Chrome (safari doesn’t work for me), click on Preview, and in a new tab open the website this tracking is for. After you click on the phone number, you should see that call tracking will display under “tags fired”

6. Publish your new tags + triggers in GTM.

analytics
analytics

7. Confirm this in Google Analytics. Remember to set the date range for today.

Isaac Adams-Hands

Full Stack Developer, Digital Marketer, and InfoSec enthusiast. He received his Bachelor’s Degree from the University of Western Sydney and his Business Diploma from Georgian College before joining various marketing positions in search portals, e-commerce, higher education, and addiction recovery services.

Follow @ twitter

Related posts

Add a Gravity Forms shortcode in WordPress (PHP)

To add a Gravity Form shortcode in the header, page, footer templates… pretty much anywhere in the theme, just add this code in your PHP file. Gravity Forms Code: You can also add the embed codes: Basic This snippet will display the form with an id of ‘1’; the title and description will not be… Read More

Create a WP staging website in 6 steps w/o a Plugin

This tutorial assumes you have some prior knowledge of PHPmyAdmin, adding Domains, and copying files. How-to Create a WP Staging Website: 1. First thing you need to do is to create a subdomain (subdomain.example.com). This allows your staging website to run in a separate folder, not affecting your main website files. 2.Now that you have… Read More