Widget targeting: page rules, audience filters, triggers, scheduling, and use cases

Targeting determines where your widgets appear on your website, who sees them, and when they are displayed. Proper targeting helps ensure that widgets appear in the right context and at the right moment for the right audience. Instead of showing the same popup to every visitor immediately, you can tailor widgets based on factors such as page location, visitor behavior, device type, marketing campaign, customer status, and how much time a visitor has spent on the page or site.

Getsitecontrol offers flexible targeting settings that give you full control over this. You can choose which pages the widget appears on, define audience conditions, control when it starts and stops showing, and schedule it for specific dates and times.

When used effectively, targeting reduces disruption, improves engagement, and increases conversion rates by displaying widgets only when they are relevant to the visitor.

Where to find targeting settings

Targeting settings are configured in the Targeting tab when creating or editing a widget. This tab contains the options that control where a widget appears, who sees it, and when it is displayed during a visitor’s session.

A widget appears only when all relevant targeting conditions are satisfied, meaning the visitor is on an eligible page, matches the audience conditions (if any), and triggers the configured start condition. Additional settings can hide the widget under certain circumstances or prevent it from appearing again for the same visitor. The sections below explain the different parts of the targeting settings and provide a detailed overview of the options available within them.

The Targeting tab in the widget editor

Page targeting

Page targeting, labeled Display widget on in the Targeting tab, lets you specify which pages of your website the widget will appear on. By default, a widget is set to appear on all pages. The asterisk (*) at the end of your homepage URL in the Include field is a wildcard, meaning any URL starting with your domain qualifies.

Including specific pages

To show the widget on one page only, add the exact URL of that page to the Include field. If you have correctly configured your website in Getsitecontrol, your domain name will be pre-filled, so you only need to add the part of the path that comes after it. You can add as many URLs as you need by clicking + Add URL.

Excluding specific pages

To hide the widget on certain pages while displaying it everywhere else, add those pages to the Exclude field. When you click + Add URL under Exclude, you can choose Home page to exclude the homepage automatically, or choose Blank to paste any other URL manually.

Targeting subdirectories

Because the asterisk means “anything goes here,” you can use it to target or exclude entire subdirectories. For example, entering your domain followed by /blog* in the Include field will show the widget on every page whose URL begins with /blog, regardless of what follows. The same logic applies when excluding a subdirectory: add it to the Exclude field using the same wildcard pattern.

If you want to match a specific word anywhere in the URL, place an asterisk on both sides of the word. For example, lead-magnet will match any URL that contains the string “lead-magnet,” regardless of its position.

Targeting via query parameters

Query parameters appear at the end of a URL, starting with a question mark (?). The parameter name comes right after the question mark, followed by an equals sign (=) and its value. Multiple parameters are separated by an ampersand (&).

To target a specific query parameter, click Edit next to an Include or Exclude rule, find the Query section in the pop-up window, and enter the parameter name and value. The full URL string is updated automatically to reflect what you've entered.

Shopify preset pages

If your site runs on Shopify, the + Add URL button offers preset options in addition to custom URLs. You can select Cart or Product pages and the corresponding URL patterns are added to your targeting settings automatically.

The Display widget on section with Include and Exclude fields populated

Audience targeting (Pro)

The Display widget if section lets you narrow down which visitors see the widget based on their characteristics or behavior. By default, no filters are applied and the widget is shown to everyone. To add a filter, click + Add condition, choose a category from the tabs at the top of the panel, and select the condition you want to apply. Then choose an operator (is / is not, or match / does not match, in most cases) and select or enter the value. The audience targeting settings are only available on paid (Pro) plans and feature six groups of filters.

Geo

Geo filters target visitors based on their physical location. You can include or exclude visitors by country, region, or city.

Device

Device filters allow you to target visitors based on the device and software they use to access your website. This is useful when you want to adapt widgets to different screen sizes, troubleshoot browser-specific issues, or display different messages for mobile and desktop visitors.

FilterWhat it targets
BrowserThe browser the visitor is using (e.g. Chrome, Safari)
OSThe operating system (e.g. Windows, macOS, iOS, Android)
Device typeDesktop, Tablet, Mobile, or Other
LanguageThe language set in the visitor's browser
Screen widthThe width of the visitor's screen in pixels

Visit

Visit filters are based on the visitor’s behavior and browsing context during their current or previous visits to your site. These conditions help you trigger widgets based on engagement signals; for example, after a visitor has viewed several pages or spent a certain amount of time exploring your content.

FilterWhat it targets
New visitorsWhether this is the visitor's first session on the site
Previous pageThe page the visitor came from within your site
RefererThe external URL the visitor arrived from
Page viewsThe number of pages viewed in the current session
SessionsThe total number of sessions the visitor has had
Scroll depthHow far down the current page the visitor has scrolled
Time on pageHow long the visitor has spent on the current page (seconds)
Time on websiteHow long the visitor has spent on the site in the current session (seconds)

