---
updatedAt: 2025-10-16T08:15:48.000Z
agentTools:
  projectIndex: https://help.usersnap.com/llms.txt
---

# 1.1 Website widget (button, pop-up): Target

Configuration of the widget visibility (via button or pop-up)

You can easily collect feedback on your website or web application via a button or a pop-up.

<Image align="center" border={false} width="70%" src="https://files.readme.io/83baeeb-collection_type_1.png" />

## How to change the visibility of a widget or the feedback button?

To change the visibility for your widget, go to your project's "Configure" and to the tab "Target".
Users can also target the visitors by the device.

<Image align="center" border={false} width="80%" src="https://files.readme.io/40b8fe3-display_url_2.png" />

## Limit the visibility of the feedback button by URL

By adding certain URLs you can limit where the feedback button should be displayed.

If you add multiple URLs, they are joined with an OR operator.

* URL contains <https://usersnap.com>
* URL contains <https://help.usersnap.com>

This would display the feedback button on both URLs. Because we use "contains" it takes all URLs that have "<https://usersnap.com"> in it.

If you are using the "does not contain" limiter, then the URLs are joined with an AND operator.

* URL does not contain <https://usersnap.com>
* URL does not contain <https://help.usersnap.com>

In this case, the feedback buttons won't be displayed on any of these URLs.

## Limit the visibility to a specific audience

<Image align="center" border={false} width="400px" src="https://files.readme.io/e90c272-target_audience.png" />

* Everybody: The widget will be exposed to everyone.
* Nobody: The widget will be exposed to nobody (same as pausing the widget). But you can still activate it via the API if needed.
* Logged in (Known) users: The widget will be exposed to only known users. A user is known, if a user was set when initializing the widget. Please note, that at least the userID needs to be set.
  ```html
   api.init({
        user: {
          userId: "userId",
          email: "example@mail.com",
        },
      });
  ```
* Target/Exclude specific users by email: The widget will be exposed/excluded to only users with the specified email address. Please note, that the email must be added while initializing the widget.
  ```html
   api.init({
        user: {
          email: "example@mail.com",
        },
      });
  ```

<br />

## Targeting specific user properties

* Further user properties can be added when initializing the widget
* User properties can be targeted or excluded in the target audience settings.

```html
api.init({
  user: {
    userId: "123",
    email: "mail@example.test",
    cohort: "normal"
  },
});
```

<br />

There is a video that can help you understand it even better.

<Embed typeOfEmbed="iframe" url="https://usersnapat.wistia.com/medias/akq1qfq1ld" href="https://usersnapat.wistia.com/medias/akq1qfq1ld" html="false" iframe="true" height="315px" width="560px" />

<br />

> 👍 This is a gated feature
>
> Please contact our support for more details. [customer success team](https://usersnap.com/contact/)

## Further examples how to manage the visibility of the buttons or widgets

* [Display the feedback button & widgets](https://help.usersnap.com/docs/display-the-feedback-button-widgets)
* [Open the widget with your own feedback button](https://help.usersnap.com/docs/open-the-widget-with-your-own-feedback-button)

## Test the widget on your site

To test the widget, just copy "?testusersnap=APIKEY" to your site.

> 📘 Attention
>
> Usersnap uses localStorage to check whether a feedback item was already submitted or not. If the local storage is cleared by the user or automatically, the widget might pop up to the same user again.
>
> More info can be found here - [Local Storage on the Usersnap feedback platform widget](https://help.usersnap.com/docs/security#cookies-used-for-the-feedback-widget).