{"id":99071,"date":"2020-01-28T10:18:15","date_gmt":"2020-01-28T16:18:15","guid":{"rendered":"https:\/\/wpengine.com\/?post_type=resource&#038;p=99071"},"modified":"2024-02-08T12:06:22","modified_gmt":"2024-02-08T18:06:22","slug":"track-outbound-links","status":"publish","type":"resource","link":"https:\/\/wpengine.com\/case-studies\/resources\/track-outbound-links\/","title":{"rendered":"Outbound Link Tracking in WordPress"},"content":{"rendered":"\n<p>Using links in your content to identify key resources or make your content richer with extra information is a pretty common practice. Keeping tabs on those links and how many times your users click on them can also yield valuable marketing information.<\/p>\n\n\n\n<p>Fortunately, there are several resources available for tracking outbound links in WordPress. Once you know what links visitors interact with and how, you\u2019ll be better positioned to improve your content and increase engagement and conversions.&nbsp;<\/p>\n\n\n\n<p>In this article, we\u2019ll explore the benefits of tracking your outbound links. We\u2019ll also walk through the steps for setting up link tracking on your website. Let\u2019s get tracking!&nbsp;<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Why Track Outbound Links?<\/h2>\n\n\n\n<p>Tracking outbound links can give you access to a number of valuable metrics about your website. Additionally, it can tell you a lot about how your typical users behave. For example, you can analyze what affiliate links are clicked on the most, and discover what products or content outside of your website are resonating most with customers.&nbsp;<\/p>\n\n\n\n<p>Another reason to track your links is to find out how your visitors are using their time on your website. Then, you can use that data to make adjustments to your content strategy if needed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Track Outbound Links in WordPress<\/h2>\n\n\n\n<p>The most accessible way to track your outbound links on a WordPress website is to use <a href=\"https:\/\/analytics.google.com\/analytics\/web\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google Analytics<\/a>. Fortunately, there are also some helpful plugins available that make it easier to tie your analytics account directly into your WordPress dashboard. With that in mind, let\u2019s take a look at how to get started using both Google Analytics and a plugin.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Create a Google Analytics Account<\/h3>\n\n\n\n<p>Before you start, it\u2019s a good idea to familiarize yourself with Google\u2019s data and marketing products. Many of the features and tools that can help you be successful with outbound link tracking are coordinated through Google. With that in mind, in order to get started, you\u2019ll need a <a href=\"https:\/\/support.google.com\/analytics\/answer\/1008015?hl=en\" target=\"_blank\" rel=\"noreferrer noopener\">Google Analytics account<\/a>:\u00a0<\/p>\n\n\n\n<p>Once you\u2019ve set up your account and <a href=\"https:\/\/support.google.com\/analytics\/answer\/1042508\" target=\"_blank\" rel=\"noreferrer noopener\">added a property<\/a> to it for tracking, you\u2019ll need to make sure the tracking code is placed on your website. This is typically done by placing the tracking code in the <a href=\"https:\/\/wpengine.com\/resources\/wordpress-header-and-footer-code\/\" target=\"_blank\" rel=\"noreferrer noopener\">header of your site<\/a>.<\/p>\n\n\n\n<p>Alternatively, you can use a plugin like <a href=\"https:\/\/wordpress.org\/plugins\/google-analytics-for-wordpress\/\" target=\"_blank\" rel=\"noreferrer noopener\">MonsterInsights<\/a>:<\/p>\n\n\n\n<p>Using MonsterInsights or another plugin to place your Google tracking code is a great option if you plan on changing your theme in the future. This is because you\u2019ll use the plugin\u2019s settings panel to place the tracking code in your theme\u2019s header. If you change your theme later on, your tracking code will transfer to your new theme files through the plugin automatically.&nbsp;&nbsp;<\/p>\n\n\n\n<p>If you place the code manually, on the other hand, you\u2019ll just need to remember to add it to your theme files if you activate a new one in the future.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Enable Outbound Link Tracking<\/h3>\n\n\n\n<p>There are essentially two different ways to use Google Analytics to track your outbound link activity. You can use <a href=\"https:\/\/tagmanager.google.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google Tag Manager<\/a> or set up <a href=\"https:\/\/support.google.com\/analytics\/answer\/1033068?hl=en\" target=\"_blank\" rel=\"noreferrer noopener\">Google Analytics Events<\/a>. To do either, you\u2019ll first want to make sure you understand how Google Analytics works, and spend some time with <a href=\"https:\/\/developers.google.com\/analytics\" target=\"_blank\" rel=\"noreferrer noopener\">Google\u2019s Developer documentation<\/a>.\u00a0<\/p>\n\n\n\n<p>Essentially, Google Events tracks when a user interacts with content on your website. If you are configuring it manually, you\u2019ll be using several <a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/analyticsjs\/events#measure_outbound_links_and_forms\" target=\"_blank\" rel=\"noreferrer noopener\">different code snippets<\/a>. These are used to set the parameters of what interactions will be reported in your analytics dashboard.\u00a0<\/p>\n\n\n\n<p>You can use this approach for capturing user interaction that is not typically reported otherwise. This includes valuable data about how users interact with any forms you have on your website, for example.&nbsp;<\/p>\n\n\n\n<p>Now, let\u2019s take a look at <a href=\"https:\/\/tagmanager.google.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google Tag Manager<\/a>:\u00a0<\/p>\n\n\n\n<p>Tags are part of <a href=\"https:\/\/marketingplatform.google.com\/about\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google&#8217;s Marketing Platform<\/a>. For free, you can integrate its tagging technology in with your other Google tools, like Analytics or Ads. Tags enable you to set triggers, so that a tag will fire and send data back to your Analytics dashboard based on specific user interactions.\u00a0<\/p>\n\n\n\n<p>This might sound similar to how Events work, but the Tag Manager creates a slightly bigger data umbrella and offers many integrations with other tools. For example, you can create custom Events as triggers for more targeted reporting. You\u2019ll need to <a href=\"https:\/\/support.google.com\/tagmanager\/answer\/6107124?hl=en\" target=\"_blank\" rel=\"noreferrer noopener\">connect your Tag Manager<\/a> account to your Analytics account to enable the corresponding reports, however.\u00a0<\/p>\n\n\n\n<p>If this sounds too labor-intensive for your needs, don\u2019t worry! You can always rely on the MonsterInsights plugin to help you out. By default, the plugin <a href=\"https:\/\/www.monsterinsights.com\/docs\/how-to-set-up-outbound-link-tracking\/\" target=\"_blank\" rel=\"noreferrer noopener\">tracks outbound links<\/a> for you. However, if you want to enable tracking for affiliate links, you can do that by going to <em>Insights<\/em> &gt; <em>Settings<\/em> &gt; <em>Publisher<\/em>:\u00a0<\/p>\n\n\n\n<p>If you use internal affiliate links, they likely are not counted as outbound links. This is especially true if you\u2019re using a plugin or code to <a href=\"https:\/\/yoast.com\/cloak-affiliate-links\/\" target=\"_blank\" rel=\"noreferrer noopener\">cloak your links<\/a>. By using the <em>Affiliate Links<\/em> feature in the plugin settings, you\u2019ll ensure that clicks on affiliate links will be reported more accurately.\u00a0<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Track Performance<\/h3>\n\n\n\n<p>If you chose to set up Google Tag Manager, you\u2019ll be able to track your outbound links by going to your Google Analytics account and navigating to <em>Behavior<\/em> &gt; <em>Events<\/em> &gt; <em>Pages<\/em>:<\/p>\n\n\n\n<p>You can click on any of the listed pages to view all the events that were captured on that page. If there was outbound link activity, you\u2019ll be able to review it for that page. Additionally, any custom event information you have set up will be reported.&nbsp;<\/p>\n\n\n\n<p>If you\u2019re using MonsterInsights exclusively, you\u2019ll find the relevant reports under <em>Insights<\/em> &gt; <em>Reports<\/em> &gt; <em>Publishers<\/em>. However, it\u2019s important to note that in order to access the reports for outbound link tracking, you\u2019ll need to <a href=\"https:\/\/www.monsterinsights.com\/pricing\/\" target=\"_blank\" rel=\"noreferrer noopener\">upgrade to a MonsterInsights Plus account<\/a> or greater.\u00a0<\/p>\n\n\n\n<p>With that being said, if you\u2019re using the free version of MonsterInsights, you\u2019ll still be able to access the outbound link data back in your Google Analytics account. In fact, the steps outlined above to locate the appropriate reports will still work.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Outbound Links \u2013 Conclusion<\/h2>\n\n\n\n<p>Keeping track of outbound link activity can help you fine-tune many elements of your website. This includes targeting specific events or user interactions to gain a better understanding of where and why users spend time on your website.&nbsp;<\/p>\n\n\n\n<p>Additionally, using some of the tools we\u2019ve outlined can help you capture data you may have been missing. Specifically, we\u2019re talking about internal affiliate links that are usually not reported as outbound links, and can be a valuable source of market information.<\/p>\n\n\n\n<p>Ultimately, it\u2019s important to understand the relationship between the features and tools we\u2019ve mentioned. You can think of your Google Analytics account as a home base for all your tracking needs. Then you can branch out from there.&nbsp;<\/p>\n\n\n\n<p>For example, you might integrate Tag Manager and Events functionality for more targeted data collection options. What\u2019s more, you can also reap the benefits of a plugin like MonsterInsights, without disrupting the base functionality of Google Analytics.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Build a Better Experience With WP Engine<\/h2>\n\n\n\n<p>Engaging in continuous website improvements can often be easier when you incorporate the necessary data. Tracking your outbound links is one way to gain valuable insight into your WordPress site and user behavior.<\/p>\n\n\n\n<p>We also understand how essential having the best <a href=\"https:\/\/developer.wordpress.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">developer resources<\/a> can be to this process. Here at WP Engine, we offer dynamic <a href=\"https:\/\/wpengine.com\/wordpress-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress hosting<\/a> solutions and features, so you can build the best user experiences. Check out our <a href=\"https:\/\/wpengine.com\/plans\/\" target=\"_blank\" rel=\"noreferrer noopener\">hosting plans<\/a> today!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using links in your content to identify key resources or make your content richer with extra information is a pretty common practice. Keeping tabs on those links and how many times your users click on them can also yield valuable marketing information. Fortunately, there are several resources available for tracking outbound links in WordPress. Once<span class=\"tile__ellipses\">&hellip;<\/span><span class=\"tile__ellipses--animated\"><\/span><\/p>\n","protected":false},"author":1,"featured_media":149413,"template":"","resource-topic":[913,910],"resource-role":[895,896,906,897,903,1296,899],"resource-type":[916],"class_list":["post-99071","resource","type-resource","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>WordPress Outbound Link Tracking | WP Engine\u00ae<\/title>\n<meta name=\"description\" content=\"WordPress Outbound link tracking is an important step you should take to monitor your site\u2019s success. Check out our guide to using analytics to track outbound links.\" \/>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress Outbound Link Tracking | WP Engine\u00ae\" \/>\n<meta property=\"og:description\" content=\"WordPress Outbound link tracking is an important step you should take to monitor your site\u2019s success. Check out our guide to using analytics to track outbound links.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpengine.com\/case-studies\/resources\/track-outbound-links\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Engine\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpengine\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-08T18:06:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2020\/01\/linktracking-header.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@wpengine\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/track-outbound-links\/\",\"url\":\"https:\/\/wpengine.com\/case-studies\/resources\/track-outbound-links\/\",\"name\":\"WordPress Outbound Link Tracking | WP Engine\u00ae\",\"isPartOf\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\"},\"datePublished\":\"2020-01-28T16:18:15+00:00\",\"dateModified\":\"2024-02-08T18:06:22+00:00\",\"description\":\"WordPress Outbound link tracking is an important step you should take to monitor your site\u2019s success. Check out our guide to using analytics to track outbound links.\",\"breadcrumb\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/track-outbound-links\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wpengine.com\/case-studies\/resources\/track-outbound-links\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/track-outbound-links\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wpengine.com\/case-studies\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Resources\",\"item\":\"https:\/\/wpengine.com\/case-studies\/resources\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Outbound Link Tracking in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\",\"url\":\"https:\/\/wpengine.com\/case-studies\/\",\"name\":\"WP Engine\",\"description\":\"Managed Hosting for WordPress\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/f5301455463371a10d1fc290e9ad0085\",\"name\":\"WP Engine\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d8770fe9625ca7c4601f13d9d0ab86565a6dac8cd6a77bfe2ada6d83c6837870?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d8770fe9625ca7c4601f13d9d0ab86565a6dac8cd6a77bfe2ada6d83c6837870?s=96&d=mm&r=g\",\"caption\":\"WP Engine\"},\"sameAs\":[\"https:\/\/wpengine.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WordPress Outbound Link Tracking | WP Engine\u00ae","description":"WordPress Outbound link tracking is an important step you should take to monitor your site\u2019s success. Check out our guide to using analytics to track outbound links.","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"WordPress Outbound Link Tracking | WP Engine\u00ae","og_description":"WordPress Outbound link tracking is an important step you should take to monitor your site\u2019s success. Check out our guide to using analytics to track outbound links.","og_url":"https:\/\/wpengine.com\/case-studies\/resources\/track-outbound-links\/","og_site_name":"WP Engine","article_publisher":"https:\/\/www.facebook.com\/wpengine","article_modified_time":"2024-02-08T18:06:22+00:00","og_image":[{"width":1100,"height":500,"url":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2020\/01\/linktracking-header.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@wpengine","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpengine.com\/case-studies\/resources\/track-outbound-links\/","url":"https:\/\/wpengine.com\/case-studies\/resources\/track-outbound-links\/","name":"WordPress Outbound Link Tracking | WP Engine\u00ae","isPartOf":{"@id":"https:\/\/wpengine.com\/case-studies\/#website"},"datePublished":"2020-01-28T16:18:15+00:00","dateModified":"2024-02-08T18:06:22+00:00","description":"WordPress Outbound link tracking is an important step you should take to monitor your site\u2019s success. Check out our guide to using analytics to track outbound links.","breadcrumb":{"@id":"https:\/\/wpengine.com\/case-studies\/resources\/track-outbound-links\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpengine.com\/case-studies\/resources\/track-outbound-links\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpengine.com\/case-studies\/resources\/track-outbound-links\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpengine.com\/case-studies\/"},{"@type":"ListItem","position":2,"name":"Resources","item":"https:\/\/wpengine.com\/case-studies\/resources\/"},{"@type":"ListItem","position":3,"name":"Outbound Link Tracking in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/wpengine.com\/case-studies\/#website","url":"https:\/\/wpengine.com\/case-studies\/","name":"WP Engine","description":"Managed Hosting for WordPress","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/f5301455463371a10d1fc290e9ad0085","name":"WP Engine","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d8770fe9625ca7c4601f13d9d0ab86565a6dac8cd6a77bfe2ada6d83c6837870?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d8770fe9625ca7c4601f13d9d0ab86565a6dac8cd6a77bfe2ada6d83c6837870?s=96&d=mm&r=g","caption":"WP Engine"},"sameAs":["https:\/\/wpengine.com"]}]}},"acf":[],"grid_image_url":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2020\/01\/linktracking-grid.png","media-type":{"term_id":916,"name":"Article","slug":"article"},"role":"<strong>Roles:<\/strong> Agency, Developer, Entrepreneur, Freelancer, Marketer, Publisher, Site Owner","topic":"<strong>Topics:<\/strong> Analytics, SEO","_links":{"self":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource\/99071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource"}],"about":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/types\/resource"}],"author":[{"embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/users\/1"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/media\/149413"}],"wp:attachment":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/media?parent=99071"}],"wp:term":[{"taxonomy":"resource-topic","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-topic?post=99071"},{"taxonomy":"resource-role","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-role?post=99071"},{"taxonomy":"resource-type","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-type?post=99071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}