Developer

The Developer category includes advanced targeting options for controlling widget behavior using custom logic or data passed from your website. These filters allow you to target widgets using API parameters, cookies, visitor IP addresses, or custom JavaScript conditions.

FilterWhat it targets
API parameterA custom parameter passed via the Getsitecontrol API
IP addressA specific IP address or addresses
CookieThe presence or value of a browser cookie
HTML conditionA custom JavaScript expression that evaluates to true or false

The IP address filter is particularly useful for testing: by targeting your own IP, you can see the widget on your site without it being visible to other visitors.

The HTML condition filter allows you to target widgets based on elements present on the page. With this option, the system evaluates a custom JavaScript condition that checks for specific HTML elements. For example, you can use it to detect whether a page contains an element indicating that products are present in the cart and target visitors based on this information.

How to set up a custom HTML targeting condition

UTM

If you use UTM parameters to track marketing campaigns, you can use them to target or exclude visitors arriving from those campaigns. The five supported parameters are UTM Campaign, UTM Content, UTM Medium, UTM Source, and UTM Term. You will need to type or paste the values manually.

Shop (Shopify only)

Shopify users have access to an additional filter category called Shop, which covers cart content, customer attributes, and data about the product or variant currently viewed by the visitor.

Filter groupWhat it targets
Cart total priceThe combined price of all items in the cart
Cart discountThe total amount discounted from the cart in the shop’s currency
Cart items countThe number of items in the cart
Cart productThe product in the cart
Cart product typeThe type of product in the cart
Cart variantThe variant in the cart
Customer logged inWhether the customer is logged in to their account
Customer tagA tag assigned to the customer in Shopify
Customer order countThe total number of orders the customer has placed
Customer total spentThe total amount the customer has spent
Customer subscription statusWhether the customer has opted in to receive marketing emails
ProductThe product currently being viewed
Product typeThe type of product currently viewed
Product vendorThe vendor of the currently viewed product
Product tagThe tag assigned to the currently viewed product
VariantThe selected variant of the viewed product
Variant availabilityWhether the currently viewed variant is in stock
Variant priceThe price of the selected variant of the viewed product

Cart filters are useful for cross-selling and upselling: for example, you can show a popup promoting related items when a specific product is in the cart. Customer filters let you target segments based on purchase history, such as showing a discount popup only to customers who have placed at least two orders. Variant availability lets you show a widget specifically when the currently viewed variant is out of stock.

Combining multiple audience conditions

You can set multiple conditions and connect them with AND or OR operators. When two conditions are connected with AND, the visitor must meet all conditions for the widget to appear. When connected with OR, the widget appears if the visitor meets at least one of them. Note that negative conditions, such as Device is not Desktop or Visitor is not new, can only be combined with an AND operator.

For more complex logic, you can group conditions into segments. Each segment acts as a unit, and segments themselves can be connected with AND or OR. For example, you could create one segment targeting visitors from Spain or Germany, then add a second segment excluding visitors from certain cities in those countries. The AND operator is applied automatically between segments when you add a new one, and you can change it by clicking on it.

The Display widget if section with two segments connected with AND, containing two conditions each

Start triggers (Pro)

The triggers under Start displaying widget determine when the widget appears once a visitor has landed on a targeted page and meets the audience conditions. By default, the trigger is set to Automatically, which means the widget appears as soon as the visitor arrives, provided all other conditions are met.

To add a trigger, click + Add trigger and choose from the available options. For most triggers, you also need to specify a value, such as a number of seconds or a scroll percentage. Once you have finished configuring the trigger, click Done to save it. After adding a new trigger, make sure to remove the automatic trigger if it no longer applies. The start triggers beyond the default Automatically are only available on paid plans. The available triggers are described below.

Exit intent

The Exit-intent trigger shows the widget when the visitor's mouse moves toward the top of the browser window, which typically signals an intention to leave the page, for example, to close the tab, switch tabs, or type a new address. Because this behavior is detected through mouse tracking, exit intent does not work on mobile or touch devices. For mobile visitors, you can create a separate version of the widget, target it at mobile visitors only, and set a scroll depth or time delay trigger instead.

Scroll depth

The Scroll depth trigger displays the widget once a visitor has scrolled a specified percentage down the page. This is useful for long-form content like blog articles, since it helps ensure the popup is shown only to visitors who are genuinely reading the page.

Inactivity

The Inactivity trigger shows the widget to visitors who have been on the page for a period of time without interacting. This can be used to re-engage visitors who have paused on the page, offer assistance, or present a special offer.

Time on page

The Time on page trigger delays the widget until a visitor has spent a specified number of seconds on the current page. Showing a widget too early can interrupt the visitor's experience, while waiting too long risks the visitor leaving before the widget appears. Use this trigger to find the right balance.

