oTree Forum >

Integrate oTree with CloudResearch (Turkprime)

#1 by djb187,

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!

Write a reply

Set forum username