How to Use Google Tag Manager and Google Analytics to Track Mobile Phone Clicks (Updated 2024 – includes GA4)
If you have a website and you want to know how it’s performing, you should be tracking the types of conversions that are specific to your business and marketing goals. Doing so will help show if your efforts are producing a high return on investment. You need to know if your strategies are working or not in order to best invest your time and your money.
At PaperStreet we primarily track contact form completions and mobile phone number clicks. Have you ever wondered how many people view your website and click your phone number to call? If so, this tutorial will show you step-by-step exactly how to set this up from the very beginning.
Please do not be intimidated by the length of this post. Our tutorial goes into extreme detail so you don’t miss any steps. We’ve also provided screenshots to help you reference where to look.
For the purposes of this tutorial, Google Analytics will be referred to as “GA” and Google Tag Manager will be referred to as “GTM”.
Initial Setup with GTM
1. Login to Google Analytics to make sure Google Tag Manager is setup under the same account
2. Go to the URL https://tagmanager.google.com/
3. Click “Create Account” at the top right corner
4. Add your business name where it says “Account Name” then click “continue”
5. Add in your website where it says “Container name”
6. Select the appropriate container type. Since we are setting this up for websites, select “web” and then click “create”
7. Read and accept the GTM Terms of Service Agreement
7. Install the tracking codes appropriately within the suggested locations
Setup Variables, Tags and Triggers in GTM (for Universal Analytics)
1. On the Workspace tab, click on “Variables” on the left-hand side
2. Click on “Configure”
3. Scroll down to the “Clicks” section and select the checkbox for “Click URL” then exit
4. Now click on “Triggers” on the left-hand side and then click “New”
5. Name the “Untitled Trigger” to be “Phone Number Trigger”
6. Then click “Choose a trigger type to begin setup…”
7. Under the “Click” section choose “Just Links”
8. Check “Wait for Tags” and leave the default max wait time to be 2000
9. Check “Check Validation”
10. Where it says “Enable this trigger when all of these conditions are true” change it to be: Page URL matches RegEx .*
11. Where is says “This trigger fires on” click “Some Link Clicks” and change it to be: Click URL contains tel:
12. Then click “Save” at the top right corner
13. Now click on “Tags” on the left-hand side and then click “New”
14. Name the “Untitled Tag” to be “Phone Call Click”
15. Under “Tag Configuration” click on “Choose a tag type to begin setup…”
16. Select “Universal Analytics – Google Analytics” Make sure your website is using Universal Analytics. Look for either analytics.js (for Universal Analytics) or ga.js (for classic Analytics). If it says “ga.js” then you need to update the tracking code within GA so that your website is using Universal Analytics
17. Enter the Tracking ID. This can be found by viewing the source code of the website and finding the appropriate “UA-XXXXXXXXX” tracking code
18. For the “Track Type” select “Event”
19. Name the “Category” to be “Phone Call Click”
20. Fill in the “Action” field to be “{{Click URL}}”
21. Fill in the “Label” field to be “{{Page URL}}”
22. The purpose of this is to show you what phone number was clicked and the page URL it occurred on for more comprehensive metrics
23. Scroll down to “Choose a trigger to make this tag fire…”
24. Select the “Phone Number Trigger” that we previously setup then click “Save” at the top right
25. Once that is complete, we want to preview and debug our tag/trigger before we publish it.
Setup Variables, Tags and Triggers in GTM (for Google Analytics 4)
1. You will follow the same steps above for 1-15 but if you are running Google Analytics 4 on your website, you will select a different tag.
2. Select “Google Analytics: GA4 Event”
4. For the “Measurement ID” this would be the ID associated with your GA4 account. You can find this by going to Admin > Data Streams > Then click on your stream and you’ll see “Measurement ID”
5. Put “phone _call_click” for the Event Name
6. Click on “Event Parameters” and add 2 rows
7. Fill them out accordingly based on this image below
8. The purpose of this is to show you what phone number was clicked and the page URL it occurred on for more comprehensive metrics
9. Scroll down to “Choose a trigger to make this tag fire…”
10. Select the “Phone Number Trigger” that we previously setup then click “Save” at the top right
11. Once that is complete, we want to preview and debug our tag/trigger before we publish it.
Preview and Debug
1. Click back to the “Workspace” tab
2. Click “Preview” in the top right next to “Submit”
3. A pop up window will appear asking you to “Connect Tag Assistant to your site”
4. Enter your website’s URL and click “Connect”
4. Your website should load in a new window and there will be a “Tag Assistant” section in the bottom right corner
5. Now test by clicking on a linked phone number on your website, then go back to the previous Google Tag Manager tab
6. Under the Summary, you should see “Tags Fired” and “Phone Call Click” (related to Universal Analytics or GA4 Event depending on what you setup) should appear
7. If you are not seeing that then it’s possible that you overlooked a step in the tutorial
8. Once everything is working correctly you will want to then click “Submit” to make your tag go live
Universal Analytics Goal Setup
1. Now we need to log back into GA to set up this new GTM event to be counted as a conversion goal.
2. Within GA, click on “Admin”
3. Under the “View” column select “Goals”
4. Click on “+New Goal” to create a new goal
5. Within “Goal setup” select “Custom” at the bottom and click “continue”
6. Name the goal “Phone Number Click”
7. Under “Type” select “Event” and click “continue”
8. Within the “Category” field enter “Phone Call Click” to match the event category we setup in GTM
9. Leave all other fields blank and then click “save” and “done”
10. Now you have completely setup everything within GTM and GA
11. GTM will handle the actual event recording and then when GA records the event it will count it as a goal completion
Google Analytics 4 Goal Setup
1. Now we need to log back into GA4 to set up this new GTM event to be counted as a conversion goal.
2. Select “Configure” from the left hand menu
3. Click on “Conversions”
4. Click on “New conversion event”
5. For the “Name your event” field put phone_call_click (or whatever you used in the previous step 5)
6. Click “Save”
Further Learning
Are you interested in learning more about legal marketing? Head on over to our SEO Guidelines & Best Practices page. Our guide will teach you the do’s and don’ts for law firm SEO along with what we include in our SEO plans.
Questions or Feedback?
We would love to hear your feedback if this blog post has helped you. Please feel free to let us know in the comments below.
If you need any assistance setting up conversion goals for your website, we are here to help. Please feel free to contact us if you need assistance.
About Us
Did you know more than 200 clients have worked with PaperStreet for more than 10 years?