Time on website

The Time on website trigger works similarly to time on page, but is based on the visitor's cumulative time across all pages of your site in the current session. This is useful when you want to apply a longer delay without the risk of the visitor navigating to a different page and missing the widget.

Shopify cart triggers

Shopify users have access to two additional triggers: Adding to cart, which shows the widget as soon as a customer adds a product to the cart, and Removing from cart, which shows it when a product is removed. These can be used to present upsell offers, discount codes, or feedback requests at key moments in the shopping process.

It is not possible to specify which product is added to or removed from the cart when configuring these triggers. However, you can combine them with page targeting conditions to display the widget only on specific product pages. This way, the trigger will activate only when that particular product is added to or removed from the cart.

Showing widgets programmatically

It is also possible to display a widget when a visitor performs a specific action on your site, such as clicking a button, link, or image. In this case, all triggers should be removed from the Start displaying widget section. Triggering widgets programmatically requires some programming knowledge and configuration outside the Targeting tab.

Display widgets based on your site logic (e.g. button clicks)

Combining multiple start triggers

Multiple start triggers are always connected with OR, meaning the widget will appear as soon as any one of the specified conditions is met. For example, if you add both a scroll depth trigger at 50% and a time on page trigger at 10 seconds, the widget will appear whichever of those two events occurs first.

The Start displaying widget section with a scroll trigger and an exit intent trigger connected with OR

Hide widget (Pro)

The Hide widget section lets you automatically dismiss the widget under specific conditions, without the visitor needing to click the close button. By default, the hide trigger is set to Automatically, which means the widget disappears when the Display widget if conditions are no longer met.

For example, if a widget is set to appear at 30% scroll depth and the hide trigger is set to Automatically, the widget will disappear if the visitor scrolls back above the 30% mark. In a Shopify context, if a widget is configured to appear when the cart total exceeds $50, setting the hide trigger to Automatically means the widget will disappear if the cart total drops back to $50 or below, and reappear if the total rises again.

Beyond the default Automatically option, you can choose from the following hide triggers to define when the widget disappears. These options are only available on paid plans.

Displaying time

You can set the widget to hide automatically after it has been displayed for a certain number of seconds. This applies even if the visitor has not interacted with it.

Scroll depth

This option hides the widget once the visitor reaches a specified scroll depth on the page, allowing you to remove it after it has served its purpose.

Combining multiple hide triggers

Hide triggers are always connected with OR. The widget will be hidden as soon as any one of the configured conditions is met. For example, you can combine a displaying time trigger with the automatic trigger so that the widget is hidden after a set amount of time or when the targeting conditions are no longer met, whichever happens first.

Stop conditions

The Stop displaying widget section controls when the widget stops appearing for a returning visitor. By default, a widget is set to stop appearing for a visitor for one day after they close it, and permanently after they take action on it.

You can remove the default conditions or replace them by clicking + Add condition. If no conditions are set in this section, the widget will be shown to eligible visitors every time they visit the site. There are five stop conditions available.

Upon action

This condition prevents the widget from reappearing after the visitor has clicked an action button on it. Action buttons are those performing one of the following actions: Submit, Open URL, Copy to clipboard, Show widget, Add to cart (Shopify), or Apply discount (Shopify). Visitors who only view the widget or close it using the X button or a button with a Close action will continue to see it. You can choose to stop displaying the widget permanently or for a defined period of time.

After closure

This condition stops the widget from appearing for a period of time after the visitor closes it using the X or a button with a Close widget action. This prevents the widget from being shown repeatedly to visitors who have already dismissed it. You can set the period in minutes, hours, or days, or configure it to last permanently.

After hiding

This condition controls how long after being automatically hidden (via the Hide widget triggers) the widget waits before appearing again. You can configure the time interval after which the widget can appear again.

Upon view

This condition prevents the widget from appearing for a defined period of time after a visitor has seen it, regardless of whether they interacted with it. It is particularly useful for informational popups such as cookie consent notices.

Upon X views

This condition stops the widget from appearing once a visitor has seen it a specified number of times. After reaching the view limit, the widget no longer appears for that visitor for a defined period or permanently.

Combining multiple stop conditions

Multiple stop conditions are always connected with OR, meaning the widget pauses for a visitor as soon as any one of the conditions is met. For example, combining Upon action set to stop permanently with After closure set to 7 days means visitors who engage with the widget will never see it again, while visitors who only closed it will see it again after a week.

The Stop displaying widget section with an After closure condition and an Upon action condition combined with OR

Schedule (Pro)

The Schedule section allows you to define date ranges, times of day, and days of the week during which the widget will be active. This is useful for time-limited promotions, event announcements, or service notifications tied to business hours.

