Site Intercept - Other Conditions | Qualtrics

Other Conditions

Introduction

In the previous support pages, we showed you how Site Intercept can target based on general browser data. However, sometimes you have more information stored about a visitor that you would like to use in your logic. In this section, you will learn about the This Action condition, as well as how to base logic off of a JavaScript Expression, the Value of HTML on Site, Value of Cookie, or a Web Service.

JavaScript Expression

This condition can be used to display a Creative depending on the value of a JavaScript expression. Often websites will store information about their visitors in JavaScript variables. For example, a variable might store whether the visitor is a current customer or a potential customer.

image01
In this example, a variable called navigator.language stores visitors’ language settings. This Intercept will show a Creative if they are using their browsers in English.
Qtip: Not sure what data are available on your website through a JavaScript expression? Check with your web team.

To create a JavaScript Expression condition

  1. Click the Plus sign to add a new logic condition.
  2. Select Website, and then select JavaScript Expression.image19
  3. Enter the JavaScript Expression you would like to use for your logic.image24
  4. Enter the value the JavaScript Expression should return.image20
  5. Indicate whether you are targeting visitors whose value is Equal To or Not Equal To what you specified in Step 4. Other targeting options are also available and can be seen in the example below.image26

Value from HTML on Site

Value From HTML On Site can be used to read the HTML of the page, and display a Creative if an HTML element contains a value that you specify. For example, if you wanted to target visitors who have two or more items in their shopping cart, you could use the ID of the shopping cart element to base your logic on if that element contains a number larger than or equal to 2.

2015-10-12_10-55-16
In this example, we’ve determined that we want to show a Creative if there are 2 or more items in the shopping cart. Looking at the HTML for this button, we’ve determined that the ID of the HTML element containing the number of items in cart is qty-in-cart.

Technical Tip: If the element you need to target doesn’t have an ID attribute and you aren’t able to add one, consider targeting this element using the JavaScript Expression condition:

document.getElementsByClassName('qty-in-cart')[0];

For example, If the shopping cart had no ID but had a class=“qty-in-cart” and it is the first element with this class on the page, then this JavaScript expression could be used to target it.

 

To create HTML on Site condition

  1. Click the plus sign to add a new logic condition.
  2. Select Website, and then select HTML on Site.image13
  3. Enter the ID of the HTML element you would like to use for your targeting.image18
  4. Enter the value the HTML should include.image06
  5. Indicate whether you are targeting visitors whose value is Equal To or Not Equal To what you specified above. Many other targeting options are also available and can be seen in the example below.image15

 

Value from Cookie can be used to display a creative if a cookie stored on the visitor’s browser contains a value that you specify. For example, if you store a cookie called Return Visitor equal to True if the visitor is a return visitor and False if the visitor is a new visitor, you could choose to target only those who are returning visitors.

Qtip: Browser security restrictions limit Site Intercept to only seeing the cookies saved by your website. Cookies stored by other websites will not be accessible.

To create a Cookie condition

  1. Click the plus sign to add a new logic condition.
  2. Select Website, and then select Cookie.image02
  3. Enter the name of the cookie you would like to use for your targeting.image05
  4. Enter the value the cookie should include.image08
  5. Indicate whether you are targeting visitors whose value is Equal To or Not Equal To the value that you specified above. Many other targeting options are also available and can be seen in the example below.image12

 

Web Service

Web Service condition allows an external web service to determine whether or not a Creative should display. For example, a resort in Palm Beach might use a web service to check the current weather and offer a special promotion when it is raining outside.

Technical Tip: Passing variables to the web service for evaluation is not currently available.

To set a Web Service condition

  1. Click the plus sign to add a new logic condition.
  2. Select Web Service.image03
  3. Enter the URL of the web service you would like to use for your targeting.image23
  4. Choose which field from the web service you would like to use for your targeting.image17
  5. Enter the value the web service should return.image14
  6. Indicate whether you are targeting visitors whose value is Equal To or Not Equal To what you specified above. Many other targeting options are also available and can be seen in the example below.image00

This Action

This Action is used to determine whether a Creative should be shown, based on whether or not it has been shown in the past.

Qtip: To prevent repeated display at the Intercept level rather than on each individual action, or for more control over the length of time repeated display should be prevented, consider using the Prevent Repeated Display option under Change Options.

To set a This Action condition

  1. Click the plus sign to add a new logic condition.
  2. Select This Action.image25
  3. Select whether you would like to target those for whom the action Has Not Been Taken, or those for whom the action Has Been Taken.image21
  4. Indicate whether the time frame for this condition is During the browsing session, or Ever.image27

Adobe Analytics

Adobe Analytics can be used to display a creative based on the value of Adobe Analytics variable. In order to use this condition, the website needs to be integrated with Adobe Analytics beforehand.

To set an Adobe Analytics condition

  1. Click the plus sign to add a new logic condition.
  2. Select Website, and then select Adobe Analytics. image22
  3. Select the variable type.image11
  4. Select the variable.image04
  5. Enter the value of the variable you would like to use for targeting.image09
  6. Indicate whether you are targeting visitors whose value is Equal To or Not Equal To what you specified above. Many other targeting options are also available and can be seen in the example below.image10

Intercept Logic

Intercept logic can display your creative based on if another intercept in your Zone has been displayed or not displayed in a given time frame. For example, you could choose to only target visitors who have not seen another intercept on your site in the past day.