Plugin Manual for Smart External Link Click Monitor
The Link Log Plugin allows you to track clicks on external links. This allows you to analyze where visitors of your website leave to.
There is no need to change anything. All links to external websites are changed automatically in front end. In back end all links appear unchanged.
The Plugin changes all your links to external sites. For example https://www.google.com
is changed to something like https://www.example.com/?goto=HUESQ2ifGipAlHg4OTUzfihAUgfz1La8
. This represents the encrypted link. The encryption produces different results on different websites to prevent phishing attacks. Internal links to pages on your domain are not changed, also URLs not starting with “http” or “https” are not changed. Also attributes (like class
or target
) are not touched.
Basic mode
The Plugin basically works out of the box without any configuration. After activating the plugin the link tracking starts immediately. It is recommended to change the IP Lock Setting and the Search Engines Setting as desired.
Custom mode
Advanced settings allow customization of how the Plugin works to adapt it to your needs. In most cases this it not necessary.
Menu items
The Plugin adds two menu items ‘Link Log’ to your WordPress resp. ClassicPress Admin. The first one is added to the ‘Settings’ menu and is visible only for Administrators (resp. to users with the capability manage_options
to be exact). Here the settings can be changed. The second one is added to the ‘Tools’ menu and is visible also for Editors (resp. to users with the capability publish_pages
to be exact). Here the Click Analysis is shown. Both the menu item title and the page title for the Click Analysis Page can be customized.
Trailing Slashes
For the browser it makes no difference if you add a slash at the end of a link or not. But for Link Log this could result in duplicate entries if you would have multiple links to the same website – some with a slash at the end and some without. To avoid this the Link Log Plugin automatically removes all trailing slashes.
Analysis
The Link Click Analysis can be found in ‘Tools’ -> ‘Link Log’ (if the menu title is not changed). The result can be filtered by several periods. The corresponding reference period is also shown. The table can be sorted by any column.

Settings
The Plugins Settings can be found in ‘Settings’ -> ‘Link Log’. The settings are arranged in five sections.
General

Parameter Name to use in URL
The Link Log Plugin changes all links to external sites – like e.g. https://www.google.com
is changed to https://www.example.com?goto=HUESQ2ifGipAlHg4OTUzfihAUgfz1La8
. You can change the used Parameter Name goto
to anything desired. Please ensure that this does not conflict with a Parameter Name used by another Plugin. If you are using a Caching Plugin you’ll have to clear the cache after changing this setting. To encrypt the target URL the Plugin uses a very simple method. As key the NONCE_SALT
constant is used to produce different strings on different sites.
IP Lock Setting
This settings controls the period in which multiple clicks on the same link from the same IP address should not be counted to avoid multiple clicks. To achieve the best performance on the one hand and to respect privacy on the other hand the plugin does not use cookies to identify accessing devices. Only the IP address is used. Keep in mind that e.g. big companies with lots of computers may use only one single IP address for all of them and most private persons are using dynamic addresses which means the IP address changes. This must be remembered to find the right setting. Counting all clicks without IP locking is not recommended because this may falsify the results.
Exclude Search Engines and other Robots
It is highly recommended to activate this feature so search engines following the external links on your site are not counted as clicks. Based on the detection list all common search engines and several bots are recognized.
Advanced

Add rel=”nofollow” to processed links
The attribute rel="nofollow"
added to a link instructs search engines that the link should not influence the target’s site ranking. See nofollow attribute at Wikipedia for more information.
Track telephone links
Activates the tracking of tel
links.
Automation

Process links
This setting allows you to control which links should be processed. Possible settings:
- Process all links fully automated
This is the recommended setting to automatically process all links to external sites without any need for action - Only process links on specified posts or pages
With this setting activated an option box is added to the Post and Page edit screen that allows you to choose if the links on that post or page should be processed - Never process links automatically
Activate this setting to only use Link Log inside your theme by using the functionsget_linklog_url()
andthe_linklog_url()
Analysis Page

Title for Link Click Analysis page to show in menu
This setting allows you to customize the item title for the Analysis Page to be shown in the admin menu. If sometime you want to restore the default just leave this textbox blank and save the settings.
Page Title for Link Click Analysis page
This setting allows you to customize the title to be shown on the Analysis Page. If sometime you want to restore the default just leave this textbox blank and save the settings.
Link Descriptions

Edit Link Descriptions
This Section allows you to add a description for each link to be shown in the Analysis instead of the URL. A new link automatically appears in the list after it is clicked the first time.
Theme functions
For developers there are two functions to use in theme files.
get_linklog_url( $url )
This function gets the tracking URL for a given URL.
Example:
<?php $google = get_linklog_url( 'https://www.google.com' ); ?>
the_linklog_url( $url )
This function echoes the tracking URL for a given URL.
Example:
<a href="<?php the_linklog_url( 'https://www.google.com' ); ?>" target"=_blank">Google</a>
Uninstallation
This Plugin comes with an uninstaller to clean up all data. So think carefully before you delete the plugin. Deleting the plugin will also delete all collected data. Deactivate the plugin to keep all data for a future use.