> ## Documentation Index
> Fetch the complete documentation index at: https://docs.smartinterview.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Smartinterview: URL Parameters and Redirects

<Frame>
  <img src="https://mintcdn.com/pulsepartners/mHiFrpSV3UfuXPnd/images/URL-Parameters-main.png?fit=max&auto=format&n=mHiFrpSV3UfuXPnd&q=85&s=da95c82083abbfe0acb8a42785bc62ef" alt="URL parameters" width="806" height="316" data-path="images/URL-Parameters-main.png" />
</Frame>

## **URL Redirects: Intro**

SmartInterview uses URL parameters to manage redirects and preserve respondent-level information such as IDs or contextual variables.\
They enable key workflows, including participant tracking, personalized interviews, and integrations with third-party research tools.

> ***Note***\
> *This article is intended for studies that are manually distributed using your own panel/email/CRM list.*\
> *If respondents are recruited directly through SmartInterview panels, URL parameters are handled automatically and do not require manual setup.*

***

## **What are URL parameters?**

URL parameters are additional pieces of information appended to the end of a URL.

Example:  “[https://example.com/page?id=123\&lang=en”](https://example.com/page?id=123\&lang=en”)

includes two URL parameters: “id” (set to “123”) and “lang” (set to “en”).

When a user is redirected to a website, these parameters can be **read and processed** by the destination platform, in this case, SmartInterview, allowing it to adapt behavior, store metadata, or personalize content.

***

## **How URL parameters work in SmartInterview**

**Incoming Redirects**

When a respondent opens a smartinterview link that contains URL parameters, **all parameters are automatically captured and stored** in the response data.

<Frame>
  <img src="https://mintcdn.com/pulsepartners/mHiFrpSV3UfuXPnd/images/URL-parameters.png?fit=max&auto=format&n=mHiFrpSV3UfuXPnd&q=85&s=c5944470c3feabc1371520719b0c0d2e" alt="URL parameters" width="656" height="512" data-path="images/URL-parameters.png" />
</Frame>

**Example**

`https://www.smartinterview.ch/en/83286d1a-27a9-4d9c-877f-c58f8a44b373?user_id=user_1x9d&v1=1`

SmartInterview will automatically store:

* `v1=1`
* `user_id=user_1x9d`

These values are available in:

* The respondent transcript
* Response-level metadata (in order to create conditional forms, for example)
* Redirects back to external tools

***

## **Manually Adding URL Parameters**

If you want specific URL parameters to appear as dedicated columns in the Builder table, you can define them manually.

<Frame>
  <img src="https://mintcdn.com/pulsepartners/mHiFrpSV3UfuXPnd/images/Manually-Adding-URL-Parameters.png?fit=max&auto=format&n=mHiFrpSV3UfuXPnd&q=85&s=3d8e85ed827b64a7b968d76408367f0d" alt="Manually Adding URL Parameters" width="2048" height="1434" data-path="images/Manually-Adding-URL-Parameters.png" />
</Frame>

## **Intermediate Redirects**

* At the end of an interview or in the middle, respondents can be redirected to an external URL. Using multiple (here red1 and red2)

<img src="https://mintcdn.com/pulsepartners/mHiFrpSV3UfuXPnd/images/Intermediate-Redirects.png?fit=max&auto=format&n=mHiFrpSV3UfuXPnd&q=85&s=53c057f18156266427bfaaffa77956b9" alt="Intermediate Redirects" width="1148" height="144" data-path="images/Intermediate-Redirects.png" />

* In order to do so, design a "Redirection" component in "Layout Type."

<Frame>
  <img src="https://mintcdn.com/pulsepartners/mHiFrpSV3UfuXPnd/images/Intermediate-Redirects-laps-type.png?fit=max&auto=format&n=mHiFrpSV3UfuXPnd&q=85&s=c5f19f0bea5d59fd71bd9e451057fcf3" alt="Intermediate Redirects" width="1988" height="1190" data-path="images/Intermediate-Redirects-laps-type.png" />
</Frame>

When you click on "Redirection," you can choose to redirect to [example.com](http://example.com).

## **Conditions with URL passed parameters**

Once you have defined URL parameters, you are able to use them in  "display" conditions per question in order to show/not to show these depending on the value

<Frame>
  <img src="https://mintcdn.com/pulsepartners/mHiFrpSV3UfuXPnd/images/URL-passed-parameters.png?fit=max&auto=format&n=mHiFrpSV3UfuXPnd&q=85&s=43bda4d7412e5a02e7b920d496f7e610" alt="URL passed parameters" width="1974" height="1128" data-path="images/URL-passed-parameters.png" />
</Frame>

## **Preserving Parameters on Redirect**

* When you clicked on "Redirection" you have to choose the redirection and pass the parameters
  * **Example:**
    * `https://example.com/de-CH/survey/96e6fb16-79a3-49db-bece-51ab50b81b20?user_id={{user_id}}&v_1={{v_1}}&a_001={{a_001}}`
    * If you want to pass` user_id, v_1 and a_001` <img src="https://mintcdn.com/pulsepartners/mHiFrpSV3UfuXPnd/images/Preserving-Parameters-on-Redirect.png?fit=max&auto=format&n=mHiFrpSV3UfuXPnd&q=85&s=16262415f753e79b8a41809a30f4eea4" alt="Preserving Parameters on Redirect" width="1950" height="1228" data-path="images/Preserving-Parameters-on-Redirect.png" />

## **Outgoing Redirects**

1. With the initial subscription "Essential". You have to keep the smartinterview logo.
2. With "Starter" or "Elite" you can choose another logo (yours or another)

<Frame>
  <img src="https://mintcdn.com/pulsepartners/mHiFrpSV3UfuXPnd/images/Outgoing-Redirects.png?fit=max&auto=format&n=mHiFrpSV3UfuXPnd&q=85&s=66fab33c1c8a644850dd702be13943ee" alt="Outgoing Redirects" width="1972" height="1218" data-path="images/Outgoing-Redirects.png" />
</Frame>

In the Redirect URL field, paste the URL that participants will be redirected to.

<Frame>
  <img src="https://mintcdn.com/pulsepartners/mHiFrpSV3UfuXPnd/images/Redirect-URL-field.png?fit=max&auto=format&n=mHiFrpSV3UfuXPnd&q=85&s=1bbee22daf139fceb9d3d32267c3b25b" alt="Redirect URL field" width="1950" height="1228" data-path="images/Redirect-URL-field.png" />
</Frame>

## **Next Steps**

You’re now ready to start using URL parameters and redirects in SmartInterview. If you need help setting things up or have advanced questions, reach out to us at [**info@smartinterview.ai**](mailto:info@smartinterview.ai)

Start your online smartinterview survey with the button below:
