Data not saving from Prolific experimentees

Hi all,

My group and I have run an experiment on Pavlovia via Prolific, and we are encountering an issue with the data saving. We wanted to ask if anyone here might be familiar with this problem.

The problem: we know that two participants completed our experiment, because at the very end of the experiment, you are re-directed to a Qualtrics survey, and we have their data from the Qualtrics. However, neither of their data are appearing in the results repository downloaded from Pavlovia.

Some context: participants enter the Pavlovia experiment through Prolific. At the very end of the Pavlovia experiment, they are then re-directed to a Qualtrics survey. (We are certain that they completed the Pavlovia because we have their data from the Qualtrics.) The re-direct works through the following code in a code component in the final routine:

// Get keys pressed this frame
let keys = psychoJS.eventManager.getKeys();

if (keys.includes('return')) {
    // Redirect to second Qualtrics survey with URL parameters
    window.location.href = "https://stanforduniversity.qualtrics.com/jfe/form/SV_6Mcd2oLCuyw3sRE"
        + "?PROLIFIC_PID=" + encodeURIComponent(prolific_pid)
        + "&STUDY_ID=" + encodeURIComponent(study_id)
        + "&SESSION_ID=" + encodeURIComponent(session_id);
}

When you press ‘Return’ in this routine, a box pops up and asks you if you want to leave the page. In prior studies, we have used this code, and when the participant confirms that they do want to leave, the re-direct works, and their data saves. Currently, my Pavlovia is set on the Save incomplete results mode.

What we tried to debug it:

  • When we do a few trials and then close out of the page, that data saves, suggesting that even incomplete data should save.
  • We moved one of the probes to the very beginning of the experiment, and we moved the ending routine (with the re-directing code component) right after that. When we tried this, the re-direct took us to Qualtrics. We checked the data, and this saved (we saw the results from the one probe), suggesting that the re-direct still allows the data to save.

We are using PsychoPy v2025.1.1, and the experiment can be found here.

Has anyone experienced issues related to data saving from online experimentees? We appreciate your time and experience!

Best,

Sarah

This message is basically asking if they are happy to leave without saving the data. Please do not use your current code to redirect to Qualtrics.