Click rate on End of Survey message hyperlink | XM Community
Skip to main content

Is it possible to track click rates on hyperlinks contained with end of survey?

Hi there. This is not an out of the box functionality, but you may be able to accomplish this by adding JavaScript to the HTML of your end of survey message. The JS would run upon the hyperlink being clicked. The JS would include an API call to update the survey response or call a JSON endpoint that runs a workflow to update the survey response. The survey response would be updated with a flag to indicate that the hyperlink was pressed. You could then report on what % of your responses have the flag indicating the link was pressed.


Hi ​@kgillis,

Instead of linking directly to the external destination, route users through an intermediate redirect page (you control this — could even be a lightweight HTML file hosted on your institution’s server or a Qualtrics Web Service). That page:

  1. Logs the click (e.g., via Google Analytics, or even something simple like a Google Apps Script or server log)

  2. Immediately redirects to the intended final URL

 

So your custom End of Survey message would include a link like:
<a href="https://yoursite.com/track-redirect.html">Click here to view results</a>

 

On track-redirect.html, you’d have a tiny script like:

<script>

  // Log the event (you could hit an analytics endpoint or webhook here)

  fetch("https://your-logging-endpoint.com/log?click=finalPage");

  // Redirect to final destination

  window.location.href = "https://finaldestination.com";

</script>


In my view, this might work better than in-survey JS.
— Rochak


Leave a Reply