AppMeasurement strips query strings from link tracking URLs by default. Use the linkLeaveQueryString variable to preserve query strings in link tracking dimensions.

For some exit links and download links, the important portion of the URL can be in the query string. For example, a download link such as contains important link information in the query string.

If link tracking information is not in URLs on your site, using this variable is not necessary. Stripping query strings from link tracking URLs helps limit the number of unique values the dimension contains.

Enabling linkLeaveQueryString applies to all link tracking dimensions (including custom links, exit links, and download links).


This variable does not affect dimensions outside of link tracking. It only affects custom links, exit links, and download links.

Keep URL Parameters using tags in Adobe Experience Platform

Keep URL Parameters is a checkbox under the Link Tracking accordion when configuring the Adobe Analytics extension.

  1. Log in to the Data Collection UI using your AdobeID credentials.
  2. Click the desired property.
  3. Go to the Extensions tab, then click the Configure button under Adobe Analytics.
  4. Expand the Link Tracking accordion, which reveals the Keep URL Parameters checkbox.

Check this box if you want to include query strings in link tracking dimensions.

s.linkLeaveQueryString in AppMeasurement and custom code editor

The s.linkLeaveQueryString variable is a boolean. Its default value is false.

  • If this variable is set to true, query strings are preserved in link tracking URLs.
  • If this variable is set to false or not defined, query strings are stripped from link tracking URLs.
s.linkLeaveQueryString = true;


Be careful when setting this variable to true, as it can impact link tracking filters like linkInternalFilters, linkExternalFilters, and linkDownloadFiletypes.

Consider the following example as if it were on

  s.linkInternalFilters = "";
  s.linkLeaveQueryString = true;

<!--This link is not an exit link because the internal filter matches part of the query string -->
<a href = "">Example link</a>

On this page