Show Menu
TOPICS×

linkExternalFilters

AppMeasurement offers the ability to automatically track links that point outside your site. If trackExternalLinks is enabled, an image request is sent to Adobe right as a visitor clicks a link to leave your site. The linkExternalFilters and linkInternalFilters variables determine what links are considered internal/external.
If this variable contains a value, automatic exit link tracking behaves in a whitelist-like manner. If a link click does not match any linkExternalFilters values, it is not considered an exit link. The entire URL is examined against this variable. If linkLeaveQueryString is enabled, the query string is also examined.
Only use this variable if you know exactly which domains you want to consider as exit links. Many organizations find that using linkInternalFilters is sufficient for their exit link tracking needs, and do not use linkExternalFilters .
If you use both linkInternalFilters and linkExternalFilters simultaneously, the clicked link must match linkExternalFilters and not match linkInternalFilters to be considered an exit link. If a clicked link matches both exit link and download link criteria, the download link type takes priority.

s.linkExternalFilters in AppMeasurement and Launch custom code editor

The s.linkExternalFilters variable is a string containing filters (such as domains) that you consider exit links. Separate multiple domains using a comma without spaces.
s.linkExternalFilters = "example.com,example.net,example.org";

Consider the following implementation example as if it were on adobe.com :
<script>
  s.trackExternalLinks = true;
  s.linkExternalFilters = "example.com,example.net";
</script>

<!-- The following link is NOT considered an exit link, even though the link is outside adobe.com -->
<a href = "example.org">Example link 1</a>

<!-- The following link is an exit link because it matches the linkExternalFilters whitelist -->
<a href = "example.com">Example link 2</a>