FelixHenninger / lab.js

Online research made easy
https://lab.js.org/
Other
239 stars 107 forks source link

How to get Prolific ID in my Lab.js experiment imported in JATOS #206

Open giuliamelis opened 1 year ago

giuliamelis commented 1 year ago

Hello, I have created a study using Labjs and imported it into JATOS. I then use Prolific and would like to pass the Prolific IDs of my participants automatically to JATOS. So I followed the procedure by entering the JATOS link in prolific and passing Prolific URL parameters to my study, as reported here: https://www.jatos.org/Use-Prolific.html

https://www.fakelink.com/publix/YMktbYiRAuW?PROLIFIC_PID={{%PROLIFIC_PID%}}&STUDY_ID={{%STUDY_ID%}}&SESSION_ID={{%SESSION_ID%}}

What would you like or expect to see?

I wanted to see if JATOS actually record the Prolific ID in the results file. Since the experiment is still in Preview in Prolific, what we have done here, is manually populate the URL parameters, just like Prolific will do automatically once running the experiment.

https://www.fakelink.com/publix/YMktbYiRAuW?PROLIFIC_PID=A3&STUDY_ID=A3&SESSION_ID=A3

So if I use this link, the value “A3” should appear 3 times in the data file.

What is currently happening?

However, if I try to look at the results, no column with the prolific ID, study_ID or SESSION_ID appears.

I got in contact with JATOS assistance, and they said me that to access (and then save) these parameters, I have to use the following in my JavaScript code.

jatos.urlQueryParameters.prolific_ID jatos.urlQueryParameters.study_ID jatos.urlQueryParameters.session_ID

And they also said me that I have to ask you how to include these in my code. I built the experiment in jabjs with a graphic interface, and I have no experience in HTML (don't even know where the HTML file is) so I have no idea how to include this information. How should I do it? I hope you can help me. Thank you