Tracking Link Clicks With Google Analytics

Monitor clicks to specific links on your website (outgoing, affiliate, ads, etc.) using Google Analytics GA4.
google analytics
Author

Stefan Schneider

Published

January 16, 2022

Google Analytics has been very helpful to monitor and analyze web traffic on my blog. It provides useful insights into how frequently which of my posts and pages are visited, where visitors are from, etc. As such it already keeps track of link clicks to and within pages of my blog.

However, it is often also interesting to track and monitor clicks to outgoing links, i.e., to external websites. This is useful, for example, to keep track of clicks to affiliate links on a website. Such outgoing link clicks are not tracked and shown by default in Google Analytics (the new/current GA4 version) but have to be configured manually.

It took me surprisingly long to figure out how to track clicks to specific (outgoing) links in Google Analytics, even though it is very simple. To spare others some time, here how it works (details and screenshots below):

Conversions

Conversions are events when visitors turn to paying customers. In Google Analytics, you can define yourself which link clicks (or other events) you count as conversions, e.g., affiliate link clicks. Google Analytics then provides extra reports on these conversion events.

To mark a new event as conversion, simply go to “Configure” in the Google Analytics dashboard, and select “Mark as conversion” in the right column for the specific event. Note, that newly created events are not yet listed there and it takes some days until they are listed.

If you do not want to wait, you can also directly mark your new event as conversion, even before it is included in the list of events. For that, click “Configure”, then “Conversions”, then the button “New conversion event”. Now, copy and paste the exact name of the new event into the field.

Google Analytics will start tracking your newly created events and monitor clicks to the defined links. After a few days, your Google Analytics dashboard should show the link clicks under “Reports > Engagement > Events”. If you defined conversion events, these should be visible under “Reports > Engagement > Conversions”.

I hope this was helpful. Let me know in the comments if anything remains unclear.

What Next

Related blog post: Adding Google Analytics to a Django App