Connect oTree experiments to Prolific — from study creation to bonus payments.
TreeHost's Prolific integration handles the key steps of running a Prolific study — from draft to completion — without leaving your dashboard. The standout feature is automatic wiring: TreeHost connects your oTree workspace to your Prolific study with no URL copying, code changes, or redeployment.
When you create and publish a Prolific study through TreeHost, the following are set up for you without any manual steps:
PROLIFIC_PID URL parameter is configured, linking each participant's Prolific ID to their oTree data.Submission approval is handled on Prolific. After participants complete the study, you review and approve their submissions directly in the Prolific researcher dashboard. TreeHost handles setup, monitoring, and bonuses — not approval.
Before using the Prolific integration, you need:
Keep your API token private. It gives full access to your Prolific researcher account including the ability to publish studies and charge your account balance. Never share it or commit it to version control.
Your Prolific API token is stored per workspace, not globally. This lets you use different Prolific accounts for different projects if needed.
TreeHost immediately verifies the token against the Prolific API. If the token is valid, the panel shows the Create a new Prolific study form.
Studies are created as drafts first, letting you review all settings on the Prolific website before spending any money.
When creating a study, you fill in these key values:
You can restrict who can participate using Prolific's eligibility filters:
Filters are applied by Prolific at recruitment — only eligible participants will see your study.
The study fields and eligibility filters are subsets of what Prolific offers. After creating a study draft here, you can always edit the full set of fields on the Prolific website.
If you run similar studies repeatedly, you can save a study as a template. When creating a new study, select an existing template to pre-fill all settings. Templates are stored per workspace and are not shared across workspaces.
Always publish from TreeHost. Clicking Publish on the Prolific website skips the oTree session setup — participants will arrive at an empty room and won't be able to join. If you accidentally publish on Prolific, open the TreeHost Prolific panel and click Publish there; TreeHost will detect that the study is already active and complete the oTree setup automatically.
The most common pain point when running oTree on Prolific is the manual setup: copying the redirect URL from Prolific into your study, adding the Prolific ID parameter to the URL, creating an oTree room, setting a room-specific session, and updating oTree code to read the participant ID. TreeHost does all of this for you at publish time.
Completion URL. Prolific provides a redirect URL that participants must visit to record their completion. TreeHost injects this URL into your oTree project at upload time and appends a hidden _th_completion redirect page to the end of every session. When a participant finishes their last app page, this page fires and sends them to Prolific — no changes to your oTree templates required.
If your last app page has no Next button, TreeHost patches it with a 5-second countdown so participants aren't stranded. They see a "Redirecting in…" timer, then advance automatically. If your last app page already has a Next button, participants click it as usual — the countdown is not added.
Prolific participant ID. Prolific appends ?PROLIFIC_PID=... to the URL it sends participants. TreeHost configures your study to pass this parameter through to oTree, where it is stored as a participant field. Your oTree code can access it via player.participant.prolific_id, but you don't need to do anything for it to be recorded.
oTree room. The room you selected is configured in your oTree workspace. It uses Prolific participant IDs as room labels, ensuring each Prolific participant maps to exactly one oTree participant slot.
oTree session. A session is started in that room using the session config you selected, with the number of participants set to match your Prolific study. Participants join the session by following their Prolific study link — there is no separate oTree session link to distribute.
Do not create sessions or rooms manually in the oTree admin while a study is active. oTree routes new participants to the most recently created session in a room. Creating a session manually will redirect all incoming Prolific participants away from the TreeHost-managed session, breaking participant routing.
PROLIFIC_PID appendedThe Prolific panel, opened from your workspace card, shows live data about your study. Click Refresh at any time to pull the latest state from Prolific.
The status badge reflects the current state of your study on Prolific:
While a study is active or completed, the panel shows participant counts at each stage:
Approval is done directly in the Prolific researcher dashboard — not through TreeHost.
Click Refresh in the Prolific panel to pull the latest participant counts, study status, and payment data from Prolific. If the study has transitioned to a new status (e.g. ACTIVE → COMPLETED), the panel will re-render to show the updated layout including the Bonus Payments section.
The Payment section in the Prolific panel shows a full cost breakdown sourced directly from Prolific. All figures are updated whenever you click Refresh.
The table shows four rows:
The Total row shows the sum of all four.
Before a study is published, the panel shows an estimated cost based on your reward and participant count settings. The live breakdown becomes available once the study is published and Prolific has processed the charge.
Why use TreeHost for cost tracking? Prolific's own researcher dashboard shows costs at the study level but does not break down rewards vs. bonuses vs. fees in one view. TreeHost's Payment section pulls data from Prolific to give you an accurate, itemised breakdown — including bonuses paid on both sides.
Once participants are approved, you can pay additional bonuses at any point while the study is active or after it completes.
Prolific bonuses are payments made in addition to the base reward. They appear as separate payments in participants' Prolific accounts.
TreeHost's bonus payment flow:
TreeHost pays the same bonus amount to all currently approved participants. If you need to pay different amounts to different participants, use the Pay Bonus on Prolific button to do so directly on the Prolific website.
The panel tracks the number of unique participants who have received a bonus through TreeHost. If you pay the same participant multiple times (e.g. two separate bonus rounds), they are counted as one participant. Bonuses paid directly on Prolific are not included in this count but are included in the total amounts shown in the cost breakdown.
Prolific charges a platform fee and Tax/VAT on bonuses at the same rate as the base reward. The full cost of bonus payments (including fees) is shown in the Payment section.
Copy the token directly from Prolific's API Tokens page to avoid whitespace or truncation. The token is a long string — paste it in full.
Check that your oTree workspace is in the Running state and that a project has been uploaded. If oTree restarted after the study was published (e.g. due to a project upload), the completion URL and room configuration are re-injected automatically on the next restart — no action needed on your part. If the issue persists, contact support.
TreeHost automatically appends a _th_completion redirect page to the end of every session. This page fires after all oTree wait pages have resolved and participants reach the end of their last app.
Last page has no Next button: TreeHost adds a 5-second countdown that auto-advances participants. If the countdown is not appearing, re-upload your project so the latest TreeHost injection is applied.
Last page has a Next button: Participants must click it to advance. If they close the browser before clicking, they will not reach the redirect page and Prolific will not record their completion.
oTree wait pages: If your session uses wait pages, confirm they resolve correctly. A wait page that never resolves will block all subsequent pages including the redirect.
If the issue persists after re-uploading your project, contact support with your workspace ID.
The Bonus Payments section appears once a study is ACTIVE or COMPLETED, and there is at least one approved submission. If you've just approved a submission and the section isn't visible, click Refresh — the panel will re-render with the latest study state.
The accurate cost breakdown is fetched from Prolific and is only available for published studies. For unpublished drafts, an estimate based on reward × participants is shown instead.
Email us at [email protected]. Include your workspace ID and a description of the issue.