Load your EU analytics script only for EU visitors. Fire a conversion pixel only in the markets you advertise in. Load a chat widget only where your support team speaks the language. GeoScript runs your JavaScript for the segments you choose.
No credit card · Every feature on every plan

TL;DR
GeoScript runs custom JavaScript for visitors in the countries, states or cities you pick, such as analytics, tracking pixels or chat widgets. Your code gets the visitor's country, region, city and currency. It's on every GeoSwap plan.
Why pay for this?
Geo Targetly$9–349+/moTrusted by 2,500+ businesses · No pageview cutoffs · No credit card required
Works with any platform
Write any JavaScript and attach it to a segment. It runs only for visitors who match, with a geoswap object describing where the visit comes from.
The geoswap object gives your code the country code and name, region, city, continent, local currency and a flag image URL. You don't call a geolocation API yourself.
Combine geo and device: run a mobile app install script for US visitors on phones, or load a desktop-only survey widget for European visitors.
Pasting vendor code that includes <script> tags? GeoScript strips them on paste, so the code isn't double-wrapped and doesn't throw an error.
That's roughly 1,500 lines of code. If your script is larger, host it externally and use GeoScript to load it.
Run on all pages, a list of URLs or a URL pattern, with exclusions. Scripts run alongside your content swaps, bars, popups and currency conversion.
47%
of consumers expect a web page to load in 2 seconds or less
Source: Akamai / Forrester, 2009
53%
of mobile site visits are abandoned if a page takes longer than 3 seconds to load
Source: Google / SOASTA, 2016
“Every script you load is a promise to your users that it’s worth the performance cost. Most aren’t.”
Add the GeoSwap script to your site (the same one every GeoSwap tool uses)
Create a new script in the dashboard: paste your JavaScript and pick the segment
Optionally add device targeting (desktop, mobile or tablet)
On each page view, GeoSwap's edge checks the visitor's IP location. If they match, your script runs with the geo context.

The GeoScript dashboard
Load Matomo for EU visitors and Google Analytics 4 for everyone else. Each provider runs only where you want it.
Running ads in the US, UK and Germany? Fire your Meta pixel only for those three countries and keep visitors from other markets out of your ad data.
Load Intercom for English-speaking countries and Crisp for France, and leave the chat widget off in countries where you don't offer support.
Run tracking scripts freely in markets without consent rules, and let GeoConsent hold tagged scripts in GDPR regions until visitors opt in.

Every feature on every plan. Plans differ by history, team and scale.