How to add Google analytics to link tags

I have this site done in WordPress Visual composer and the site has Google Analytics. However, I would like to specifically add analytics to specific links of the header so that I can track how many clicks were on the same links. The links are contact number and the email.

Here are the links I want to add:

<a href="tel:0110392630" target="_blank">011 039 2630</a>  |  <a href="tel:0720660989" target="_blank">072 066 0989</a>
<a href="mailto:info@taxleaders.net">info@taxleaders.net</a>

How can add analytics to those links using javascript/jquery?

Hope you can help.

Read more here: How to add Google analytics to link tags

Leave a Reply

Your email address will not be published. Required fields are marked *