Browsing Session Conditions
About Browsing Session Conditions
Browsing Session conditions allow you to target visitors based on their website behavior. For example, you could provide a feedback survey to visitors who have visited at least three pages of your site, or you could show a coupon to visitors on the shopping cart page.
Current URL
With Current URL, you can target visitors’ browsing activity based on a specific page or set of pages on your website. This is perhaps the most common targeting criteria.
To Create a Current URL Condition
- On either the intercept targeting-level or the action set-level, add logic.
- You’ll notice that Current URL is the default condition. If you are editing an existing condition, select Browsing Conditions, and then select Current URL.
- Choose how you would like to target your value. Here are some commonly used options:
- Is
- Target if the visitor is on a specific page. You will enter an entire URL in the last field.
- Contains
- Target if the visitor is on a page that contains a specific phrase in the URL. For instance, on a clothing website, /new-arrivals/ may be included in the URL of all pages in the new clothing items section.
- Query Parameter
- Target those who have a specific query parameter in the URL. For example if you are A/B testing a page on your website, and have added “&Version=B” to the end of the URL, you could use Query Parameter to check if Version is equal to B.
- Enter the entire URL, a portion of the URL, or a parameter of the URL that you would like to target.
Example: You want an intercept to only display on the homepage of your site, once during the visitor’s session. You could use Current URL logic to specify the visitor must be on your homepage, and combine it with a This Action condition.
As you see above, using Is instead of Contains lets you specify the entire URL in the event that your homepage is your domain URL with no /homepage or other specifiers at the end.
You can also exclude the This Action condition and just turn on Prevent Repeated Display.
Page Referrer
With the Page Referrer condition, you can target visitors based on the page they were on. For example, on a commerce website you might want to offer a coupon to visitors who left the shopping cart page without checking out. To accomplish this, you’d set two conditions: “If Referrer is <shopping cart page>” and “If Current URL is not <checkout page>”.
To Create a Page Referrer Condition
- On either the intercept targeting-level or the action set-level, add logic.
- Drop the first field down.
- Select Browsing Session, and then select Page Referrer.
- Complete the logic statement using the same steps described for the Current URL condition.
To test page referrer conditions using the test intercept bookmaklet, you must run the bookmarklet on the referrer page, then navigate to the page with the intercept, and then run the bookmarklet on the page with the intercept.
Site Referrer
Use Site Referrer to target visitors based on which website directed them to your website. For example, if a partner website placed a link to your site on their homepage, you could target visitors coming from this link with a special welcome message.
To Create a Site Referrer Condition
- On either the intercept targeting-level or the action set-level, add logic.
- Drop the first field down.
- Select Browsing Session, and then select Site Referrer.
- Complete the logic statement using the same steps described for the Current URL condition.
Search Term
Use Search Term to target visitors based on the search term they used to arrive at your website. This works with Google, Yahoo, and Bing search engines.
However, even with this limitation, Search Term can be an effective way to catch visitors.
To Create a Search Term Condition
- On either the intercept targeting-level or the action set-level, add logic.
- Drop the first field down.
- Select Browsing Session, and then select Search Term.
- Choose how you would like to target.
- Enter the search term you would like to target.
Page Count
Use Page Count to target visitors based on how many pages they have visited on your website. For example, on a website feedback survey, you may want feedback from visitors who have browsed to at least three pages.
To Create a Page Count Condition
- On either the intercept targeting-level or the action set-level, add logic.
- Drop the first field down.
- Select Browsing Session, and then select Page Count.
- Choose whether you would like to target based on Total Pages Visited or Unique Pages Visited.
- Indicate whether the pages visited should be Equal to, Not Equal to, Greater Than, Greater Than or Equal to, Less Than, or Less Than or Equal to that number to meet the condition.
- Indicate how many pages you’d like to use for your condition.
Example: You want to display an intercept on any page but the one the visitor entered from. Since this would imply they were on at least 1 page before proceeding through the site, you can add logic that Page Count has to be greater than 1.
For added specificity of what pages the intercept can and cannot be included on, check out Current URL logic above.
Site History
Use Site History to target visitors based on specific pages they have or haven’t been to during their visit. This is often used in conjunction with other conditions. For example, in a site feedback survey, you may want to target those who have been on the website at least 3 minutes and had your homepage as the first page of their visit.
To Create a Site History Condition
- On either the intercept targeting-level or the action set-level, add logic.
- Drop the first field down.
- Select Browsing Session, and then select Site History.
- Select whether you would like to target any Visited URL or Last Visited URL.
- Complete the logic statement using the same steps described for the Current URL condition.
Time On Site or Time Focused On Site
Use Time Spent On Site or Time Focused On Site to target visitors based on how long they have been on the site.
Time Spent On Site refers to how long the visitor has had your website open in a browser window. Time Focused On Site refers to how long the visitor has had your website open as the front, “in-focus” window on their computer. Time Focused On Site is typically a more accurate indicator of visitor engagement.
To Create a Time On Site Condition
- On either the intercept targeting-level or the action set-level, add logic.
- Drop the first field down.
- Select Browsing Session, and then select either Time Spent On Site or Time Focused On Site.
- Select whether you would like to target visitors who have been on the site Greater Than or Less Than the time you will specify.
- Enter the amount of time.
- Select whether that time is in Seconds, Minutes, or Hours.
FAQs
- When should I use logic on my action sets?
-
Action set logic is used to determine when you want to display the Intercept. It can be helpful for when you have multiple action sets with different conditions for displaying.
For example, since creatives are not responsive to screen size, many users like to implement action set logic focused on whether a website viewer is/is not using a mobile device or whether the website is being displayed on a certain screen size. By using logic in this instance, you are able to target a properly formatted and sized creative to the appropriate person.
Action set logic based on location can even be used to make sure that website viewers are seeing a creative that is written in the language that most likely applies to them. - I activated my intercept, but it‘s not showing up on my site. Why not?
-
There are numerous potential causes as to why an intercept may not be appearing once it has been implemented. These causes may stem from the setup of the intercept itself or the implementation of the code.
- Logic: intercept targeting logic and action set logic are the conditions that must be met in order for an intercept to be displayed to a visitor. Checking this logic will be helpful in discovering why the Intercept is not displaying on a page.
- Logic sets that use “Contains”: A common cause of logic error is the use of the “Contains” vs. “Is.” To say a condition “Contains” means that the parameter you are basing the logic off (i.e., Current URL) will have the specified value present in addition to more information. For example, if I had logic that read as Current URL contains ‘qualtrics’, this would cause the intercept to display on any URL that has the word qualtrics present. The other option you have is using Current URL is [URL]. This condition depends on the visited URL being an exact match. Any differences or additional characters will prevent the intercept logic from passing.
- Intercept Revisions: When making edits to intercepts, changes are not made live until the intercept is published. When publishing an Intercept, a version of the intercept, or a “revision,” is saved. Reviewing the revisions that have been made is very useful for identifying any changes that may have suddenly prevented the intercept from appearing.
- Debug Window: The debug window is an invaluable tool for testing why an intercept is not displaying on a particular page.
For intercepts whose deployment code was implemented before March 2019, to enable the debug window, append a query string to any given URL called Q_DEBUG. This must be prefixed with a ? or a & like the following examples: https://www.qualtrics.com?Q_DEBUG, https://www.qualtrics.com/blog?item=value&Q_DEBUG.
For intercepts whose deployment code was implemented after March 2019, run the following JavaScript snippet in the Console of your web page:
The debug window breaks down all conditions required for intercepts running on the URL to appear. If you find that an intercept is not appearing, locate it in the debug window and identify any red failed warnings.QSI.API.unload(); QSI.isDebug = true; QSI.API.load(); QSI.API.run();
Qtip: The Website Feedback debugger does not function if the code has been implemented using a tag manager. Also, if the URL already has a query string with a ?, then the debugger will require a & instead. - Network Request: Most browsers possess a developer tools menu that allows a user to see a site’s source code, resources, cookies, and network calls. Website Feedback possesses a distinct presence in the Network section of these tools. To check for these scripts running, open the developer tools and navigate to the Network section. Once here, reload the webpage and the menu should begin to populate with all network requests being made by the website. To identify Website Feedback code, look for calls that begin with ?Q_ZID or ?Q_SID. This is the code itself running checks on the display logic. If you cannot find anything matching this format, then there is an issue with the implementation of your project code. You can refer to our support page on implementation for advice on where is best to place the code.
- Content Security Policy Issues: If you receive a console log that violates a Content Security Policy, there is most likely a restriction on your website that is blocking our intercepts from deploying. We recommend reaching out to your web-development team to resolve. To ensure your intercepts work, we generally recommend allowlisting the following items in your Content Security Policy headers:
- connect-src https://*.qualtrics.com
- frame-src https://*.qualtrics.com
- img-src https://siteintercept.qualtrics.com
- script-src https://*.qualtrics.com
- What is Website / App Feedback? / Where’s Site Intercept?
-
Site Intercept has been renamed Website / App Feedback, since the primary function of these projects is to gather data on your online presence. The functionality for Website / App Feedback is on par with Site Intercept, with notable improvements and a beautiful new user interface.
- Does Qualtrics set the value of the "Referer" field?
-
Qualtrics does not set the Referer. That value is set by the parent web page.
As of August 25, 2020, Chrome has changed the default behavior around the referrer field. Previously Chrome defaulted to no-referrer-when-downgrade as the value for Referrer-Policy. Now the default value is strict-origin-when-cross-origin. What that means is that if the customer hasn't specified their own policy on their page, it will default to this policy. This policy affects requests that are cross origin, meaning the parent page is on a different domain that the link (i.e., my webpage is example.com and my survey is on the base URL test.qualtrics.com). In a cross origin request, only the origin will be passed. That means that if my page is actually at the URL qualtrics.com/support-center, the Referer is going to be qualtrics.com. Changing this behavior has to be done by the owner of the parent page.