WordPress link tracking

How to Track Link Clicks in WordPress Content + Emails

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

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

  • MonsterInsights 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 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 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.

Do you use affiliate links to make money from 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

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, you’ll find the prefix in the Link Appearance settings here:

WordPress link tracking for ThirstyAffiliates

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

WordPress link tracking settings

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

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 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.

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

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, 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

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.

MonsterInsights has a great form tracking addon that makes it easy to track your form conversions.

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:

<a href="tel:202-555-0186">Click here to call us</a>

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

<a href="mailto:[email protected]">Click here to email us</a>

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

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.

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

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

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

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 that explains how to set that up.

Create Your WordPress Forms Now

Next Step: Track File Downloads in WordPress

Do you want more insight?

Ready to build your form? Get started today with the easiest WordPress form builder plugin. WPForms Pro works great with MonsterInsights and offers a 14-day money-back guarantee.

If this article helped you out, please follow us on Facebook and Twitter for more free WordPress tutorials and guides.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPForms is funded, why it matters, and how you can support us.

Claire Broadley

Claire is the Content Manager for the WPForms team. She has 13+ years' experience writing about WordPress and web hosting. Learn More

The Best WordPress Drag and Drop Form Builder Plugin

Easy, Fast, and Secure. Join over 6 million website owners who trust WPForms.

Please enable JavaScript in your browser to complete this form.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.