### [How to Track Link Clicks in WordPress Content + Emails](https://wpforms.com/how-to-wordpress-link-tracking/)

**Published:** September 23, 2020
**Author:** Claire Broadley

**Excerpt:** Do you want to see what people click in WordPress? 

This tutorial shows you how to track clicks on affiliate links, outbound links, emails, and more.

**Content:**

Do you want to set up WordPress link tracking on your site?

Tracking links helps you to see the links your visitors are clicking most often.

In this tutorial, we’ll look at the easiest way to track 4 different types of links:

[Create Your WordPress Forms Now](https://wpforms.com/pricing/ "Create Your WordPress Forms Now")

To track links in WordPress, you’ll need to install a plugin. We’re going to use 2 different plugins in this guide:

- [MonsterInsights](https://www.monsterinsights.com/) is the best analytics plugin for WordPress. It lets you track your visitor activity across your website and makes it really easy to see the most popular links.
- [WP Mail SMTP](https://wpmailsmtp.com/) is the best SMTP plugin. As well as fixing your emails, it’ll also track the links in them so you can see what people are clicking on.

We’re going to show you how to get started with [MonsterInsights](https://www.monsterinsights.com/) first.

Be sure to install and configure MonsterInsights and WP Mail SMTP before reading further. Note that you’ll need the Pro versions to follow along.

### 1. Affiliate Links

Do you use affiliate links to [make money from blogging](https://wpforms.com/make-money-blogging/)?

It’s important to know which affiliate links on your website are being clicked, and which ones aren’t getting as much traffic.

When you have this information, you can quickly see the most popular links and improve the performance of the less popular ones.

![Tracking affiliate links in WordPress with MonsterInsights](https://wpforms.com/wp-content/uploads/2020/09/affiliate-link-tracking-wordpress-monsterinsights.png)

Let’s set this up.

First, check the link prefix (or ‘path’) you’re using for your affiliate plugin or link shortener. For example, if you’re using [ThirstyAffiliates](https://wpforms.com/refer/thirstyaffiliates/ "ThirstyAffiliates"), you’ll find the prefix in the **Link Appearance** settings here:

![WordPress link tracking for ThirstyAffiliates](https://wpforms.com/wp-content/uploads/2020/09/wordpress-link-tracking-thirstyaffiliates.png)

Now, you’ll want to head to the **Insights** area of your WordPress dashboard. Click **Settings » Publisher**.

![WordPress link tracking settings](https://wpforms.com/wp-content/uploads/2020/09/wordpress-link-tracking-tabs.png)

MonsterInsights lists all of the paths you’re tracking here. Make sure that they match the path in your affiliate plugin. You can remove the ones you don’t need by clicking the red X icon:

![WordPress link tracking settings](https://wpforms.com/wp-content/uploads/2020/09/wordpress-link-tracking-prefix.png)

Great! Now that your path matches the prefix in your affiliate plugin, MonsterInsights will report the number of clicks these links get in the **Publishers** report.

You could also use [Pretty Links](https://wpforms.com/refer/prettylinkpro/ "PrettyLinkPro") to cloak your affiliate links and track them the exact same way. If you’d like more details, we reviewed Pretty Links in our guide to the [best free plugins for WordPress](https://wpforms.com/best-free-wordpress-plugins-for-your-website/).

Next up, let’s find out how to track the links that leave your site.

### 2. Outbound Links

With MonsterInsights, you can instantly see the links people are clicking to leave your site.

This is a great way to check which links your visitors find helpful. You can also use this report to check that you aren’t losing visitors on important [landing pages](https://wpforms.com/how-to-create-a-dedicated-form-landing-page-in-wordpress/ "How to Create a Landing Page in WordPress (With a Form)"), which could impact conversions.

Tracking outbound links is even easier than tracking affiliate links. There are no settings to check at all.

To see the data, you’ll want to look at the **Publishers** report in MonsterInsights. The **Top Outbound Links** report shows you the links that are clicked most frequently.

![Tracking outbound links in WordPress with MonsterInsights](https://wpforms.com/wp-content/uploads/2020/09/outbound-link-tracking-monster-insights-wordpress.png)

You can click the **View All Outbound Links Report** button to see more details in Google Analytics.

Now we can move on and track the links people use to get in touch with you.

### 3. Tel and Mailto Links

MonsterInsights has a great [form tracking addon](https://www.monsterinsights.com/addon/forms/) that makes it easy to [track your form conversions](https://wpforms.com/how-to-track-wordpress-form-conversions-step-by-step/ "How to Track WordPress Form Conversions (Step by Step)").

But not all of your visitors will get in touch using a form. That’s why it’s important to track links for your phone numbers and email addresses as well.

In your website, links to your telephone number start with `tel:` and typically look like this:

`Click here to call us`

And links to email addresses start with `mailto:` and look like this:

`Click here to email us`

Here’s the neat thing: MonsterInsights tracks both of these automatically.

You’ll find the details in the **Event Category** view in Google Analytics:

![Tel and mailto link tracking](https://wpforms.com/wp-content/uploads/2020/09/wordpress-link-tracking-ganalytics-1.png)

And when you click on any link here, you’ll see the content of the link. This lets you easily track `tel` and `mailto` links for different phone numbers and email addresses on your website.

### 4. Links in WordPress Emails

Now it’s time to switch over to WP Mail SMTP.

WP Mail SMTP replaces links in emails with a unique, trackable URL. This allows the plugin to detect the click, and it won’t interfere with the functionality of your website.

The easiest way to enable link tracking is right here in the Setup Wizard:

![Configuring email log settings in the WP Mail SMTP Setup Wizard](https://wpmailsmtp.com/wp-content/uploads/2022/10/setup-wizard-email-log-settings.png)

Now send a test email and click on the link to register some activity.

When you next head to **WP Mail SMTP » Email Log**, you’ll see click data being recorded. If you turned on tracking for email opens, it’ll appear next to it.

![Link click tracking data for WordPress emails](https://wpforms.com/wp-content/uploads/2020/09/open-click-wordpress-email.png)

You can also open a email log in its own window to see the email tracking information on the right-hand side.

![Link click tracking data for WordPress emails in the email log entry](https://wpforms.com/wp-content/uploads/2020/09/open-click-wordpress-email-log.png)

And that’s it! Now you have MonsterInsights and WP Mail SMTP set up, you can easily track links on your site in different ways.

Final hint: If you want to track our call-to-action buttons, we have a guide on [tracking custom CTA buttons in WordPress](https://wpforms.com/how-to-track-button-clicks-wordpress/) that explains how to set that up.

[Create Your WordPress Forms Now](https://wpforms.com/pricing/ "Create Your WordPress Forms Now")

### Next Step: Track File Downloads in WordPress

Do you want more insight?

- Read this article to learn [how to track WPForms file downloads and improve your lead magnets](https://wpforms.com/how-to-track-wpforms-file-downloads-to-improve-lead-magnets/). It’ll help you see which ebooks, media files, and other lead magnets are generating the most conversions.
- You can also [use Google Analytics to track form submissions](https://wpforms.com/how-to-use-google-analytics-to-track-form-submissions-in-wordpress/).
- And you can [track form submissions with a Facebook Pixel](https://wpforms.com/track-form-submissions-facebook-pixel/).

Ready to build your form? Get started today with the easiest WordPress form builder plugin. [WPForms Pro](https://wpforms.com/pricing) works great with MonsterInsights and offers a 14-day money-back guarantee.

If this article helped you out, please follow us on [Facebook](https://facebook.com/wpforms) and [Twitter](https://twitter.com/easywpforms) for more free WordPress tutorials and guides.

**Categories:** WordPress Tutorials

**Tags:** monsterinsights, wordpress

---

