--- title: "Advanced Event Tracking" slug: "advanced-event-tracking" updated: 2024-05-09T13:24:27Z published: 2024-05-09T13:24:27Z canonical: "docs.mapp.com/advanced-event-tracking" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.mapp.com/llms.txt > Use this file to discover all available pages before exploring further. # Advanced Event Tracking ## 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** ```xml Reference to contact page ``` - **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** ```xml ``` ### Ajax/Flash With this action tracking variant you can measure events in Ajax and Flash movies. **Example** ```javascript getURL("javascript:wts.push(['send', 'click', {linkId:'action name'}]);"); ``` ## Redirect Tracking > [!CAUTION] > 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. > [!NOTE] > Please note that redirect tracking influences the performance. We, therefore, recommend testing this feature for usability. **Example** ```xml Link to homepage ``` | 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 | ```plaintext 111111111111111 ``` | | Target URL | ```vbscript-html re.pl? t=http%3A%2F%2Fwww.website.com%2Findex.htm ``` > [!CAUTION] > Target URL and page name must be URL-encoded. | | Event | ```plaintext &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** ```xml Link to homepage ``` 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.