s.linkLeaveQueryString in AppMeasurement and the Analytics extension 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;

Example

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 adobe.com:

<script>
  s.linkInternalFilters = "adobe.com";
  s.linkLeaveQueryString = true;
</script>

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

More help on this topic

Announcements

Get hands-on with agentic AI.

Explore how AI agents work together through real examples and hands-on practice. Join your local User Group to design an agent workflow with your peers and leave with a practical framework you can apply to your own work.

Find an event

Ask AI

Not sure where to start?
Ask me anything about Adobe products.

Type your question or pick a suggestion below.

Use of this AI chatbot is subject to Adobe's Privacy Policy. Don't share sensitive data. AI responses are not your Content, may be inaccurate, and any offers provided are non-binding. Generative AI Terms.

Ask AI