Audience and page targeting allows you to hide and show the Userback widget to different target groups.
There are several ways to achieve this within Userback including:
Device Targeting: Target users who are using a specific device type
All pages: Target users on all pages where the widget code is installed
Do not show the widget: Use the JS API to trigger and control the Userback widget
Using the widget query string: Only display the Userback widget to users who visit the page using the code parameter
URL Matching: Specify how the Userback widget displays with advanced URL targeting.
Time on page: Automatically display the Userback widget after the user has been on the page for a specific amount of time.
Accessed the Audience and page targeting settings via Project Settings > Widget menu > expand the Targeting Card
By default, the Userback widget will display for users on all devices. If you don’t want your widget to display on mobile devices, simply de-select the phone option.
Here is an example to only show the Userback widget on desktop devices.
💡 TIP - If you want to temporarily stop the feedback widget from displaying to all users, rather than changing or removing the widget code from your site, simply deselect all the device types here.
Show the Userback widget on all pages where the widget code has been installed.
Do not show the widget
Widget Query String
Use the widget query string to display the Userback widget only when someone uses the query string at the end of your project URL.
Selecting this option will hide the widget from all users by default. You will need to give users the full URL including the query string to display the widget.
💡 TIP - Userback will store this query string in cookie for 1 hour so that the user does not need to add it to every URL as they are navigating the website or web app.
To change how your Userback widget displays across your domains and domain paths, use the URL targeting option. Drop down the selection to choose the correct URL targeting for your use case.
URL starts with: Target all pages that have a URL, including the protocol, that starts with the entered text.
URL ends with: Target all pages that have a URL that ends in the entered text.
URL contains: Target all pages which contain the entered text. This rule is case-sensitive.
URL exactly matches: Targets a specific URL, including the protocol, and path. This option will ignore a query string and fragment.
URL is not: Target all pages that do not have the URL entered.
URL matches regex: Targets URLs that match a regular expression.
Time on Page
Select this option to open the Userback widget after a specific amount of time on a page. As an example, you may wish to ask for feedback if someone has been on the page for more than 3 minutes. Use this feature to set a time (max 600 seconds) to display the Userback widget.
🔐 Who is this article for?