Set Up Page URLs in UserLeap

Add Page URL events to target users on specific pages

Once you've installed UserLeap, UserLeap lets you target web surveys based on page URLs by tracking those pages, or groups of pages, in UserLeap. For example, you could choose to display a survey when a visitor is on the Pricing page, or on someone’s 3rd visit to their Favorites page.

To target surveys using Page URL, no additional installation is required; however, you do need to first configure the Page URL in UserLeap. Here’s how to do it.

1. Navigate to the Events tab in left sidebar and click Add

To create an event, log in to your UserLeap dashboard and navigate to the Events tab in the left sidebar. Then, click on the Add button:

2. Add a new Page URL Pattern

Upon clicking the Add button, a modal named Add New Event will appear. Choose "Page URL Event" for the Event Type.

There are three inputs. The Event Name is a friendly name for the page, the Event Description describes the page, and the Event URL Pattern is the URL pattern you would like to track.

To track a single page URL, enter the exact page URL for that page. Here's an example:

  1. Event Name: Shop Page
  2. Event Description: The Shop Page
  3. Event URL Pattern: http://www.example.com/shop

To track multiple pages that are similar, the wildcard character (*) can be used to specify what you are looking for. For example, here’s what you might enter to send surveys to visitors when they are viewing any article in your blog:

  1. Event Name: Blog Article
  2. Event Description: Any article on the blog
  3. Event URL Pattern: http://www.example.com/blog/*

This will enable a survey to be displayed on any page that starts with “http://www.example.com/blog,” including anything that comes after. This pattern would match the following:

You can also use the wildcard character to sub in for unique portions of URLs that don’t come at the end. For example, https://yourdomain.com/*/accounts would match the following:

Once finished, hit Save and the new page URL event will appear on the Events page.

3. Use your Page URL to control when surveys are displayed

You can use your Page URL as a trigger for a survey, if you want the survey to display when users are on a particular page URL, or as an attribute, if you'd like to display the survey to users based on past visits to certain pages.

Trigger surveys when visitors are on a page

To use a URL event as a trigger, choose "Visits a page" under the Survey Trigger box in the Audience page.

In the example shown above, the survey will trigger only when the visitor is on a page which "matches" the URL pattern defined by the Shop Page event. If "doesn't match" is instead chosen, then this survey will trigger only when the visitor is not on a matching page.

Filter surveys based on historical visits to a page

You can also target users based on their past interactions (or lack thereof) with specific pages. To do this, choose Add Filter in the Filtering section, and then select this new event:

Upon selecting the event, you can then filter the survey to only be shown to specific users based on their history visiting a page matching the defined event URL. There are four possible options:

  • Is Set: If equal to "Yes", this means the survey can only be triggered for users who have visited a page matching the defined event URL at some point in time. If equal to "No", this means the survey can only be triggered for users who have never visited a matching page.
  • Occurrences (count): When set with a comparison operator (shown below) as well as a number, this defines when to show the surveys based on the number of times a user has visited a matching page. For example, choosing "is greater than 5" means the survey will only be shown to users who have visited a matching page more than 5 times.
  • First Occurred (days ago): This uses the same comparison operators shown above, and is used to filter on when the visitor first visited a matching page. For example, choosing "is less than or equal to 8" means this survey will only be shown to users who first visited a matching page 8 or more days ago.
  • Last Occurred (days ago): This uses the same comparison operators as above, and is used to filter on when the visitor last visited a matching page. For example, choosing "is equal to 4 days" means this survey will only be shown to users whose last visit date to a matching page was exactly 5 days ago.