If-So enables you to display a series of diverse versions in a specified order, offering a dynamic and engaging user journey.
Creating the dynamic content rotation (a sequence of dynamic versions) is based on the cookie condition. When a user sees the first version, a cookie is assigned to his/her browser. When the user sees the next version, the cookie value is updated accordingly.
- There’s no limit to the number of versions that can be included in the sequence.
- The rotating dynamic content can be displayed on a specific page or several different pages.
Step-by-step: setting up dynamic content rotation
- On your WordPress dashboard, go to If-So and click “Add a new trigger“
- On the default content version, insert the content of the first version, and paste the following shortcode (before or after the content):
[ifso-add-cookie name='seen_reviews' value='seen_1' time='604800']
Result: If the user has seen the version, a cookie with the name “seen_reviews” and the value e”seen_1″ will be added to the user’s browser. The cookie will be valid for 7 days (604800 seconds). You can set up a different expiration time according to your needs.
- On version A, select the cookie condition. Set the cookie name to `seen_reviews` and the cookie value to `seen_1`.
- In the version’s content field, insert the second version of your content, and include the following shortcode:
[ifso-add-cookie name='seen_reviews' value='seen_2' time='604800']
Result: If the user has seen the version, the cookie value will be replaced with “seen_2”.
- Add a new version (click the “Add a new version” button, right below the container of version A
- On the new version, select the cookie condition. Set the cookie name to `seen_reviews` and the cookie value to `seen_2`.
- In the version’s content field, insert the second version of your content, and include the following shortcode:
[ifso-remove-cookie name='seen_reviews']
Result: When the user has seen the version, the cookie “seen_reviews” will be removed. The next time the user encounters the trigger, the default version will be displayed, and the flow will start all over again.
- Publish the trigger and paste its shortcode on your page, or pages.