Skip to content
youengageHelp center

Type a question or a feature name.

All help topics

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

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

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.

Replace each xxxxx with the real value, and publish the project if you have not yet (see Share a link and a 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: 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.
  • Share a link and a QR code

    Copy your project's link or download its QR code from the Share tab, so people can open your project.

  • View and filter responses

    Open the Results tab to read every response in a table, then narrow it down by completed or partial, by date and by a chosen answer.

  • How automations work

    An automation starts on a trigger, can narrow itself with conditions, then runs steps such as a delay or an email. Here is each part and when to use it.