Deal Ends in:
BLACK FRIDAY SALE – 35% OFF!
HOT SALE>>
The Conditions

Pages Visited

In this article:  Usage Examples | How to set up the condition.

What is the Pages Visited condition?

This condition lets you add or replace content on your website based on the pages previously visited by a user on your site.

How can your site benefit from this condition?

Examples:

  • Personalize calls to action based on the interest a visitors showed on your site
  • Encourage users who showed interest in a certain product or service to take action
  • Hide marketing messages from users who already purchased your app or program

How does the condition work?

The condition works based on a cookie that tracks pages on your site that were previously visited by the user.

Be mindful that the condition will only work if the user has visited the site using the same device and browser and did not clean the browser cookies.

The lifespan of the Pages Visited cookie

Dynamic content will be displayed if a user has previously visited selected pages over a defined time period. The lifespan of this cookie can be defined on the plugin’s Settings page.

Disabling the Pages Visited cookie

For users who don’t use the Pages Visited condition and are concerned about privacy regulations, they can disable the pages visited cookie. If the cookie is disabled, If-So will skip dynamic content versions with the Pages Visited condition. Other versions in the trigger, if such exist, will be checked as usual.

 

Screenshots

How to set up a Pages Visited condition

  1. Click on “Select a condition” and select “Pages Visited“.
  2. Select an operator: “URL is” / “URL contains” / “URL is not” / “URL does not contain”.
  3. Type in a domain, a webpage URL, or a term.
  4. In the content field of the dynamic version, set the content to be displayed if the condition you have set is met.
  5. In the content field of the default version, set content to be displayed if the condition is not met (optional, can be left blank).
  6. Press “Publish” and paste the shortcode generated by If-So on your website.

FAQs

  • Will this work with server and WordPress caching solutions?

    Yes.

    Whether you are using a caching plugin or server caching, you can navigate to the plugin settings and enable the "Page Caching Compatibility" option. With the option enabled, dynamic triggers will be rendered in a separate request that will take place after the loading of the cached version.

    Learn more about Page Caching Compatibility.

  • Can I redirect users to a different page based on conditions?
    Yes. You can redirect users based on each one of the conditions by pasting a simple JavaScript code in the dynamic version content field. Click here for a step by step guide.
  • Was this Helpful ?
  • YesNo
Ready to get started?
Try it on your website