Available If-So Shortcodes



The shortcode


Extra options


Display the user’s location: country

[ifsoDKI type='geo' show='country']
United States


Display the user’s location: City

[ifsoDKI type='geo' show='city']


Display the user’s location: State

[ifsoDKI type='geo' show='state']


Display the user’s location: Continent

[ifsoDKI type='geo' show='continent']
North America

Time zone

Display the user’s location: Time zone

[ifsoDKI type='geo' show='timezone']

Country Flag

Display the user’s location: Time zone

[ifsoDKI type='geo' show='flag' width='50px']

Auto-Local Time Display

Show an event time that is calculated according to the user’s time zone.

[ifsoDKI type='time' show='user-geo-timezone-sensitive' time='04/25/2022 08:00' format='n/j/o, G:i']
4/25/2022, 1:00

Google Ads

Insert the keyword that was used to trigger your ad.

[ifsoDKI type="google-ads" parameter="YOUR-PARAMETER" fallback="Your default value (optional)"]
Your default value (optional)

Query String

Display the value of any query string.

[ifsoDKI type="querystring" parameter="YOUR-PARAMETER" fallback="Your default value (optional)"]
Your default value (optional)

User Details (for logged-in users)

Display the user’s first name, last name, email, and more

[ifso_user_details show="firstName" fallback="Default value (optional)"

Login Link

Display a login/logout link.

[ifso_login_link login_redirect="https://example.com/account" ]

Referral Source

Display the URL of the referral website or webpage.

[ifsoDKI type='referrer' fallback="Default value (optional)"]
Default value (optional)

Browser Language

Display the user’s browser language.

[ifsoDKI type='language' show='primary-only']

Total Number of Pages Visited by the User

Display the number of website pages that were visited by the user.

[ifsoDKI type='viewcount' show='visit-count']

Post ID

Display any page, post, or custom post using a simple shortcode.

[ifso-show-post id="123"]

Add / remove Cookie

Add a cookie to the user’s browser upon rendering.

[ifso-add-cookie name='COOKIE_NAME' value='COOKIE_VALUE' time='3600']

Add a Cookie on Click

Assigning a cookie upon element click (or in this example, after 3 clicks), and redirecting to another page.

[ifso_onclick_redirect  url='https://example.com' clicks='3' cookie_name='hello' cookie_value='world' expires='3600' ]Click here 3 times to see the result[/ifso_onclick_redirect]


Display a countdown element to a specific timestamp, or to a recurring deadline.

[ifsoCountdown end="23:59" format="hour-sec" labels="bottom"]

Add a conversion

Add a conversion for all triggers, or for a specific trigger

[ifso_conversion triggers="123"] 

Conditional Redirect

Redirect a user to a specified page when the trigger is loaded.

[ifso-redirect url='https://example.com' code='301'ajax="no"]

Add/remove from an audience

Add or remove users from an audience when the shortcode is loaded.

[ifso-audience type='add' audience='YOUR-AUDIENCE-NAME']

Audience Name

Display the audiences a user is assigned to

[ifso-audience type='display' show='user-audiences']