ACS user tracking - not working without URL encoding

Tony Yip 50 Reputation points
2025-01-30T15:19:52.9466667+00:00

We turned on user tracking and it worked fine with the link within an anchor tag but since our URL contains like & and etc, it does not work until we encode the & sign.

Is it a requirement to encode it? since all the URLs we have are dynamic created by different teams. or is it a switch or something in ACS to do the encoding automatcially?

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
1,242 questions
0 comments No comments
{count} votes

Accepted answer
  1. Laxman Reddy Revuri 5,400 Reputation points Microsoft External Staff Moderator
    2025-01-30T15:32:51.32+00:00

    Hi @Tony Yip
    Thanks for the question and using MS Q&A platform.
    Yes, the special characters in the URL must be anyway encoded for their correct interpretation by browsers and servers. This is more relevant when URLs carrying query parameters buffer characters that are not encoded, which can result in misinterpretation of the URL layout.
    1.The URL being created dynamically by different teams should be better off if they were all implementing a consistent mechanism for encoding so that all special characters are being encoded correctly before the URLs are used. This will avoid any problems with tracking users and ensure that all parameters are properly recognized.

    2.Unfortunately, ACS doesn't have a global switch to automatically encode URLs - this needs to be handled either in your code or templates.
    references:
    https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters#special-characters-in-url-filters
    https://learn.microsoft.com/en-us/xandr/invest/click-tracking#track-clicks-on-third-party-tags
    Please accept as "Yes" if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.