Skip to main content

Set up an Audience for your Website or in-product survey

Target your Website surveys to identified visitors

Written by Agnieszka

After creating a website or in-product survey, you can show it to all visitors or limit it to a specific group.

This article walks you through the Audience options and how to configure them.


When you create a new Website or in-product survey, the default Audience will be All Visitors.

You can change it to one of the custom Audiences we will talk about in this article, or to All logged-in users:

It's a great solution if you'd like to enable a survey for all identified users.

💡 It requires you to pass user information to Survicate, including user_id. Without it, the survey won't display.

If your use case is more complex, keep on reading to learn about the custom Audience settings, which you can choose for your survey.

Visitors (frontend targeting)

Visitors targeting identifies people with an ID stored in their browser. Responses are anonymous by default.

To see who responded, send respondent details (attributes such as email or plan) from your website or web app with the JavaScript SDK. You’ll see these attributes in the Analyze tab, and you can use them to target the survey at a specific group.

📌 Respondent IDs are stored in the browser, so Survicate treats someone who visits from a different browser or device as a new visitor.

To set up this audience, in the survey's Audience tab, select +Add audience ➡️ Visitors:

Enter a name for your audience and click Create audience.

You can define your audience based on various Filters, with up to 50 filters in an Audience:

To target a survey based on respondent attributes that you will pass to Survicate, select and use the Attributes filter.

Remember to enable your Audience(s) when ready:

Backend targeting

Backend targeting (Users and Manual audience) stores user IDs on Survicate’s servers rather than in the browser, so Survicate recognizes the same person on any browser or device.

📌 Because of caching, surveys that use backend targeting may not appear right away. If the survey needs to show immediately, use an event-based trigger with optional properties instead.

❗️ We recommend protecting surveys for logged-in users with a secret key and a user key, so no one can pretend to be one of your users. The keys are off by default. Learn how to set them up in Securing surveys with secret user keys.

Users

Users targeting shows surveys based on user IDs and attributes you send from your website or web app. This is how it works:

  1. Your website or app sends user data to Survicate.

  2. Survicate saves it on its servers.

  3. When the user visits, Survicate checks whether they match your audience and decides whether to show the survey.

❗️Each user needs a user_id attribute with a value that’s unique to them, such as a numerical ID or email address (for example, user_id=12345 or user_id=email@example.com). Learn how to pass user_id in this article.

Additionally, the user IDs can be dynamically changed in your web-app or website, and the survey will automatically know whether a certain user belongs to an Audience or not.

You can use Users targeting to reach people who, for example:

  • Have a specific email domain, ID, or name

  • Did something during a logged-in visit, such as adding products to the cart without completing the purchase, or removing an item from Favorites

To set up such an audience, you should go to Audience tab, and select +Add audience ➡️ Users:

Click Add filter ➡️ Attributes to define which visitors should see the survey:

You can then refine your audience further by choosing whether to include or exclude users based on specific attributes:

Optionally, add other filters, for example, Events:

Add the Event name and, if you'd like to narrow down the Audience further, specify the required number of event occurrences, or the time of the first and last occurrence:

Then, click on Create audience.

Remember to enable your Audience(s) when ready:

🔒 Because targeting data is stored on our servers and not in respondents' browsers, this is the safest option if you target by personal data, such as email addresses.

Manual audience uploaded via CSV file

A Manual audience works like Users targeting, but you upload user data in a CSV file instead of sending it from your website or app.

📌 This audience is static: Survicate targets the exact user_id values you upload. If a user’s ID changes in your website or app, they no longer match the audience.

For example, if you upload user_id = John Smith and the user later changes their name to Joe Smith in your app, the survey is still targeted at John Smith. It won’t show to that user under their new name.

CSV file requirements:

  • A column named user_id with a unique value for each user (such as a numerical ID, email, or name)

  • Up to 10,000 rows and 100 columns

  • A maximum file size of 20 MB

How other columns are used:

  • Targeting is based only on the user_id column. You can’t use other columns to target the survey.

  • Other columns (such as subscription plan or company size) appear in the Analyze tab as respondent details, and you can filter results by them.

  • If any of these other attributes change in your website or app, the new value appears in the audience’s CSV table and in the Analyze tab.

To set up such an audience, you should go to Audience tab, and select +Add audience ➡️ Manual audience (CSV upload):

Then, upload a CSV file from your device.

You can also download a sample CSV file to see how the spreadsheet should look:

After adding your file, add the Audience name and click on Create audience.

Optional: remove any users you don’t want to include.

Remember to enable your Audience(s) when ready.

FAQ

Can I combine different audience types in one survey?

❗️ A survey can have only one type of targeting - either frontend or backend. Thus, the Visitors Audience cannot be joined with other audience types, while the Users and Manual audiences can be joined together.


​What happens if I have two surveys with different audience types?
​
If you have two surveys enabled and targeted at the same website or app, and one is frontend-targeted and another one is backend-targeted, the frontend one will be shown first.

Troubleshooting

My survey shows up with a delay

When someone visits a page or app screen, Survicate checks which surveys they're eligible to see and sends the results back to the browser or app. Each result includes a cache period — a timer that controls how long those results are remembered before the system checks again. Once the timer runs out, Survicate re-checks for any new or updated surveys.

Cache periods: 5 minutes when audience conditions are not satisfied, 5 minutes when they are satisfied, 5 minutes when a survey is not available to a user, and 90 seconds when a survey is available.


​At the moment, it's not possible to adjust or clear the cache. If instant survey appearance is important to you, instead of audience-based targeting, we'd recommend using a regular event trigger with optional properties.

I see duplicate responses despite setting up the Users audience

If you first set the Visitors audience and then you changed to the Users audience, the survey will be displayed to the respondents who already answered, despite the targeting settings — their response history wasn't tied to a user ID on our servers.
​
Nevertheless, if you change to the Visitors audience back, the respondents will be remembered.
​

Did this answer your question?