Lesson 10 of 15
Phone & Email Links
① Connect your GTM container
Paste your container ID to load it into this page. It only ever runs here.
Advanced: use a specific environment
Phone and email links are real conversions for a lot of businesses, and both are easy to catch with a Just Links trigger plus the Click URL variable. A tel: or mailto: link just has a Click URL that starts with that scheme.
You'll build two link triggers, one for each scheme, and confirm the right one fires as you click the contact links.
Goal
Track phone and email link clicks with Click URL starts-with conditions.
Build it in GTM
Enable the Click URL variable
- Go to Variables in the left sidebar and click Configure at the top of the Built-In Variables section.
- Switch on
Click URL. Atel:ormailto:link just has a Click URL that starts with that scheme.
Phone trigger
- Go to Triggers → New and choose Click → Just Links.
- Set it to Some Link Clicks so a condition appears.
- Set the condition to
Click URLstarts withtel:. - Name it
Link - Phoneand Save.
Email trigger
- Go to Triggers → New again and choose Click → Just Links, set to Some Link Clicks.
- Set the condition to
Click URLstarts withmailto:. - Name it
Link - Emailand Save.
Tag: Custom HTML - Test
- Go to Tags → New and choose Custom HTML with
<script></script>(fires but does nothing). Name itCustom HTML - Test. - Under Triggering, add both
Link - PhoneandLink - Email(or make one tag per trigger), then Save.
- Go to Tags → New and choose Custom HTML with
Debug in Tag Assistant
Copy this lesson's live URL and paste it into GTM Preview, that is the page Tag Assistant connects to. It has the clickable elements, so this page stays clean for reading.
- In your GTM, click Preview.
- Paste the live URL above and click Connect.
- Interact with the live page and watch your tag fire in Tag Assistant.
What you should expect to see
Link Click event. The phone link fires your phone tag and the email link fires your email tag, split by Click URL starting with tel: or mailto:.Verify your container
Built it? Export your container, Admin → Export Container, choose your workspace, then drop the JSON here to check it against this lesson.
Drop your container .json here
or browse · checked in your browser, nothing is uploaded