- 1 Minute to read
- Print
- DarkLight
Advanced Event Tracking
- 1 Minute to read
- Print
- DarkLight
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.
JavaScript Links
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" >Reference to contact page</a>
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" value="test" />
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'}]);");
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>
Item | Description |
---|---|
Connection protocol | http (or https if tracking is performed in an SSL-protected area) |
Track domain | track.wt-eu02.net |
Mapp Intelligence Track ID |
|
Target URL |
|
Event |
|
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" onMouseOut="status=' ';return true;">Link to homepage</a>
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.