Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository


Find out where your visitors leave to. Track clicks on external links.

This Plugin allows you to track which external links your visitors click on.

See also Plugin Homepage and Plugin Doc

The link-log Plugin changes all your links to external sites. For example is changed to something like The link change takes place when a post or page is displayed. Internal links to pages on your domain are not changed, also URLs not starting with "http" or "https" are not changed (tracking of "tel" URLs can be activated optionally). Also attributes (like class or target) are not touched.

There is no need to change anything. All Links in all posts and pages are changed automatically in front end. When editing a post or page in back end all links appear unchanged.

Settings (optional)

In 'Settings' -> 'link-log' you can change several settings. It is highly recommended to change the IP Lock Setting and the Search Engines Setting as desired. See Plugin Doc for details.


The link-log Plugin uses GlotPress - the Translation System - for translations. Translations can be submitted at

Translation are highly appreciated. It would be great if you'd support the link-log Plugin by adding a new translation or keeping an existing one up to date. If you're new to GlotPress take a look at the Translator Handbook.

Do you like the link-log Plugin?

Thanks, I appreciate that. You don't need to make a donation. No money, no beer, no coffee. Please, just tell the world that you like what I'm doing! And that's all.

More plugins from Peter

Author Peter's Plugins,
Contributors petersplugins,
Tags click, click counting, external-links, Link Analytics, log, tracking, visitor tracking
  1. link-log screenshot 1

    General Settings

  2. link-log screenshot 2

    Advanced Settings

  3. link-log screenshot 3

    Automation Settings

  4. link-log screenshot 4

    Analysis Page Customization

  5. link-log screenshot 5

    Adding Link Descriptions

  6. link-log screenshot 6

    Link Click Analysis

From your WordPress dashboard

  1. Visit 'Plugins' -> 'Add New'
  2. Search for 'link-log'
  3. Activate the plugin through the 'Plugins' menu in WordPress

Manually from

  1. Download link-log from and unzip the archive
  2. Upload the link-log folder to your /wp-content/plugins/ directory
  3. Activate the plugin through the 'Plugins' menu in WordPress

2.2 (2016-10-21)

  • made plugin ready for translation
  • removal of needless characters from encrypted URLs
  • faster encryption and decryption
  • optional tracking of telephone links

2.1 (2015-12-11)

  • Closed SQL Injection vulnerability

2.0 (2015-12-10)

  • Closed HTTP Response Splitting vulnerability
  • Closed Open Redirect vulnerability
  • Menu item title for Link Click Analysis page is now customizable
  • Page title for Link Click Analysis page is now customizable
  • Customizable link descriptions to show on Link Click Analysis page instead of URLs

1.4 (2015-04-28)

  • Option to add rel="nofollow" to links
  • Option to track only specific posts/pages
  • Complete documentation accessible from back end
  • Click Analysis now accessible also for Editors, not only for Admins
  • Click Analysis now uses standard WP table
  • Filtering of results

1.3 (2014-10-26)

  • Works now with WPML
    The WPML Plugin changes the Home URL by adding the language to it - link-log now can handle that to work with WPML and other Plugins that change the Home URL (thanks to GREIFF for testing)
  • Performance Improvement
    The browser is now forced to redirect to the target URL before the data is stored to the databse
  • remove trailing slashes
    To avoid duplicate entries for e.g. and all trailing slashes are removed now
    Update Notice: when updating to version 1.3 all trailing slashes from all existing entries in the database are removed automatically

1.2 (2014-09-19)

  • Omit search engines and other bots

1.1 (2014-06-25)

  • Omit multiple clicks from same IP

1.0 (2014-02-20)

  • Initial Release

Do I have to change the links?

No, all your links to external sites are changed automatically.

Will the changed links appear in the Editor?

No, the links are changed every time when a post or page is displayed - the original links are left unchanged.

What about all the odd characters in the generated links?

Those characters represent the encrypted link. The encryption produces different results on different websites. Using uncoded links for redirection could be used in phishing attacks to get users to visit malicious sites without realizing it by "hijacking" a reputable domain, e.g.

Will this work with a Caching Plugin?

Yes, but if you change the parameter name you have to clear the cache.

Will the plugin work with my existing Theme?

The plugin should work with all Themes.

Will the plugin work on WordPress Multisite?

Yes, in a Multisite installation the plugin stores the link clicks per blog.

For developers

Theme functions

There are two functions you can use in your theme files:

get_linklog_url( $url ) to get the tracking URL, e.g. <?php $google = get_linklog_url( '' ); ?>

the_linklog_url( $url ) to echo the tracking URL, e.g. <a href="<?php the_linklog_url( '' ); ?>" target"=_blank">Google</a>

Version 2.2

Requires WordPress version: 3.0 or higher

Compatible up to: 4.7.2

Last Updated 07 Dec 2016

Date Added: 25 Feb 2014

Plugin Homepage


4 stars
4 ratings


Not Enough Data

Works: 0
Broken: 0