How do I use google analytics to track all the links (to external sites) that has been clicked on my website?

Hi all,

I have a list of links( to external urls )on my website, how do I track the traffic of my users clicking on any of those links, so I can see which links has the most clicks. For example

www.google.com 10 clicks
www.facebook.com 25 clicks

Is there a way to do it with google analytics or any other? Thank you all in advanced for your replies

If the Wix Location API’s to() function had provision to open the link in a new tab then you could use the Wix Window’s trackEvent() function to track link clicks.

If you are not opening the link in a new tab then you can do the above, otherwise you could perhaps use Google Tag Manager to track button clicks as Events on your Google Analytics.

Take a look at Measure School on YouTube: https://www.youtube.com/watch?v=0WdeCkFC0VY

1 Like

Thank you @Shan ! Let me have a look and give it a try!