Run a JavaScript code on your website based on a visitor's country, state or city. The editor is directly in the app, as you can see from the screenshot below. This allows you to execute third-party tools such as popups, forms and tracking scripts based on visitor geolocation.
Default Javascript
Default Javascript is a fallback script that runs for visitors who do not match any of your location rules. It corresponds to the All Other Locations segment, which has its own Javascript tab.
Use case: load a generic script (for example, a default tracking pixel or a generic popup) for visitors from countries or regions you have not explicitly targeted.
How to enable: Default Javascript is optional and is off by default. To activate it, open the All Other Locations segment and toggle it on, then add your fallback script in the Javascript tab of that segment.
Like all other location segments, the Default Javascript also respects your page inclusion and exclusion rules — it will only run on the pages you have configured.

