> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/online/using-imotions-online-with-a-panel-provider.md).

# Using iMotions Online with a panel provider

Pass a panel provider's respondent IDs into an iMotions Online study and back out, so the panel provider knows who completed the study.

This guide shows how to connect an iMotions Online study to a panel provider with URL parameters, so that the panel provider's respondent IDs reach your study and are passed back when respondents finish.

## How it works

Panel providers such as Forsta, Prolific, Qualtrics, Cint, Amazon Mechanical Turk or Sona Systems recruit and screen respondents, send the ones who qualify to your iMotions Online study, and need to be told when each respondent has finished. Everything is done with parameters on URLs:

1. The panel provider adds its respondent ID to the end of your study link, for example `?transaction_id=88888`.
2. iMotions Online stores the parameters on the respondent's session.
3. When the respondent finishes, iMotions Online redirects them to the URL you have configured and can insert the same parameters into it, so the panel provider knows who completed.

{% hint style="info" %}
If you use Prolific, use the [built-in Prolific integration](https://help.imotions.com/online/imotions-prolific-integration.md) instead of the manual setup on this page. It creates the Prolific study and configures the links and redirects for you, including separate completion codes for completed, declined and failed sessions.
{% endhint %}

## Setup

### 1. Add the panel provider's parameters to your study link

Copy the study link from **Links** on the **Data Collection** page and give it to the panel provider. They add their parameters to it, starting with `?` and separating multiple parameters with `&`. The parameters can go in either of two places, and iMotions Online reads both:

* After the study ID, at the very end of the link:

  ```
  https://my.imotions.com/collect/#s/<study ID>?transaction_id=88888&panel=67890
  ```
* Before the `#`, directly after `/collect/`:

  ```
  https://my.imotions.com/collect/?transaction_id=88888&panel=67890#s/<study ID>
  ```

Use the second form if the panel provider does not accept its placeholders after a `#`. Most panel providers fill in the respondent's values with a placeholder, for example Qualtrics inserts an embedded data field with `${e://Field/transaction_id}`. Ask your panel provider which parameters they provide and what they need back.

{% hint style="warning" %}
Use `?` at most once on each side of the `#`. If a part of the link already contains a `?`, for example because it points to a specific stimulus block with `iMotionsStimulusBlock`, add further parameters to that part with `&` instead.
{% endhint %}

Parameter names starting with `iMotions` are reserved for iMotions Online's own use. Choose other names for your own parameters.

URL parameters end up in browser history and server logs, so pass only IDs, never names or other personal data.

### 2. Set the redirect URL

On the **Data Collection** page, open **Settings**, expand **Redirect options** and tick **Redirect to a specific URL once the study has been completed**. Enter the completion URL from your panel provider in **Study completed URL**. Where the panel provider needs the respondent's parameters back, insert the `${query}` token, which is replaced with every parameter the respondent arrived with. Put it after `&` if the URL already contains a `?`, otherwise after `?`:

```
https://panelprovider.com/study?complete=1&${query}
```

A respondent who arrived with `?transaction_id=88888` is then redirected to `https://panelprovider.com/study?complete=1&transaction_id=88888`.

Panel providers often have separate codes for respondents who are screened out or fail, so they can be handled differently from completes. Set these with **Redirect to a specific URL if the respondent declines consent** and **Redirect to a specific URL in case of error during the data collection**.

### 3. Match respondents in the exported data

Every parameter a respondent arrived with is stored on their session and exported with the session data. On the **Data Collection** page, click **Download session data**. The CSV file has one column per parameter, named `Session <parameter>`, for example `Session transaction_id`. Use it together with the **Respondent label** column to match iMotions data to the panel provider's records.

## Tokens for redirect URLs

These tokens are replaced when a respondent is redirected. They work in all three redirect URLs.

<table><thead><tr><th width="220">Token</th><th>Replaced with</th></tr></thead><tbody><tr><td><code>${query}</code></td><td>All the parameters the respondent arrived with, exactly as they were on the study link. This is the token most panel providers need.</td></tr><tr><td><code>${respondentLabel}</code></td><td>The respondent label shown in iMotions Online and in test plans, for example <code>RESP0005</code>.</td></tr><tr><td><code>${respondentId}</code></td><td>The respondent's internal iMotions database ID, a long string of letters and numbers. It is not shown anywhere in iMotions Online.</td></tr><tr><td><code>${studyId}</code></td><td>The study ID, as it appears in the study link after <code>#s/</code>.</td></tr></tbody></table>

The parameters are also appended to the URL of website and Qualtrics stimuli shown during the study, together with `iMotionsRespondent`, `iMotionsStudy` and `iMotionsStimuli`, so an external survey used as a stimulus can read them too.

## Example with Qualtrics as the screener

A panel provider recruits respondents and sends them to a Qualtrics screening survey with their ID in the link as `transaction_id`. Qualified respondents continue to an iMotions Online study, and the panel provider's completion link receives `transaction_id` back.

1. In the Qualtrics **Survey flow**, add an **Embedded Data** field named `transaction_id`. Qualtrics fills it from the survey link. ![Qualtrics survey flow with an Embedded Data field named transaction\_id](https://1859600039-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsppsOcDpBd2WmT8tcVc%2Fuploads%2Fgit-blob-0fa6f4c329358b2c4a7eae2ed5a822c661d44a72%2F5b97729983_image-1691631009808.webp?alt=media)
2. Add branch logic so that respondents who pass screening reach an **End of Survey** block. In the block, choose **Customize**, tick **Override Survey Options** and select **Redirect to a URL**. Enter the iMotions study link with the field appended: ![Qualtrics End of Survey options redirecting to an iMotions Online study link with transaction\_id appended](https://1859600039-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsppsOcDpBd2WmT8tcVc%2Fuploads%2Fgit-blob-1fcdfa014b954eede7dc4955dc58b4dcffc85706%2Fb765877df4_image-1691631220482.webp?alt=media)
3. In iMotions Online, enter the panel provider's completion link with `${query}` appended in **Study completed URL**, as described in the setup above.

A respondent with the panel provider ID `88888` then travels:

1. To the Qualtrics survey: `https://qualtrics.com/survey?transaction_id=88888`
2. After passing screening, to the iMotions Online study: `https://my.imotions.com/collect/#s/<study ID>?transaction_id=88888`
3. After completing the study, to the panel provider: `https://panelprovider.com/study?complete=1&transaction_id=88888`

## Troubleshooting

### The panel provider does not receive its ID back

Check that the parameters are in one of the two places described in step 1, that the redirect URL contains `${query}`, and that neither URL contains two `?` characters on the same side of the `#`.

### Parameter names do not match

Names are case sensitive. The panel provider must read back exactly the names it sent.

### Invalid or missing respondent parameters

The **Data Collection** page shows **Error: Invalid respondent parameters** or **Warning: Possible incorrect or missing respondent parameters** when iMotions Online cannot parse the parameters on a respondent's link cleanly, usually because of a stray `?`, a missing `=` or an empty value. The message shows the most recent link with the problem. Check how the panel provider generates it.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.imotions.com/online/using-imotions-online-with-a-panel-provider.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
