Supported Targeting Rules
Produktly supports a wide range of different rules that you can use to target the features.
The same rules are currently available for all of our features
Available rules
Show on all pages
This is the easiest one, simply show the feature on every page where the Produktly script is installed
URL
The most common one, filter the feature based on the current URL of the user.
There are multiple operators you can use to check for a match, such as Equals, Contains, Doesn't contain, Starts with, Ends with, Not equal, Is one of, and Is not one of
Dynamic URLs
Sometimes you might have a URL that changes, for example, per user. Produktly supports dynamic URLs, you just have to mark the parts of the URL that are dynamic by enclosing them in these brackets . You can also define multiple dynamic parts of the URL.
For example, if you have a URL like https://example.com/users/321, and the 321 might change, you would enter https://example.com/users/{321} to the tour URL.
Note that currently, this only works when you have selected the "Equals" matcher.
Date & Time
Target a specific date and time. For example you might want to show an announcement only for certain days, and schedule it ahead, so you can use the Date & Time filter for that. This rule used to be called Current time.
You can use the following operators: Greater than or equal, Greater than, Less than or equal, Less than and Is between.
Use "Is between" to schedule a window with a start and an end, for example a campaign that runs for a week. The window includes the start but not the end.
Note that Date & Time always uses UTC as the time zone.
Day of Week
Target based on which day of the week it currently is. You can pick a specific day, or the "Weekdays" / "Weekends" shorthands. Use "Is one of" to pick several days at once, for example Monday and Thursday.
You can use the following operators: Equals, Not equal, Is one of, and Is not one of.
Like Date & Time, this is evaluated in UTC.
Time of Day
Target a time window that repeats every day, for example to show a maintenance notice from 03:00 to 04:00. Combine it with Day of Week for a weekly schedule, like every Thursday from 03:00 to 04:00.
You can use the following operators: Is between, Greater than or equal, Greater than, Less than or equal and Less than.
Things worth knowing:
- "Is between" takes a start and an end time. The window includes the start time but not the end time, so 03:00 to 04:00 stops matching at 04:00.
- If the end time is earlier than the start time, the window runs past midnight. 22:00 to 02:00 matches late in the evening and early in the morning.
- The other operators compare within each day, from 00:00 to 23:59. Greater than or equal 17:00 matches from 17:00 until midnight, and Less than 09:00 matches from midnight until 09:00.
- Times are in UTC. If your users are in a time zone with daylight saving time, the window moves by an hour in their local time when the clocks change.
- Rules are checked when a page loads and when the URL changes, not continuously. Someone who stays on the same page as the window opens will see the widget once they load or navigate to another page.
Location
We support targeting multiple different locations on the country level. For now these are only on the country level.
Location is based on the browser's time zone currently, which in most cases includes granular information about the country the user is located in (or configured their browser to).
Please don't hesitate to reach out at [email protected] if you don't see the location you would like to use.
Language
We support targeting multiple different languages.
Language is based on the browser language.
A plain language code like fr covers every regional variant (fr-FR, fr-CA), while a full locale like fr-CA only matches itself. This works with "Is one of" too, for example en, fr, es.
Please don't hesitate to reach out at [email protected] if you don't see the language you would like to use.
User Created At
Target based on how long a user has been known to Produktly. This is useful for rules like "only show this to users who are past their first day" or "only show this onboarding tour to users from their first week".
Two important notes:
- This requires identifying users. If a user has not been identified, they have no created-at date and the rule will not match.
- The date is the first time Produktly saw that user, not the date they signed up for your product. Users who already existed when you installed Produktly will have a created-at date of roughly when they first loaded a page with the Produktly script on it.
You can use the following operators:
- More than ... ago - the user was first seen longer ago than the window you set. "More than 1 day ago" excludes users who are brand new.
- Within the last ... - the user was first seen inside the window you set. "Within the last 7 days" targets only recent users.
- Greater than or equal, Greater than, Less than or equal, Less than, for comparing against a fixed date.
The two relative operators are exact opposites of each other, so you can use whichever reads more naturally for your rule.
Visit Count
How many separate visits this user has made. A visit starts when we see a request from a user whose previous request was more than 30 minutes earlier.
Use it for rules like "only show this from a user's second visit onwards".
You can use the following operators: Equals, Greater than or equal, Greater than, Less than or equal, Less than, Not equal, Is one of, and Is not one of.
Things worth knowing:
- This requires identifying users. Visitors you have not identified are not counted, and a rule on visit count will not match them.
- Visits are counted per user, not per device. Someone who uses your product on a laptop and a phone has one visit count, not two.
- We can only see the gaps between page loads, so a user who reads a single page for 40 minutes and then clicks a link starts a new visit.
- Users who already existed when this feature shipped start from a seeded baseline rather than their true historical count.
Days Active
The number of separate days this user has been active. At most one is counted per calendar day (UTC).
This is usually a better engagement signal than visit count, because it has no 30 minute window to reason about. "Active on 3 or more days" is a good way to say "this user is past trying us out".
You can use the same operators as Visit Count, and the same notes about identified users and per-user counting apply.
Device Type
Target based on the user's current device type. You can select from Desktop/Laptop, Mobile and Tablet
Screen width
Simply filter by the screen width. Produktly automatically checks the current screen width of the user and can then use that to determine whether to show the feature or not.
You can use the following operators: Equals, Greater than or equal, Greater than, Less than or equal, Less than, Not equal, Is one of, and Is not one of.
Screen height
Simply filter by the screen height. Produktly automatically checks the current screen height of the user and can then use that to determine whether to show the feature or not.
You can use the following operators: Equals, Greater than or equal, Greater than, Less than or equal, Less than, Not equal, Is one of, and Is not one of.
Custom / User attribute
By identifying users, you can use any of custom attributes you want to target Produktly features. Requires little bit of Javascript. In the rule picker, these are listed under "Custom".
For custom attributes you can use the following operators: Equals, Is one of, Is not one of, Greater than or equal, Greater than, Less than or equal, Less than, Not equal, Contains, Doesn't contain, Starts with, Ends with, Exists, More than ... ago, and Within the last ... (Note that not all operators work for all data types, e.g. for numbers we don't support "contains" or "starts with" etc.)
The "Is one of" and "Is not one of" operators allow you to match against multiple values at once. For example, you can check if a user's country is one of "US, CA, MX" or if a user's ID matches one of several specific values.
Or to further customize, you can technically build any kind of custom filtering with our Client SDK. This does require coding though.
Date attributes
The "More than ... ago" and "Within the last ..." operators work on date attributes. ISO 8601 is the safest format, for example 2026-08-22 or 2026-08-22T09:15:00.000Z. Common text formats such as Aug 22, 2026 and 08/22/2026 work too. Numeric dates are read month first, so 08/09/2026 is August 9. Epoch timestamps and values that aren't a date do not match.
When a user doesn't have the attribute
If an identified user has not been sent a given custom attribute, or it was sent as null, the rule reads it as having no value:
- "Doesn't exist", "Not equal", "Doesn't contain" and "Is not one of" match. A user with no
planis not on theenterpriseplan. - Every other operator does not match.
Visitors you have not identified at all only match "Doesn't exist". "Doesn't exist" on the built-in id attribute is a handy way to target them, for example logged-out traffic.
Widget state
Target based on what a user has already done with your other Produktly widgets. Pick a widget type, pick the widget, then pick the state.
This is the way to sequence widgets. Some examples:
- Show an NPS widget only once a user has completed your onboarding checklist.
- Show an advanced feature tour only to users who finished the basic tour.
- Skip an announcement for anyone who already dismissed a related one.
Available states depend on the widget type:
| Widget type | States |
|---|---|
| Tour | has not been seen, has been seen, has been started, has been completed |
| Checklist | has not been started, is in progress, has been completed |
| Announcement | has not been seen, has been seen, has been dismissed, has been clicked |
| Smart Tip | has not been seen, has been seen, has been clicked |
| NPS Widget | has not been seen, has been seen, has been answered |
| Micro Survey | has not been answered, has been answered |
| Feedback Widget | has not been submitted, has been submitted |
| Changelog | has not been opened, has been opened |
Things worth knowing:
- This requires identifying users. Widget state is tracked per user, so visitors you have not identified will not match a widget state rule.
- If the widget a rule points at is archived or deleted, the rule stops matching. That includes "has not" rules, which do not become true for everyone. This is deliberate, so removing a widget can never accidentally open up targeting somewhere else.
- Tour completion respects progress resets. If you reset a user's progress on a tour, they count as not having completed it.
- These rules also work inside reusable user segments, so you can define a group like "completed onboarding" once and target it from any widget.
NPS Score
Target on how a user rated you, using their most recent response to a given NPS widget.
Pick "NPS Widget" in the rule picker, choose the widget, then pick a band from the State dropdown: is a promoter, is a passive, is a detractor, is a promoter or passive, or is not a promoter. The same dropdown also holds the seen and answered states.
Some things this is good for:
- Ask promoters for a review or a referral, and nobody else.
- Send detractors into a support flow rather than an upsell.
- Follow up with everyone who is not a promoter.
Bands follow the widget's own rating scale, so they mean the same thing here as they do on your NPS dashboard. On the 0-10 scale, 9 and 10 are promoters, 7 and 8 are passives, and 0 to 6 are detractors. The 1-5 and emoji scales have their own mappings.
Things worth knowing:
- Only the most recent response counts. If someone answers again with a different score, their band changes with it.
- A user who has not answered matches no band rule, including "is not a promoter". To reach them, use the NPS Widget state rule with "has not been answered".
- If you change a widget's rating scale, older responses that fall outside the new scale stop matching any band rather than being reinterpreted.
User Segments
You can target features to specific user segments. User segments are reusable groups of users defined by rules on their properties and on how they have interacted with your widgets. Once you create a segment (e.g. "Enterprise users" or "Trial users"), you can select it as a targeting rule for any feature.
You can target a single user segment or multiple user segments at once. When targeting multiple segments, a user must match at least one of the selected segments to see the feature.
See User Segmentation for details on creating and managing segments.
Something else?
Does your use-case need a filter we don't support yet? Please don't hesitate to reach out at [email protected] and describe your use-case. We would be happy to help you, and potentially implement new filters