Load your EU analytics script only for EU visitors. Fire a conversion pixel only in markets you’re advertising in. Inject a chat widget only where your support team speaks the language. GeoScript lets you run custom JavaScript based on visitor location.
No credit card · Setup in 60 seconds · Free forever

TL;DR
GeoScript lets you inject custom JavaScript for visitors from specific countries — analytics, tracking pixels, chat widgets, or any custom code. Free with no pageview limits.
Why pay for this?
Geo Targetly$29–349/moTrusted by 2,500+ businesses · No pageview limits · No credit card required
Works with any platform
Write any JavaScript you want and target it to a geo segment. The script executes with a geoswap context object — giving you access to the visitor’s country, region, and city inside your code.
Your script receives a geoswap context object with country code, region, city, and device info. No need to make your own geo-detection API calls.
Combine geo and device: run a mobile app install script for US visitors on iPhone, or load a desktop-only survey widget for European visitors.
Paste code from a vendor that includes <script> tags? GeoScript automatically strips them on paste. No errors, no double-wrapping. Just paste and go.
That’s roughly 1,500 lines of code. If your script is larger, host it externally and use GeoScript to load it with a one-line fetch.
GeoScript fires as a Tier 2 side effect — it runs alongside content swaps, bars, popups, and currency conversions. No conflicts.
73%
of marketers use 3+ analytics or tracking tools simultaneously
Source: Gartner
2.5s
average page load delay from loading unnecessary third-party scripts globally
Source: HTTP Archive
47%
of users expect a web page to load in 2 seconds or less
Source: Akamai
“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 (same one used by all GeoSwap products)
Create a new script in the dashboard — paste your JavaScript and pick the geo segment
Optionally add device targeting (mobile, desktop, or both)
GeoSwap detects the visitor’s location at the edge. If they match, the script executes with full geo context.

The GeoScript dashboard
Load Google Analytics 4 for US visitors, Matomo for EU visitors (GDPR-friendly), and Yandex Metrica for Russian visitors. One site, three providers, each only where it belongs.
Running ads in the US, UK, and Germany? Fire your Meta pixel only for those three countries. Stop wasting pixel events on visitors from other markets.
Load Intercom for English-speaking countries, Crisp for France, and hide the chat widget entirely in countries where you don’t offer support.
Load tracking scripts only after consent in GDPR regions, while running them freely in non-regulated markets. Pair with GeoConsent for a complete compliance stack.

GeoSwap is free, forever. Set up geo redirects, short links, and content personalization in under 60 seconds.
Add Your First Geo Script — Free