Link tracking FAQ

Frequently asked questions about link tracking in Activity Map.


By turning on Activity Map tracking, you may be collecting personally identifiable information (PII) data. This data can be used on its own or with other information to identify, contact, or locate a single person, or to identify an individual in context.

Here are some known cases where PII data might be collected using Activity Map Tracking:

  • Mailto links. A mailto link is a type of HTML link that activates the default mail client on the computer for sending an e-mail.
  • User ID links that may show up in the header/footer of a website once the user has logged in.
  • For financial institutions, the account number may be shown as a link. Clicking it will collect the text of the link.
  • Healthcare websites may also have PII data shown as links. Clicking these links will collect the text of the link, thereby collecting PII data.
Q: When does link tracking occur?

A: Activity Map link and region identification occurs when users click on a page.
Q: What is tracked by default?

A: If a click event occurs on an element, the element has to pass some checks to determine if AppMeasurement will treat it as a link. These are the checks:
  • Is this an <A> or <AREA> tag with an HREF property?
  • Is there an on-click attribute that sets a s_objectID variable?
  • Is this an INPUT tag or SUBMIT button with a value or child text?
  • Is this an INPUT tag with type IMAGE and a src property?
  • Is this a <Button>?

If the answer is Yes to any of the questions above, then the element is treated as a link and will be tracked.

Important: Button tags with the attribute type="button" are not considered to be links by AppMeasurement. Consider removing "type='button'" on the button tags and adding role="button" or submit="button" instead.

Important: An anchor tags with an href that starts with "#" is considered an internal target location by AppMeasurement, not a link (since you do not leave the page.) By default, Activity Map does not track these internal target locations. It tracks only links that navigate the user to a new page.

Q: How does Activity Map track other visual HTML elements?
  1. Via the function

    If the click occurred via an invocation, then Activity Map will also receive this click event and determine if a linkName string variable was found. During execution, that linkName will be set as the Activity Map Link ID. The element clicked that originated the call will be used to determine the region. Example:

    <img&nbsp;onclick=",'o','abc')"&nbsp;src="someimageurl.png"/>%20%20%20%20%20%20%20%20%3C/code%3E%20%3C/p%3E%20%3C/li%3E%20%20%20%20%20%20%3Cli%20id=?lang=en"li_A93725B810FE408BA5E6B267CF8CEAE5"> Via the s_objectID variable


    <img onclick="s_objectID='abc';" src="someimageurl.png"/>%20<a href=?lang=en"some-url.html" onclick="s_objectID='abc';" >Link Text Here</a>

    Important: Note that a trailing semicolon (;) is required when using s_objectID in Activity Map.

Q: Can you give me some examples of links that will be tracked?
  1. <a&nbsp;href="/home?lang=en">Home</a>
  2. <input&nbsp;type="submit"&nbsp;value="Submit"/>%20%20%20%20%20%20%20%3C/code%3E%20%3C/li%3E%20%20%20%20%20%20%3Cli%20id=?lang=en"li_10CF9EDA224645169E7CDF74956DB98B"> <input&nbsp;type="image"&nbsp;src="submit-button.png"/>%20%20%20%20%20%20%20%3C/code%3E%20%3C/li%3E%20%20%20%20%20%20%3Cli%20id=?lang=en"li_9FA171D7F49547E798DE21869F73A402"> <p onclick="var s_objectID='custom link id';">     <span class="title">Current Market Rates</span><span  class="subtitle">1.45USD</span> </p>
  3. <div onclick=",'o','custom link id')">     <span class="title">Current Market Rates</span><span  class="subtitle">1.45USD</span> </div>
Q: Can you give me some examples of links that will NOT be tracked?
  1. Reason: Anchor tag does not have a valid href <a&nbsp;name="innerAnchor">Section&nbsp;header</a>
  2. Reason: Neither s_ObjectID nor present <p onclick="showPanel('market rates')">     <span class="title">Current Market Rates</span><span  class="subtitle">1.45USD</span> </p>
  3. Reason: Neither s_ObjectID nor present <input type="radio" onclick="changeState(this)" name="group1" value="A"/>%20<input type=?lang=en"radio" onclick="changeState(this)" name="group1" value="B"/>%20<input type=?lang=en"radio" onclick="changeState(this)" name="group1" value="C"/>%20%20%20%20%20%20%3C/code%3E%20%3C/li%3E%20%20%20%20%20%20%3Cli%20id=?lang=en"li_9EBFCC58F3A94F30BA62156F14B15D55">Reason: src property is missing a form input element <input&nbsp;type="image"/>

On this page