To add a scheduling condition, click + Add condition in the Schedule section and choose one of the options: Date, Time, or Days of week. Click Done to save the condition. Note that the widget must also be activated from the All widgets section. A scheduled widget will not appear if it has not been turned on, regardless of the schedule settings. The schedule option is only available on paid plans.

Date, Time, and Days of week

The Date condition lets you set a start date and an end date. The widget becomes active at 12:00 AM on the start date and stops appearing at 11:59 PM on the end date, both in the visitor's local time. The Time condition lets you specify a time range and a time zone. The Days of week condition restricts visibility to selected days.

Combining scheduling conditions

Scheduling conditions can be combined using both AND and OR operators. When connected with AND, the widget is shown if all conditions are true simultaneously. For example, a Days of week condition set to weekdays AND a Time condition set to 9:00–17:00 would restrict the widget to business hours on working days only.

When connected with OR, the widget is shown if at least one condition is met. For example, two separate Time conditions connected with OR would show the widget during each of those time windows, which is useful for communicating support availability across different periods in a day.

For more complex combinations, such as different hours on weekdays versus weekends, you can use segments. Each segment can contain its own set of AND-connected conditions, and segments are then connected with OR. This allows you to express scenarios like: show the widget Monday to Friday from 9:00 to 17:00, or on Saturday from 9:00 to 13:00.

Within each segment, make sure the conditions are connected with AND. Between segments, use OR, since a visitor can only be in one time window at a time.

The Schedule section showing two segments connected with OR and conditions within them connected with AND

Troubleshooting checklist

If a widget is not displayed as expected, one or more targeting settings may be preventing it from appearing. Review the checklist below to confirm that the configured conditions allow the widget to be shown.

SettingWhat to verify
Widget activationConfirm that the widget is turned on in the All widgets section.
Page targetingEnsure the current page matches the Display widget on rules and is not excluded.
Audience filtersVerify that the visitor meets the conditions configured under Display widget if.
Start triggersConfirm that the required start trigger has been reached, such as scroll depth or time on page.
Hide widgetCheck whether a hide trigger is causing the widget to disappear.
Stop conditionsVerify that the widget has not been paused due to closure, previous views, or actions taken.
SchedulingEnsure the schedule settings allow the widget to appear at the current time.

Common targeting scenarios

The targeting settings described above can be combined in different ways depending on the goal of the widget. The examples below illustrate how several targeting options can work together to achieve common outcomes.

Showing a welcome popup to new visitors

If you want to greet first-time visitors without interrupting them immediately, you can combine a visitor condition with a short delay. This gives visitors time to orient themselves before the widget appears. With the following setup, the widget appears only to visitors who are browsing your site for the first time and only after they have spent a few seconds on the page.

SettingConfiguration
Audience targetingVisit → New visitor = Yes
Start triggerTime on page = 5–10 seconds

Add a welcome popup to your website for free (templates and best practices)

Displaying a signup form on blog articles

Content pages are often a good place to invite readers to subscribe to a newsletter or download a resource. By combining page targeting with a scroll trigger, you can display the widget only to readers who are actively engaging with the article. The following settings ensure the widget appears only on blog posts and only after the visitor has scrolled through a meaningful portion of the page.

SettingConfiguration
Page targetingInclude /blog*
Start triggerScroll depth = 30–50%

Offering a discount for a cart value (Shopify)

Shopify stores can use cart-based targeting conditions to show offers when customers show strong purchase intent. With this configuration, the widget appears when a visitor’s cart reaches the specified value, making it useful for promoting free shipping or limited-time discounts.

SettingConfiguration
Audience targetingShop → Cart total price ≥ chosen threshold
Start triggerAutomatically

Offering a deal when a product is added to cart (Shopify)

Displaying a widget immediately after a product is added to the cart can be useful for suggesting complementary items, offering a bundle discount, or encouraging customers to complete their purchase. With the following targeting settings, you can ensure the widget appears when a specific product is added to the cart.

SettingConfiguration
Page targetingInclude product page URL
Start triggerAdding to cart

Showing support notifications during business hours

Some widgets are only relevant at certain times of day, such as support availability messages or service announcements. This ensures the widget appears only when support staff is available to respond.

SettingConfiguration
ScheduleDays of week = Monday–Friday
ScheduleAND Time = business hours

Summary

Each section of the Targeting tab controls a different aspect of widget behavior. Page targeting defines where the widget can appear, audience filters determine who is eligible to see it, and start triggers control the precise moment it appears within a session. Hide rules and stop conditions manage how and when the widget disappears, both within a single visit and across return visits. Scheduling lets you activate widgets only during relevant windows.

Used together, these settings allow for precise control over how widgets behave across your website. A widget shown to the right visitor, on the right page, at the right moment is more likely to achieve its intended goal and less likely to be disruptive.