Home arrow Archief arrow External link enhancement
External link enhancement Afdrukken

As written before, I use Joomla! as my CMS. It's easy to use and a lot of extensions External link are available. For the content items I was looking for an extension, to notify Google Analytics External link of clicking on external links. There is already a function for it, so the extension would just have to add the following attribute to external links:

<a href="http://www.example.com"
onClick="javascript:urchinTracker('/outgoing/example');">

Unfortunately, I couldn't find any extension to do this, so I had to write my own mambot to add the tracking code.

While writing the code for the mambot, I realized more enhancements could be made to external links, which resulted in the following options:
  • Add Google Analytics tracking code for outgoing links, making outgoing links visible in Google Analytics.
  • Add an image after the content of the link, making outgoing links more visible to users.
  • Set the default target attribute for outgoing links.
  • Add the title attribute, either containing the content of the link or the HTML title of the remote document.
  • Add the general Google Analytics code. Can be used if the code is not already added by another mambot.

Version 0.1.1 is available for download External link and registered at the Joomla! Extensions site External link as External link enhancement External link

 
Volgende >