> 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/lab/remote-data-collection/getting-started-with-online-data-collection/rdc-cross-communication-with-other-websites.md).

# RDC cross communication with other websites

Pass parameters between an RDC study and external websites with HTTP GET requests, and redirect respondents after the study.

The iMotions remote data collection (RDC) module can exchange information with external websites using the HTTP GET method. This article explains how the parameters are passed and how to redirect respondents to another website after the study.

Cross communication with iMotions RDC works in two ways:

1. iMotions parses HTTP GET requests sent through the iMotions study link. iMotions stores parameters sent through the study link and passes them on to any websites visited during the study, or to the website the respondent is redirected to when the study is complete. See [Redirecting respondents after the study with HTTP GET requests](#redirecting-respondents-after-the-study-with-http-get-requests).
2. iMotions sends study-specific information (iMotions respondent ID, iMotions study name, iMotions stimulus name), as well as the queries sent to iMotions, to any websites accessed during or after the study. The HTTP GET requests are automatically appended to the end of any website address tested in iMotions, but they must be queried in a specific way for a redirect link. See [Redirecting respondents after the study with HTTP GET requests](#redirecting-respondents-after-the-study-with-http-get-requests).

## Using the HTTP GET method

The HTTP GET method depends on queries appended to the end of a URL in a specific way. For example:

`http://example_url.com?VariableName1=value1&VariableName2=value2`

In this example, two variables and their values are appended to the end of a URL. The variables and their values are packed into a query string of variable/value pairs that starts with `?`. Each variable is linked to its value with `=`, and pairs are separated by `&`. You can append as many variable/value pairs to a URL as you need.

The website that receives the variable/value pairs (`example_url.com` in the example) must be able to parse the queries to read and save them. In Qualtrics, for example, you can create Embedded Data to parse HTTP GET requests as long as the variable names match. Capitalization matters.

Some things to consider about the HTTP GET method, from [W3Schools HTTP request methods](https://www.w3schools.com/tags/ref_httpmethods.asp):

1. GET requests can be cached.
2. GET requests remain in the browser history.
3. GET requests can be bookmarked.
4. GET requests should never be used when dealing with sensitive data.
5. GET requests have length restrictions.
6. GET requests are only used to request data, not to modify it.

## Redirecting respondents after the study with HTTP GET requests

To fit RDC into an existing workflow, you can set up a URL that the respondent is redirected to after the study is finished. You can also set up a URL that the respondent is redirected to if they decline consent to take part in the study.

If the redirect URL contains any of the following tokens, they are replaced with the associated values when the redirect occurs:

| **Token**            | **Replacement value**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `${studyId}`         | Study database ID.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `${respondentId}`    | Respondent database ID.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `${respondentLabel}` | <p>Respondent label, as shown in the interface or test plan.<br>For example, the redirect URL <code><https://example.com?resp=${respondentLabel}></code> redirects the respondent named RESP0005 to <code><https://example.com?resp=RESP0005></code>.</p>                                                                                                                                                                                                                                                                                                                                                                                   |
| `${query}`           | <p>Parameters from the end of the RDC URL, for example <code><https://my.imotions.com/collect/#s/12345?panel=67890&#x26;rid=384873></code>.<br>With the redirect URL set to <code><https://example.com?${query}></code>, that respondent is redirected to <code><https://example.com></code> with the variables <code>panel=67890</code> and <code>rid=384873</code> passed along.<br>Place the <code>?</code> and the parameters after everything else in both the data collection URL and the redirect URL. If the data collection URL already contains a <code>?</code>, append a <code>&</code> instead of a second <code>?</code>.</p> |


---

# 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/lab/remote-data-collection/getting-started-with-online-data-collection/rdc-cross-communication-with-other-websites.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.
