Use URL parameters and recall information in redirect links

Add URL parameters to your redirect links to pull information from your typeform into your website URL. Let’s say you want to track the traffic coming to your website from respondents who have been redirected to your site after they’ve completed your typeform. You can add the source URL parameter to your form and then pull the source into your website URL.

Or maybe you want to recall information from your form into your redirect link. For example, you can recall the product respondents selected in your form into your URL redirect. Or you can recall respondents’ names into your redirect link. Read on to learn how.
 

Add URL parameters to your redirect link

In the instructions below, we’ll use the example of tracking traffic coming to our website from respondents who have been redirected to our site after they’ve completed our form.

1. Open the form you would like to add URL parameters to. Then click the Workflow tab.

The Typeform builder interface focusing on the Workflow tab selection.

2. Click the + button under Pull data in.

The Workflow panel showing the plus button under the Pull data in section.

3. Toggle on any URL parameter or source tracking you want to use. Or create a custom URL parameter. In our example, we’ll toggle on utm_source and then click Save.

The URL parameters setup panel with the utm_source toggle switched on.

4. Head back to the Content panel. Click the + button next to Endings and select Redirect to URL.

The left-hand sidebar menu highlighting the plus icon next to Endings and the Redirect to URL selection.

5. Type in your website URL or the web page you want respondents to be redirected to when they complete your form. Then add /? with the name of your URL parameter, followed by the = symbol.

In our example we added /?source= to the end of our website URL.

The Redirect to URL input field showing a website address structured with a trailing question mark, parameter name, and an equals sign.

6. Then type the @ symbol after the = sign and select the URL parameter you want to pull into your redirect link. We’ll select utm_source.

Using the @ symbol in the URL redirect text field to open a dropdown menu and select the utm_source variable.

7. Then click the Share/Publish edits button to make your form live.

The top-right corner of the Typeform editor with the Publish button highlighted.

8. Next, head over to the Share panel and click Copy link.

The Share panel within Typeform highlighting the Copy link button.

9. Paste the link to where you want to share it. You’ll see that the URL parameter has been added to the end of your form link with xxxx after the URL parameter. Replace the xxxx with the data you want to track.

In our example, we want to track the traffic coming to our website from our form, so we’ll replace the xxxx with typeform. Our form link will look something like below:

https://successteam.typeform.com/to/gfv6U7Aj?utm_source=typeform

Now whenever someone completes our form and is redirected to our website, our website URL will have ?utm_source=typeform at the end. Then whatever tracking tool we use, can track how many times people have come to our website with ?utm_source=typeform.
 

If you have different sources or different data you want to track, you can manually update your form’s link by replacing the xxxx with the data you want to track. More information on using URL parameters can be found in our guide on using URL parameters.

Recall information in a redirect link

In our example below, we’ll show how you can pull a respondent’s name from the Contact Info question type and recall it into your redirect link. But you can also recall other values into your redirect link, such as answers from a question, variables, URL parameters, score, or price. Learn more in our guide on using Recall information to reference form answers.

1. Add a question in your form to capture the respondent's name. We’ll use the Contact Info question type.

The form builder structure showing a Contact Info question block added to the questionnaire.

2. Next, add a redirect to your ending. Click the + button next to Endings and select Redirect to URL.

The Endings section in the left sidebar highlighting the Redirect to URL option setup.

3. Enter the link you want respondents to be redirected to and then type /@.

A menu will appear and you can select the information you want to recall into the link. We’ll select First name from the Contact Info question.

Typing /@ in the redirect URL field to prompt the Recall information menu and selecting First name.

Then click the Share/Publish edits button to make your form live.

The Typeform interface highlighting the Publish edits button.

Now when respondents fill out your form, the first name they’ve entered in your form will be recalled in the redirect link.

Things to keep in mind

  • URL parameters can get different values as respondents fill out your typeform. When you recall information in a typeform, you’re recalling a dynamic value, not its name. For this reason, when you use a URL parameter in a redirect link, make sure to recall the URL parameter after the field’s name in the URL. In the image below, source= is the field’s name and utm_source is the URL parameter.

An example configuration of a redirect URL mapping the name field to the utm_source parameter string.

  • For security reasons, you can’t use URL parameters as the entire URL.

An interface showing an error state indicating that a raw URL parameter cannot be used as the entire target URL.

  • You can’t use URL parameters, recall information, or variables in the domain part of your URL.

An interface illustration highlighting a validation warning when variables are mistakenly added to a domain name segment.

Was this article helpful?

Have more questions? Submit a request

Tap into our community knowledge

Find answers

Can’t find what you’re looking for?

Contact support