When the time comes to analyse your Typeform survey results, you may want to link the survey results with the user registration data on the platform. This article explains you how to do this (before you launch your survey!).

When a registered user takes a Typeform survey, you can automatically add either their email or their user ID to the survey results, by including Hidden Fields when creating your survey.

To make sure you can link the answers in your Typeform survey to the registered users on your platform, you need to take the following steps (as explained below), before you launch your survey!

  1. add hidden fields to your Typeform survey

  2. add the Typeform survey link to a project or project timeline phase.

  3. Make sure that the survey is only accessible for 'registered users'.

If you want to be able to make the link, this means that people have to register and be logged in to be able to fill in the survey.


Side note: if you want to keep the barrier for filling in your survey as low as possible, and you don't necessarily need to be able to link the survey answers to the user registration data on the platform, you can also decide to just include a question to ask for participants' e-mail addresses in the survey itself, or not ask for an e-mail address at all. It all depends on which data you need and what you want to do with them!

However, if you want to be able to avoid double entries, then you will at least need to ask for an e-mail address to be able to filter out any duplicates.


1. Inside your Typeform survey, make sure you add 'hidden fields'

1.1/ For 'New' Typeforms (created after 2021)

You can set up hidden fields following the steps below:

  1. On the left in the admin panel, click on "Logic" > Advanced > Hidden fields

2. Fill in "@user_id" or “@email” and click on "Save".

Important: always click on “Publish” on the top right corner of the screen after making any changes to update your survey.

1.2/ For 'Classic Builder' Typeforms (created before 2021)

You can set up hidden fields following the steps below:

  1. On the left panel where you choose your question types, select “Hidden fields”

  2. Add either 'email' or 'user_id' to the top of the page to add the user data to your survey

More info

Again, don't forget to publish your changes in Typeform!

2. Embed the Typeform survey link in your project (phase)

Read this article on how to easily embed your link in the platform.

3. On your platform, make sure you give participation rights to the survey to 'registered users' only

  • If the group 'registered users' doesn't exist yet, first create this 'smart group' of users (condition 'registration date is not empty'). In this article you can read more on how to create a smart group.

The group will now appear in the dropdown of the Access Permissions:

You're done now. CitizenLab will now pass down the email or user ID from signed in users. You can then download the survey results either from your CitizenLab platform, or from Typeform directly.


Need help or support? Don’t hesitate to get in touch via support@citizenlab.co.

Did this answer your question?