Funtion Call

In some cases (for example, JavaScript and Flash links) it is not possible to automatically track links. These links can, however, be measured with a function call.

The event tracking with function call requires that JavaScript is enabled in the browser of the visitor.

Two variants must be differentiated in the measurement via a function call:

  • Option with leaving the current page
    With a single click (=event) on the link, the current page will be left, and a new page is loading.

    Example

    <a href="contact.htm" onclick="wts.push(['send', 'click', {linkId:'action name'}]);">Reference to contact page</a>
    XML
  • Option without leaving the current page
    When clicking on the link, the content on the same page is changing (for example, buttons, JavaScript actions).

    Example

    <input type="button" onclick="wts.push(['send', 'click', {linkId:'action name'}]);" value="test" /> 
    XML

Ajax/Flash

With this action tracking variant you can measure events in Ajax and Flash movies.

Example

getURL("javascript:wts.push(['send', 'click', {linkId:'action name'}]);");
JS

Redirect Tracking

Redirect tracking is disabled by default because it is a potential security risk. Contact your account manager to enable it.

Event tracking with redirect allows you to track clicks links, even when there is no tracking included. For example, you can use this option to track links in your email signature  that lead to your social media page.

Please note that redirect tracking influences the performance. We, therefore, recommend testing this feature for usability.


Example

<a href="http://track.wt-eu02.net/111111111111111/re.pl?t=http%3A%2F%2Fwww.website.com%2Findex.htm&c=link_to_homepage">Link to homepage</a>
XML


 
ItemDescription
Connection protocol

http (or https if tracking is performed in an SSL-protected area)

Track domain

track.wt-eu02.net

Mapp Intelligence Track ID
111111111111111
Target URL
re.pl? t=http%3A%2F%2Fwww.website.com%2Findex.htm

Target URL and page name must be URL-encoded.

Event
&c=link_to_homepage
You can analyze the usage in Mapp Intelligence at Navigation > Events


You can hide the tracking URL in the status bar of your browser.

Example with hidden URL

<a href="http://track.wt-eu02.de/111111111111111/re.pl?t=http%3A%2F%2Fwww.website.com%2Findex.htm&c=link_to_homepage" onMouseOver="status='This is a link';return true;" onMouseOut="status=' ';return true;">Link to homepage</a>
XML

When the user hovers over this link, the text "Link to homepage" appears in the status bar of the browser instead of the tracking link.