There are 3 pieces to this process:
1: Set your link up with a specific ID for example:
<a id="myLink" href="http://communicus.com" target="_blank">Test Link</a>
2: For the question that you need this on, add the following JavaScript(adjust the ID and embedded data variable in the script as necessary):
Qualtrics.SurveyEngine.addOnload(function()
{
var a = $("myLink"); //adjust ID here
a.onclick = function() {
Qualtrics.SurveyEngine.setEmbeddedData("clicked", 1); //adjust embedded data variable here
}
});
3: Add the embedded data variable, to match your JavaScript, in the survey flow section. Make sure that it exists in survey flow prior to the block your question resides in.
This will let you track those who clicked the link in a Qualtrics variable.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…