I would like to track who clicked on a link to open a new window to view a glossary of terms used in the survey. The link is just another survey in Qualtrics in text format. The survey is anonymous, that seems to be the catch here. It would be great to know if a respondent clicked on a link or not.
Solved
Track who clicked on link to open a new window in anonymous survey
Best answer by vgayraud
You could probably pass whatever information you need to identify who accessed the glossary with a query string. That information would be captured in the glossary survey tho, and not in the original.
See this support section :
Passing Information via Query Strings
If you need it captured within the first survey, I would add an ED in the survey flow to track the click, let's say "Click".
Then add an id to your glossary link (using source code in the question editor), let's say "trackClick"
SOM
And finally listen for the click in the question javascript code :
Qualtrics.SurveyEngine.addOnReady(function()
{
const tracker = document. getElementById('trackClick')
tracker. addEventListener("click", () => {
Qualtrics.SurveyEngine.setEmbeddedData("Click", "Clicked");
});
});
Leave a Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.