Based on these instructions- Javascript code to record click on link to PDF - Qualtrics
I set up the link (with unique ID of human) in the question, I added the javascript to the javascript panel in the question but I am not sure what to add into the survey flow section.
This is what I have now and it doesn't seem to be working:
1=human
Thanks
Here is my link I need to track-
<a href="http://vpf2.cise.ufl.edu/Classic/Interaction/Prototype/23341" id="human" target="_blank">Test Link</a>
and here is the javascript I put with the question.
Qualtrics.SurveyEngine.addOnload(function()
{
var a = $("human"); //adjust ID here
a.onclick = function() {
Qualtrics.SurveyEngine.setEmbeddedData("clicked", 1); //adjust embedded data variable here
}
});