In this episode, we’ll be looking at the ‘mailto:’ and ‘tel:’ links. We’ll also see how the emails and calls you receive originate from your website
How share links work
First of all, you need to understand how the ‘mailto:’ and ‘tel:’ links (which allow you to make a call or send an email) work.
The «mailto:» and «tel:» tags are «a» tags whose «href» attribute contains either an email address prefixed with ‘mailto:’ or a telephone number prefixed with ‘tel:’.

Using these prefixes, you can work out how many users click on these links.
Creating a tag
Below are the steps you need to follow to create a tag on GTM :
- Add a tag to the Tag Manager container. To do this: Create a «Google Analytics: Universal Analytics» tag of the «event» type «. In the »Category« field, enter »Engagement«; in »Action«, enter »Phone click« (to track clicks leading to calls); and in the label field, enter the function «{{Click URL}}» Don’t forget to enter the UA code in ‘Google Analytics Parameter’
Creating the trigger
You need to ensure that the tag is triggered only on certain links. To create the trigger, you must:
- Select a «click» trigger of the «Links only» type»
- Tick «Certain clicks on a link» and set the condition to «Click URL» and «starts with« and »tel:« or »mailto:’

Once you have completed these steps, your trigger should be configured. You can then save it and deploy your container with the changes.
Created by Vaniseo, your web agency in Marseille
Contact us
Our team will get back to you within 24 hours
Fancy finding out how much each channel brings in?
Google Analytics 4, conversions, dashboards: we make your figures easy to understand.
