I have a survey in which there are 3 urls within the question. We want to track which specific urls are clicked rather than just a url was clicked. I have this code for that with the embedded data of clicked=0
Qualtrics.SurveyEngine.addOnload(function() {
jQuery('#extLink').click(function(event) {
Qualtrics.SurveyEngine.setEmbeddedData("clicked", "1");
jQuery("#NextButton").click();
});
});
But I can't figure out a good way to modify this to be able to know the specific url clicked, since the jQuery is #extLink and really this code is only counting if something is clicked but not specifically what.
Any advice?
This is also an example of what the HTML code looks like for each option in the question. <div><a href="https://www.directrelief.org/" id="extLink" rel="noopener" target="_blank">Direct Relief</a> - Support for people affected by emergencies</div>