Dynamic Keyword Insertion

Geolocation DKI

Use these simple Geolocation DKI shortcodes to insert the user’s location: country, city, state, continent, or time zone.

Insert the user’s country

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

*Add ajax=’yes’ if you are using page caching

Insert the user’s state

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

*Add ajax=’yes’ if you are using page caching

Insert the user’s city

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

*Add ajax=’yes’ if you are using page caching

Insert the user’s continent

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

*Add ajax=’yes’ if you are using page caching

Insert the user’s timezone

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

*Add ajax=’yes’ if you are using page caching

* Please note that IP-to-location services are not 100% accurate. The accuracy changes between different countries, ISPs, devices, and other factors. Learn more.

DKI shortcodes and page caching

If you are using cache on your site then, in practice, users are being served with a “snapshot ” of the page. For the DKI shortcodes to work in such cases, we offer an option to load dynamic content using a separate Ajax request after the page loads from the cache.

To load the DKI shortcode using Ajax, add the parameter ajax=”yes” to the DKI shortcode. For example:

[ifsoDKI type='geo' show='country' ajax='yes']

Set a fallback for the Geolocation DKI shortcode

By default, the Geolocation DKI shortcode will not display anything if a value is not returned (usually if you run out of sessions or in rare cases in which the user’s IP is not recognized). To display a fallback value, simply add the parameter fallback=”something” to the shortcode. For example:

[ifsoDKI type='geo' show='country' fallback="something"]

Displaying the visitor’s country flag

If you’d like to display the visitor’s country flag, you can easily do so using our dynamic content from CSV extension. We created a CSV file with all the countries’ flags, so all you need to do is import it to your site and display the flag using a shortcode anywhere on your site. Learn more.

  • Was this Helpful ?
  • YesNo
Ready to get started?
Try it on your website