The Conditions
1

Geolocation

In this article: About geolocation | Usage examples | How to set up Geolocation-based content

About the Geolocation condition

If-So’s geolocation condition lets you tailor your website content according to the visitor’s physical location: country, city, state, continent or timezone.

How can your site benefit from geolocation-based content?

Usage examples:

  • Make special promotions in specific countries
  • Highlight different products in chosen locations
  • Invite close-by visitors to visit your business
  • Direct visitors to the closest branch
  • Show personalized messages to visitors from certain locations. For example “free shipping around the UK”.

How does it work?

To detect the user’s location, If-So uses an up to date database to pair between the IP address and the geographical location.

How accurate are the locations in the database?

The accuracy of a location depends on many factors, the most important being the ISP the address belongs to. For some providers, there is a street-level accuracy, and for most a city level accuracy. In the worst and rare cases, only country level accuracy. Accuracy is also generally higher for fixed lines than it is for cellular networks. You can learn more here about Geolocation accuracy.

Which content can be customized using the geolocation condition?

Same as with all of If-So’s dynamic triggers, any content of the website can be customized. That includes titles, texts, images, calls to action, buttons and more.

Monthly sessions limit

Geolocation usage is limited by monthly sessions (It is the only If-So function that is limited). The beginning of a session is defined as when a visitor first visits a page with a geolocation trigger, and ends when a visitor closes the browser or after 25 minutes.

Click here for the geolocation pricing options.

Geolocation DKI (Dynamic Keyword Insertion)

The geolocation Dynamic Keyword Insertion lets you display the user’s location using a simple shortcode.

The available shortcodes are:

[ ifsoDKI type=’geo’ show=’country’ ]: Displays the user’s country

[ ifsoDKI type=’geo’ show=’state’ ]: Displays the user’s state

[ ifsoDKI type=’geo’ show=’city’ ]: Displays the user’s city

[ ifsoDKI type=’geo’ show=’continent’ ]: Displays the user’s continent

[ ifsoDKI type=’geo’ show=’timezone’ ]: Displays the user’s timezone

Click here to learn more about If-So DKI

How to set up geolocation-based content?

    1. On your WordPress dashboard, go to “If-So → Add New Trigger
    2. Click on “Select a condition” and select “Geolocation“.
    3. Start typing a country, city, state or continent name and use the autocomplete list to select a location. You can choose as many locations as you please. Press the x button to remove an entry from the chosen targeted locations.
    4. In the content field, set the content to be displayed if the visitors’ location matches your criteria.
    5. In the default content field, set content to be displayed if the visitors’ location does not match your targeting (optional, can be left blank).
    6. Press “Publish” and paste the shortcode generated by If-So in your website.

Troubleshooting the geolocation condition

If you set up a geolocation trigger and it seems not to be working working, there are a few common reasons that should be considered first. Click here for a geolocation troubleshooting guide.

Ready to get started?
Try it on your website