Skip to content

How to collect an ID (Mturk Prolific etc.) from the URL

Ruben C. Arslan edited this page Jun 18, 2019 · 6 revisions

Often, you'll want to connect a formr survey to a participant pool such as Prolific Academic or Amazon MTurk. For many of these platforms, users have worker ids. They can enter these by hand, but it is an error-prone process. Preferably, they get a customised link that will include their worker id, so that formr stores it automatically.

Here's how.

Receive people

Here is an example spreadsheet. It expects people to show up to your study with a link ending in ?code=MYWORKERID.

If they enter without it, they will be blocked from participating. Try it out: https://get_id_from_link.formr.org/

https://get_id_from_link.formr.org/?code=MYWORKERID1020 on the other hand should work (you might have to open it in an incognito window to reset cookies).

If you name your survey get_id_from_link and the item code as in the example, you can access this code through R in the study. You might want that for the next step.

Send them back

If you want to send people back to the participant pool provider, you can add an External unit at the end of the run with the following syntax:

paste0("https://app.prolific.ac/submissions/complete?cc=", get_id_as_url$code)