---
title: "Pass data through the link with custom variables"
description: "Add hidden fields to a project, put values in its link, and see them in Results, like UTM codes for a campaign."
url: https://youengage.me/help/pass-data-through-the-link-with-custom-variables/
category: "Personalize"
type: howto
modes: [Universal, Score, Match]
updated: 2026-12-04
verified: 2026-11-18
---

# Pass data through the link with custom variables

> Add hidden fields to a project, put values in its link, and see them in Results, like UTM codes for a campaign.

## Before you start

- [Share a link and a QR code](https://youengage.me/help/share-a-link-and-qr-code.md)

Hidden fields let you pass information into a project through its link, and see it next to the answers. Use them to tell apart where people came from (a campaign, a newsletter, a QR code on a poster) or to carry an ID from another system.

They work like the UTM codes you may know from analytics: a name and a value in the link, after a question mark.

## Add the variables

1. Open the project and go to the **Content** tab.
2. Above the canvas, click the gear button **Settings**. A dialog opens.
3. In the dialog, click **Custom variables** in the list on the left.
4. In the box **NEW_CUSTOM_VARIABLE**, type a name, for example `campaign`, and click **Add**. The name gets its own row with a **Remove** button.
5. Repeat for each value you want to pass, for example `source`.
6. Look at the grey box under the rows. It shows your link with every variable in it: `https://youengage.me/p/<project id>?campaign=xxxxx&source=xxxxx`. Click **Copy to Clipboard** to copy it.
7. Click **Save**.

![The Settings dialog on the Custom variables tab, with the variables campaign and source and the link that carries them](https://a.storyblok.com/f/295308468495356/2732x1720/04cff98794/pass-data-through-the-link-with-custom-variables-custom-variables.png)

> [!NOTE]
> Each variable also shows up in the screen list on the left as a **Short text** screen with no title, above your questions. That is the variable. People never see it. To get rid of a variable, click **Remove** in this dialog instead of deleting the screen.

## Put the values in the link

Replace each `xxxxx` with the real value, and publish the project if you have not yet (see [Share a link and a QR code](https://youengage.me/help/share-a-link-and-qr-code/)). A link for one campaign could be:

```
https://youengage.me/p/<project id>?campaign=spring-sale&source=newsletter
```

Use the name exactly as you typed it in the dialog. You can send a different link to each group of people, and one project can have any number of them.

## See the values in Results

1. Open the project's **Results** tab and click **Summary**.
2. Find the block named after your variable, for example **CAMPAIGN**. It lists every value people arrived with and how many times (`spring-sale ×1`).

The values are saved as soon as the page opens, before the person answers anything. Someone who only opens the link and leaves appears as a **Partial** response, and their value is counted too.

> [!NOTE]
> The **Responses** table does not have a column for custom variables. Use **Summary** to read them.

## What happens next

Custom variables can also be used in [automations](https://youengage.me/help/how-automations-work/): a form submission automation can check them under **and if** (the group **Custom variables**), and an email can insert them when you type **@**.

## Troubleshooting

- **A value does not show up in Results.** Check that the name in the link is exactly the name in the dialog, and that the link has a `?` before the first name and `&` between names.

## Related articles

- [Share a link and a QR code](https://youengage.me/help/share-a-link-and-qr-code.md)
- [View and filter responses](https://youengage.me/help/view-and-filter-responses.md)
- [How automations work](https://youengage.me/help/how-automations-work.md)
