How To Track Mailto Link Clicks in Google Analytics
The code needs to be placed in the footer – before the closing </body> tag on all pages that you want to track. If you are using a WordPress website or blog, you can install a plugin which will insert the code on all your pages when you insert it once.
Simply insert the code below into your pages and Google Analytics will receive an event every time a link is clicked.
Note: Do Not copy the <code></code> tags, just the values inside them.
To view the events in Google Analytics, using the main menu navigate to Behaviour > Events > Overview.
Step #3 – Setup a Goal
Goals are a better way of understanding if your users are taking the desired actions on your site, for example if you want more users to click on your mailto links, you can setup a goal and identify which channels are bringing in the most clicks so that you can focus your efforts on optimising that channel.
In order to setup the goal, click on ADMIN or the Cog icon in the bottom left of the GA main menu. On the right hand side of the screen, under the ‘View’ column, click on Goals.
Step #4 – Setup a New Goal
Click on the +New Goal button and on the first step of your new Goal setup, select ‘Custom’ and click continue.
Give your goal a suitable name eg. Mailto Clicks and select ‘Event’ under goal type and click continue.
Label: email clicked
Leave the ‘Equals to’ parameters as they are and click save. You are now set and your mailto clicks will be recorded as goals in Google Analytics.
Thanks for reading! Leave a comment below if you would like any further help.