In case you run out of geolocation sessions, If-So will ignore the geolocation condition and will check the condition of the next content version. If all the dynamic versions are set with a geolocation condition, or in the case that none of the conditions are met, the default version will be displayed.
If you are using our Geolocation DKI shortcodes, you can set a fallback value that will be displayed in this case. Simply add the parameter fallback=”your-value” to trigger shortcode:
”your-value”
[ifsoDKI type=”geo” show=”country” fallback=”your-value”]
Yes.
If you run out of monthly geolocation sessions you can subscribe to one of our geolocation plans at any time.
To prevent If-So from counting a geolocation session when users browse from page to page and to optimize the website performance, If-So stores a session with the user’s location and uses the data during the user’s journey.
A geolocation session begins when a visitor first visits a page with a geolocation trigger and ends when either the visitor closes the browser or after 25 minutes of inactivity (this might vary slightly between browsers and the server on which the website is hosted).
A problem with the session count is usually caused by one of the following:
If the problem wasn’t solved, there are good chances that the problem is bots visiting your website.
The example below shows an IP belongs to a data center
*Please note, enabling the geolocation log file might affect the loading speed of pages with a geolocation condition. We highly recommend disabling the log once you receive the relevant information.
If you decide to block a certain IP, add the code below to your function.php file, and replace the XX.XX… and YY.YYY… with the IPs you decided to block.
The code will only block the IPs from the geolocation functionality, not from accessing the site.
add_filter('ifso_exclude_from_geo',function($exclude){ $exclude['ip'] = ['XX.XX.XXX.XXX','YY.YYY.YYY.YYY']; return $exclude; });
If-So uses an IP-to-location database in order to get the user's location. Using the geo data as detected by If-So for any reason is possible using the following code:
require_once(IFSO_PLUGIN_BASE_DIR. 'services/geolocation-service/geolocation-service.class.php');
$geo_data = \IfSo\Services\GeolocationService\GeolocationService::get_instance()->get_user_location();
Please bear in mind that IP-to-location services (any service, not just ours) are not 100% accurate. Learn more about IP-to-location services and how they work.
The number of sessions is the total number for all your domains.
Your monthly session quota can be found in two places:
1. On your WordPress dashboard, under If-So > Geolocation
2. On your If-So account > License Keys (tab) > License details