oTree Forum >

Integrate oTree with CloudResearch (Turkprime)

#1 by None

Good afternoon,
How do I pass CloudResearch (MTurk Prime) parameters to oTree (like HIT ID, MTurk ID, etc.) to create participant labels? I saw a post about this on the old google groups forum from January 2022 (https://groups.google.com/g/otree/c/7LMn-pf9kXg/m/YWqNS9kuAgAJ), but according to the last reply it requires a lot of manual entry and custom coding to do so:
 
--capture the required information by asking participants to enter it manually via a form
--capture the URL params using Otree HR, which is a small page before the main task that turns the URL parameters into items in participant vars via the API endpoint (https://github.com/oTree-org/HR)
--capture the URL params using a page with javascript that turns them in to something else (see discussion here https://groups.google.com/g/otree/c/FIDiiE-H3Tc/m/f1Nm7180AQAJ )

Is there a more streamlined way to do this, and perhaps some sample code? I would prefer not to rely on manual entry from participants. Thank you in advance!

#2 by frieder_neunhoeffer

Hello,

I have the same issue/concern. I used to run otree experiments with mturk and the data file would include automatically the mTurkID column. 

Considering the posts in the old forum, I have tried to get some of the suggestions to work but I failed. One reason is because my coding abilities are limited (this is why I would also prefer to have streamlined solution) and two, is that most of the github links seem to be expired.

Thanks in advance,
frieder

Write a reply

Set forum username