Conditional Content

Want to control the visibility of individual sections on your page from a certain user, group of users, or user's who have completed a specific action? With from Unstack's Conditional Content you're able to do just that. 

To enable Conditional Content on your section, just select the {...} icon from the section toolbar.

Now you need to decide on the conditions for this section to appear. Do you want it to show for all new users? Only users who have been to this page before? What about users from Google Ads, Klaviyo, or HubSpot?

By combining conditions, you're able to create rules for just about anything. Below is the full list of supported conditions that you can use individually, or combine into IF statements or AND statements:

 

URL Query Params

This condition is used to show a section when a certain query parameter is true. As an example, if you define your "URL Query Params" condition as:

      • Param --> show
      • Operator --> equals
      • Value --> true

... then your section would only be visible to users who have show=true following the "?" in their URL.

Formatting Example: https://www.unstack.com/example-page?show=true
Field Data
Param
This is the free text field where you define the name of your URL parameter. (In the above example, this is the word "show")
Operator
This drop down is where you'd select the operator for this condition. The available options are Exists, Equals, Contains, Starts With, Ends With, Not Exists, Not Equal, Doesn't Contain, Doesn't Start With, Doesn't End With.
Value
This is the free text field where you define the value of your URL parameter. (In the above example, this is the word "true")

 

Visited from...

This condition is used to show a section when a UTM parameter has a specific value. As an example, to show this section to users visiting from Google, you would set this condition as:

      • Dropdown --> source
      • Operator --> current
      • Value --> google
Field Data
UTM Parameter
This drop down allows you to select on of the five standard UTM parameters to reference in this condition. These parameters are source (utm_source), medium (utm_medium), campaign (utm_campaign), term (utm_term), content (utm_content).
Operator
This drop down is where you'd select the operator for this condition. The available options are Any, First, Previous, Current.
Value
This is the free text field where you'd define the value of the previously selected UTM Parameter.

 

Visited a page...

This condition is used to show a section to users who have previously visited another of your pages. The only field available here is to select from a list of your Published pages. For the user to see this section, they will have to have previously visited the selected page.

 

Visited previously?

This true or false condition can be used to show a section to users based on their visit history. There are two options for this condition:

      1. Yes --> They have visited the site previously
      2. No --> They haven't visited the site previously 

 

First Visit

This true or false condition can be used to show a section to users based on their visit history. There are two options for this condition:

      1. Yes --> This is the first time the user has been to the site
      2. No --> This is not the first time the user has been to the site

 

Total Visits

This free text condition is used to show a section based on the total number of times that a user has been to a site. As an example, to show this section to users who have visited the site at least twice you should set this condition as:

      • Operator --> Greater Than or Equal
      • Value --> 2
Field Data
Operator
This field is where you'd define the operator for this condition. The available options are Exists, Equals, Greater Than, Less Than, Greater Than or Equal, Less Than or Equal, Is Between*, Not Exists, Not Equals, Not Greater Than, Not Less Than, Not Greater Than or Equal, Not Less Than or Equal, Is Not Between*.
Value
This is the free text field where you'd define the value(s) of the previously selected operators. Those marked with an asterisk* above have an additional value field that you'll need to define.

 

Submitted a form...

This condition is used to show a section to a user who has submitted a specific form. The options available through the drop down are any of the Unstack forms you've created.

 

Submitted any form?

This true or false condition can be used to show a section to users based on their form submission history. There are two options for this condition:

      1. Yes --> The user has submitted an Unstack form.
      2. No --> The user has not submitted an Unstack form.

 

Purchased any product?

This true or false condition can be used to show a section to users based on their purchase history. There are two options for this condition:

      1. Yes --> The user has purchased a product before.
      2. No --> The user has not purchased a product before.

 

Total Value of All Purchases

This free text condition is used to show a section based on the total value of the purchases that a user has made on your site. As an example, to show this section to users who have spent at least $100.00 USD you should set this condition as:

      • Operator --> Greater Than or Equal
      • Value --> 100
Field Data
Operator
This field is where you'd define the operator for this condition. The available options are Exists, Equals, Greater Than, Less Than, Greater Than or Equal, Less Than or Equal, Is Between*, Not Exists, Not Equals, Not Greater Than, Not Less Than, Not Greater Than or Equal, Not Less Than or Equal, Is Not Between*.
Value
This is the free text field where you'd define the value(s) of the previously selected operators. Those marked with an asterisk* above have an additional value field that you'll need to define.

 

Subscribed to...

This condition is used to show a section to a user who is a subscriber of a specific Stripe plan. The available options for this condition will be any of your active subscriptions. 

Only one subscription can be defined at a time. For rules that involve multiple subscriptions, simply add additional multiple versions of this condition to the section.

You must have Stripe connected to your account to use this condition - learn more.

 

Has any subscription?

This true or false condition is used to show a section to users who are, or are not subscribers of any of your Stripe plans. There are two options for this condition:

      1. Yes --> The user is a subscriber of one of your Stripe products.
      2. No --> The user is not a subscriber of one of your Stripe products.

You must have Stripe connected to your account to use this condition - learn more.

 

Contact exists?

This true or false condition is used to show a section to users who are, or are not already contacts in your Unstack account. There are two options for this condition:

      1. Yes --> The user is exists as a contact in Unstack.
      2. No --> The user is does not exist as a contact in Unstack.

 

contact.[data]

At the bottom of the conditions list there are a number of conditions that follow the contact.[data] format. These conditions pull from property values stored on contact records in Unstack.

Therefore, keep in mind that if a user hasn't previously submitted a form that collected this information, then it's unlikely that the condition you set here will work as you intended. 

Available Conditions
contact.id
The internal ID that was assigned to the user when the contact was created.
contact.first_name
The first name that was provided when the contact was created.
contact.last_name
The last name that was provided when the contact was created.
contact.full_name
The full name that was provided when the contact was created.
contact.title
The title that was provided when the contact was created.
contact.email
The email that was provided when the contact was created.
contact.phone
The phone number that was provided when the contact was created.
contact.organization
The organization that was provided when the contact was created.
contact.website
The website that was provided when the contact was created.
contact.address1
The address that was provided when the contact was created.
contact.address2
Additional address information that was provided when the contact was created.
contact.city
The city that was provided when the contact was created.
contact.state
The state that was provided when the contact was created.
contact.zip
The zip code that was provided when the contact was created.
contact.country
The country that was provided when the contact was created.
Field Data
Param
This is the free text field where you define the name of your URL parameter. (In the above example, this is the word "show")
Operator
This drop down is where you'd select the operator for this condition. The available options are Exists, Equals, Contains, Starts With, Ends With, Not Exists, Not Equal, Doesn't Contain, Doesn't Start With, Doesn't End With.
Value
This is the free text field where you define the value of your URL parameter. (In the above example, this is the word "true")

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.