Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
giuliamelis opened this issue Apr 8, 2023 · 0 comments
Open

Comments

@giuliamelis
Copy link

giuliamelis commented Apr 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant