Control the visibility of buttons and widgets

How do change the visibility of a widget or the feedback button?


Usersnap snippet code (global snippet)

Please note that Usersnap snippet code (aka "Global Snippet") needs to be installed on your website or inside your web product and the project needs to be "set live".

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

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.

This would display the feedback button on both URLs. Because we use "contains" it takes all URLs that have "" in it.

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

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

Limit the visibility to a specific audience

  • Everybody: The widget will be exposed to everyone.
  • Nobody: The widget will be exposed to nobody (same as pausing the widget). But you can activate it via the API
  • Known users: The widget will be exposed to only known users. A user is known, if a user was set when initialising the widget. Please note, that at least the userID needs to be set.
  • Target specific users by email: The widget will be exposed to only users with the specified email address. Please note, that the email must be added while initializing the widget.

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

Test the widget on your site

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

Did this page help you?