Website
Select if Geo Javascript should run in all pages of your website, in selected pages or only in one single page.
Location Segmentation
Target visitors by including or excluding countries, states, cities, latitude-longitude zones and IP addresses.
Javascript code section
Section where you can write, run and place a JavaScript code of your choosing.
Non-intrusive location detection
Location data collection occurs automatically without visitors having to 'accept location sharing' in their browser as location is approximate and determined based on their IP address.
Built in analytics
View and export daily, monthly and yearly data related to the visitors of your site and how many times the script was triggered.
Simple integration
Easy integration into website by placing our tracking script in your footer. Get visitor location data using JavaScript functions or by using our variables to display location data directly in your HTML.
Testing & simulation
Test website display response by injecting a particular location in test mode.
Available geotargetly_() functions and HTML variables
Inside the Geo Javascript editor — and anywhere on your page after the tracking script has loaded — you can call the following JavaScript functions to read the current visitor's location data:
geotargetly_continent_name(); // gets visitor continent name
geotargetly_continent_code(); // gets visitor continent code
geotargetly_country_name(); // gets visitor country name
geotargetly_country_code(); // gets visitor country code
geotargetly_region_name(); // gets visitor Region/State name
geotargetly_region_code(); // gets visitor Region/State code
geotargetly_country_region_code(); // gets visitor country and Region/State code combined, e.g. US-NY
geotargetly_city_name(); // gets visitor city name
geotargetly_lat(); // gets visitor latitude
geotargetly_lng(); // gets visitor longitude
geotargetly_ip(); // gets visitor IP address
geotargetly_currency_code(); // gets visitor currency code
geotargetly_currency_symbol(); // gets visitor currency symbol
geotargetly_calling_code(); // gets visitor calling code
geotargetly_browser_language_code(); // gets visitor browser language code
geotargetly_browser_language(); // gets visitor browser language
geotargetly_flag_url(); // gets visitor flag url
geotargetly_is_proxy(); // gets visitor proxy state true/false
geotargetly_proxy_provider(); // gets visitor proxy name e.g. 'NordVPN', or ''
geotargetly_proxy_types(); // gets visitor list of proxy types such as vpn, proxy, tor, relay, hosting, or empty array []
geotargetly_loaded(); // called when location data is available — use this as a callback
// Example:
function geotargetly_loaded(){
var country_name = geotargetly_country_name();
if (country_name == "United States"){
// do something
}
}
You can also display location data directly in your HTML by adding the corresponding class name to any element:
<span class="geotargetly_country_name"></span>
<span class="geotargetly_country_code"></span>
<span class="geotargetly_region_name"></span>
<span class="geotargetly_region_code"></span>
<span class="geotargetly_city_name"></span>
<span class="geotargetly_continent_name"></span>
<span class="geotargetly_continent_code"></span>
<span class="geotargetly_lat"></span>
<span class="geotargetly_lng"></span>
<span class="geotargetly_ip"></span>
<span class="geotargetly_currency_code"></span>
<span class="geotargetly_currency_symbol"></span>
<span class="geotargetly_calling_code"></span>
<span class="geotargetly_browser_language_code"></span>
<span class="geotargetly_browser_language"></span>
<span class="geotargetly_is_proxy"></span>
<span class="geotargetly_proxy_provider"></span>
<span class="geotargetly_proxy_types"></span>
<img class="geotargetly_flag" src="" />
