Skip to content

Choose which pages and visitors see it

Show a website survey only on some pages of your site, and only to some visitors, by device, language, where they came from, campaign or what your site knows about them.

A website survey shows on every page of your site, to every visitor, until you narrow it. You narrow it on the survey’s Targeting stage: Where sets the pages, and Who sets the visitors.

Before you start

Changes on the Targeting stage reach your site when you publish them.

Choose the pages

  1. Open the Targeting stage

    At the top of the survey editor, select Targeting. Where comes first.

  2. Add a page to show on

    Under Show on, select Add a page. Choose how to match, then type the page’s address or part of it, such as /pricing.

    The Where section, with a Show on rule: starts with /pricing, and an empty Don't show on list
  3. Add a page to leave out, if you like

    Under Don’t show on, select Add a page and fill it in the same way. A page here never shows the survey, even when a Show on page matches.

With no Show on page, the survey shows on every page. With several, it shows on any one of them.

The ways to match a page:

Choose Shows on a page whose address… Example
is is exactly this. /pricing
contains has this anywhere in it. blog
starts with begins with this. /help/
matches (with *) fits this, where * stands for anything. /products/*/reviews
matches pattern fits this regular expression. ^/[a-z]{2}/checkout$

A rule matches the page’s path, such as /pricing, unless you tick Match the whole address, with the domain and query. Capitals don’t matter, and neither does a slash at the end.

Test a page

Under Test a page, type a page’s address, such as https://example.com/pricing. UserLoop says whether the survey would show there, and which rule decides it:

  • Shown: every page is included.
  • Shown: it matches a Show on rule.
  • Not shown: it matches “Don’t show on” a rule.
  • Not shown: it matches none of the “Show on” pages.
Test a page, with https://example.com/pricing typed and the answer Shown: it matches pages starting with /pricing.

The test checks only the pages. The visitor rules and the trigger still apply.

Choose the visitors

Under Who, every rule you set must hold for a visitor to see the survey.

  1. Choose new or returning visitors

    Under Visitors, select Everyone, New (on their first visit) or Returning (been before).

    The Who section: Visitors set to Everyone, Devices with Desktop, Tablet and Phone all on, and Browser language empty
  2. Choose devices

    Under Devices, turn Desktop, Tablet and Phone on or off. At least one must stay on.

  3. Choose browser languages, if you like

    In Browser language, type language codes separated by commas, such as en, fr. Empty shows it in every language.

  4. Choose where they came from, if you like

    Under Came from, select Add a site they came from, choose how to match, and type the site, such as google.. The survey shows when the page they came from matches any one of these.

  5. Match a campaign, if you like

    Select Match a campaign (UTM). Next to utm_source, utm_medium, utm_campaign, utm_content or utm_term, select Add, choose is, contains or matches pattern, and type the value, such as newsletter.

A visitor is new on their first visit, and returning once they come back in a later visit. UserLoop remembers this in the visitor’s browser, so the same person on another browser or device counts as new.

Campaign values come from the page the visitor landed on in this visit, so they still count as the visitor moves from page to page.

Visitor attributes

Visitor attributes are facts your site tells UserLoop about a visitor, such as their plan. They need a line of code on your site, which a developer adds: see Identify visitors and set attributes.

  1. Add an attribute rule

    Under Visitor attributes, select Add an attribute rule.

  2. Fill it in

    Type the attribute’s name, such as plan. Choose is, is not, contains, is set or isn’t set, then type the value, such as pro. is set and isn’t set need no value.

    A visitor attribute rule: plan is pro, with the Add an attribute rule button below

Every attribute rule must match. An attribute name can be up to 64 letters, numbers, dots, dashes or underscores.

Rules for your whole site

At the bottom of the Targeting stage, Across your site lists the rules every website survey follows, which you change in Settings → Website under Rules for every website survey:

  • One survey per visit: once a visitor answers a survey, no other survey shows to them that visit. It is on until you turn it off.
  • Only one survey opens at a time. This is always so.
  • When you list your site’s addresses, surveys show only there.

Check it worked

Publish the survey, then open a page your rules include, on a device they include. The Launch stage’s Who sees what lists the survey’s targeting in sentences, and Change targeting takes you back here.

If a rule can’t be saved, the Targeting stage marks it and says what to fix:

You see What to do
A Show on or Don’t show on rule has no address Type a page address or part of one, or remove the rule.
A rule isn’t a valid pattern Check the regular expression, or choose another way to match.
No device is chosen Choose at least one: desktop, tablet or phone.
A code isn’t a language code Use two- or three-letter codes, such as en or fr.
An attribute rule has no attribute name Type the attribute’s name, such as plan.

Type to search…

↑↓ navigate↵ selectEsc close