WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
  • Deals
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» WordPress Plugins» How to Track Outbound Links in WordPress

How to Track Outbound Links in WordPress

Last updated on June 1st, 2017 by Editorial Staff
316 Shares
Share
Tweet
Share
Special WordPress Hosting offer for WPBeginner Readers
How to Track Outbound Links in WordPress

Do you want to track outbound links in WordPress? Outbound links are the links that take users away from your website. These could be links to affiliate products, social networks, or simply other websites that you have linked to from your website. In this article, we will show you how to easily track outbound links in WordPress to see which outbound links get the most clicks.

How to Track Outbound Links in WordPress

Why Track Outbound Links in WordPress?

After you build your website, you need to learn how users interact with your website, so you can grow it. The best way to do this is by using Google Analytics.

It allows you to see where your users are coming from, what pages they are viewing, and how much time they are spending on your website. This information helps you adjust your strategy and improve your website accordingly.

Similarly, learning about outbound or external links can help you understand which outgoing links are clicked more often. If you recommend affiliate products, then tracking outgoing links help you learn which products perform better with your audience.

Having said that, let’s take a look at how to easily track outbound links in WordPress.

Tracking All Outbound Links in Google Analytics

First, you will need to install and activate the MonsterInsights plugin. There is a free version as well which you can use. For more details, see our step by step guide on how to install a WordPress plugin.

MonsterInsights is the most popular Google Analytics plugin for WordPress. It allows you to properly connect your website with Google Analytics.

For complete setup instructions, see our step by step guide on how to install Google Analytics in WordPress.

Upon activation, you need to visit Insights » Settings page in your WordPress admin area and click on the ‘Tracking’ tab.

Enabling outbound link tracking using MonsterInsights

Under the ‘Engagement’ section, you will see ‘Track outbound clicks and download links?’ option. You want to select ‘Using Javascript’ option and then click on the save settings button.

That’s all, you have enabled outbound link tracking on your WordPress site.

Tracking Internal Affiliate Links as Outbound Links

Many WordPress site owners use affiliate marketing plugins to manage and cloak affiliate links. This allows them to use pretty URLs like this:

http://example.com/refer/productname/

By default, Google Analytics doesn’t track these URLs as outbound links, so they will not appear under your outgoing-link reports.

MonsterInsights allows you to easily fix this.

Head over to Insights » Settings page and then click on the ‘Tracking’ tab. The tracking page is divided into different sections. Click on the ‘Affiliate Links’ section to continue.

Track affiliate links

Now you need to provide the path that you use for your affiliate links. This is the prefix added by your link cloaking or affiliate link manager plugin.

After that you need to provide a label for those links. This label will be added to your Google Analytics report and will help you identify those links in your reports.

Don’t forget to click on the save changes button to store your settings.

Viewing Outbound Link Reports in Google Analytics

If you have just enabled outbound link tracking on your WordPress site, then allow Google Analytics at least 24 hours to collect the data.

After that you can login to your Google Analytics dashboard and click on Behavior » Events » Top Events page.

You will see your outbound links listed as ‘outbound-link’ event category and your affiliate links will be listed with the label you added in plugin settings.

Outbound link event category in Google Analytics

Clicking on it will show you the URLs users clicked on your website.

Outbound link URLs

You can also view outbound link activity in real time. Inside your Google Analytics dashboard, simply go to the Real-time » Events page.

Viewing outbound link reports in real time

You will see your outbound link, and your outbound affiliate links reported as events.

We hope this article helped you learn how to track outbound links in WordPress. You may also want to see our ultimate step by step WordPress SEO guide for beginners.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

316 Shares
Share
Tweet
Share
Popular on WPBeginner Right Now!
  • Why Build Your Email List Today

    Revealed: Why Building Your Email List is so Important Today!

  • Step by Step Guide: How to Start a Podcast with WordPress

    How to Start Your Own Podcast (Step by Step)

  • How to Properly Move Your Blog from WordPress.com to WordPress.org

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

The Ultimate WordPress Toolkit

3 Comments

Leave a Reply
  1. S Adam says:
    Mar 27, 2018 at 10:58 pm

    mmmmmmm close but :), i have been searching for a way to append all outbound links eg “&mynewstring=pleasehelp”

    I can not find any info on how you would do this in WP or find a plugin that will do it.

    Any ideas, i looked at those links posted but they wont help.

    Reply
  2. Patrick says:
    Aug 29, 2017 at 10:02 am

    Thank you for this tutorial. I was able to easily track my links in GA. I ran into one problem though:

    The number of clicks on my links in GA is less than what my plugin (pretty links) shows it to be. Around 20% less.

    Do you have any idea how that can be or what might be the reason?

    Thanks,
    Patrick

    Reply
  3. hiren says:
    Jun 1, 2017 at 11:24 am

    hi very good article.
    thanks for sharing. keep up the good work.

    Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 600,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
OptinMonster
OptinMonster
Convert website visitors into email subscribers. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 25 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2018 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2018)
    • Which is the Best WordPress Slider? Performance + Quality Compared
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • 5 Best VPN Services for WordPress Users (Compared)
    • HostGator Review - An Honest Look at Speed & Uptime (2018)
    • SiteGround Reviews from 1032 Users & Our Experts (2018)
    • Bluehost Review from Real Users + Performance Stats (2018)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Start a Podcast with WordPress (Step by Step)
    • How to Choose the Best Domain Name (8 Tips and Tools)
    • How to Setup a Professional Email Address with Google Apps and Gmail
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2018 – Step by Step Guide
Deals & Coupons (view all)
Themify
Themify Coupon
Get 20% off on Themify theme's beautiful WordPress themes. Responsive designs with tons of options.
Godaddy Pro
Godaddy WordPress Hosting Coupon
Get Godaddy Managed WordPress Hosting for $1 per month and a Free Domain.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • List25
  • Awesome Motive
  •  

Copyright © 2009 - 2018 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

WordPress hosting by HostGator | WordPress CDN by MaxCDN | WordPress Security by Sucuri.