Skip to main content

How to Set Up URL Rules in Skyra

Updated over 4 months ago

With URL rules in Skyra, you can easily determine where a popup survey should be displayed or hidden on your website.

There are two types of rules you can use:

  • Display rules (Show survey) – Defines where the survey can be shown.

  • Hiding rules (Hide survey) – Defines where the survey should not be shown.

The rules have two additional settings:

  • Whether the rule should apply to all subpages of the specified URL.

  • Whether a survey that has started can follow the user beyond the specified URL.

How to set up URL rules

  1. Go to Survey β†’ Settings.

  2. Find the section URL rules.

  3. Select a rule and enter the desired URL.

  4. Choose any additional settings.

1. Display Rules (Show survey on)

Use display rules to determine where the survey should appear. The easiest method is to copy and paste the desired URL into the text field to avoid small typing errors. The text field automatically extracts the domain and path from the input.

Example

If the Show rule is set to https://example.com/myPage and no checkboxes are selected, the survey will only start on the specified URL and disappear if the user navigates away from this page.

πŸ’‘ Tip: The easiest way to set this up is to copy and paste the desired URL to avoid typing errors.

Additional settings for Show survey

1. Also show at all pages below the address

This setting ensures that the survey can appear on this page and all subpages.

Example 1:

If the Show rule is set to https://example.com/myPage and the option "Also show at all pages below this address" is enabled, the survey will also start on the subpages, marked in green.

2. Allow started survey to follow users outside this path as well

This setting ensures that once the survey has started, it can continue to follow the user even if they navigate away from the defined path. This is useful if you want users to complete the survey they have already started.

Example 2:
If the Show rule is set to https://example.com/myPage, the survey will only start here (marked in green). However, if "Allow started surveys to follow users outside this path as well" is enabled, the survey will also appear on the pages marked in white.

πŸ’‘ Tip: Use this option if you want a survey to follow the user across pages but not start on pages you haven’t specified.


Hiding Rules (Hide survey on)

Use hiding rules to control where a survey should not be displayed. Hiding rules take precedence over display rules. If a page has both a display rule and a hiding rule, the survey will not be shown.

Example 3

In this example, two rules are set up:

  1. Show survey on https://example.com/showHere

    1. Also show at all pages below this address is enabled.

  2. Hide survey on https://example.com/showHere/andHere/butNotHere.

Result:
The survey starts and follows through all subpages of showHere, but is hidden if the user navigates to butNotHere, marked in red in the image.

Additional settings for Hide survey

1. Also hide at all pages below the address

The survey is hidden on this URL and all subpages.

Example 4:

  • Show survey on https://example.com/showHere, with "Also show at all pages below" enabled.

  • Hide survey on https://example.com/showHere/andHere/butNotHere, with "Also hide at all pages below this address" enabled.

Result:
The survey starts and follows all subpages of showHere, but is hidden if the user navigates to butNotHere or maybeHere, marked in red.

2. Allow started surveys to continue on hidden pages

If a user has started a survey on a page where it is allowed, it can follow them to a hidden page. This ensures that users can complete the survey they started, but prevents new surveys from appearing on hidden pages.

Example 5:
A survey started on /showHere will still follow the user and be visible on /showHere/andHere/butNotHere, but it will not start there if the user navigates directly to the hidden page.


Survey Prioritization

When multiple surveys could potentially be displayed on the same webpage, Skyra uses a point system to determine which survey will be shown first. This system is based on how precisely the rule matches the user's current URL:

  • The closer the URL in the rule is to the actual browser URL, the more points the survey receives.

  • A perfect match between the rule URL and the browser URL gives the highest score.

  • The survey with the highest score is prioritized for display.

Example: Two surveys have the following display rules:

  • Survey 1: Displays on example.com/myPage with "also show on all pages below" enabled.

  • Survey 2: Displays on example.com/myPage/sub with "also show on all pages below" enabled.

When a user visits example.com/myPage/sub:

  • Survey 1 gets a score of 1 (less specific match).

  • Survey 2 gets a score of 3 (more specific match).

Result: Survey 2 is shown because it has the higher score.

This prioritization system ensures that the most relevant surveys are displayed to users.

Example of Rule Combination

Let’s say you want to show a survey on all your product pages but not on the checkout pages:

  • Display rule: https://example.com/products β†’ "Also show at all pages below the address" (enabled).

  • Hiding rule: https://example.com/products/checkout β†’ "Also hide at all pages below the address" (enabled).

Result: The survey appears on all product pages but disappears when the user reaches the checkout process.

Best Practices for Using URL Rules

  • Use copy-paste for URLs – Avoid mistakes that could prevent the survey from displaying correctly.

  • Be specific with hiding rules – Remember that they take priority over display rules.

  • Always test your rules – Navigate your website and check that the survey appears where you expect it to.

Did this answer your question?