jump to content

Geolocation and Regulations

Learn how the platform detects a visitor's country and automatically applies the matching privacy regulation, presentation, and consent mode for the banner.

View as Markdown

the platform automatically detects each visitor’s country from their IP address and applies the correct privacy regulation. The banner’s presentation (opt-in, opt-out, or notice), button set, initial/reopen state, and copy all adapt to the visitor’s location without any manual configuration.

Every time the JavaScript SDK fetches the banner configuration, the API resolves the visitor’s location:

  1. The visitor’s IP address is extracted from the request.
  2. The IP is looked up against a geolocation database to determine the country.
  3. The country is mapped to an applicable privacy regulation (e.g. GDPR for France, CCPA for the United States).
  4. The regulation determines the layout (presentation, initial_state, reopen_state, buttons, settings-link style) and consent mode. Banner text variants are selected to match.

This happens transparently on every configuration request. You do not need to install any additional library or pass location data from the client.

If geolocation cannot resolve a country (for example the IP cannot be looked up), the platform falls back to GDPR — the strictest opt-in model.

The SDK renders from three presentations (see layout.presentation in the JavaScript SDK):

PresentationBehaviorTypical reopen target
OPT_INNon-essential cookies blocked until the visitor consents. Accept / reject / customize.Preference panel
OPT_OUTNon-essential cookies active by default. Compact acknowledge + opt-out banner. Under CCPA the banner starts closed and reopen opens Privacy Choices.Compact banner (or Privacy Choices for CCPA)
NOTICEInformational notice with a single dismiss control. Records ACKNOWLEDGE (not accept-all). Cookies follow the opt-out model (active by default).Notice banner
RegulationCountries
GDPRAustria, Belgium, Bulgaria, Croatia, Cyprus, Czechia, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, Netherlands, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden, Iceland, Liechtenstein, Norway
UK GDPRUnited Kingdom
FADPSwitzerland
POPIASouth Africa
PDPAThailand
PIPLChina
PIPASouth Korea
DPDPIndia
PDPLSaudi Arabia
RegulationCountriesNotes
CCPA / CPRAUnited StatesStarts closed; <probo-settings-link> shows “Your Privacy Choices” + official icon and opens the Privacy Choices panel
PIPEDACanadaCompact opt-out banner; settings link reopens that banner
LGPDBrazilCompact opt-out banner; settings link reopens that banner

Informational dismiss only — implied-consent or no cookie-consent law:

RegulationCountriesNotes
APPIJapanSingle acknowledge / dismiss control
LFPDPPPMexicoSingle acknowledge / dismiss control
NoneOther identified countries with no mapped cookie-consent regulationSame notice presentation
  1. Country resolved — Map to the regulation above and apply that regulation’s layout (presentation, consent mode, reopen target, settings-link style).
  2. Country unresolved — Fall back to GDPR (strict opt-in).
  3. There is no console “default consent mode” override. Layout is always derived from the resolved regulation.

The API adjusts button labels and description text to match the resolved presentation. You do not need to manage separate text variants in code — use presentation-specific translation keys in the console (or resolveBannerText in headless embeds).

PresentationBanner behavior
OPT_INAccept all, reject all, and customize with the standard consent description
OPT_OUTAcknowledge + opt-out with opt-out-specific description. Under CCPA the first visit starts closed; settings link opens Privacy Choices
NOTICESingle dismiss button with a notice-style description — records ACKNOWLEDGE

If you have customized banner translations, the system uses your opt-out or notice-specific text variants when they apply. Configure these per language in the the platform console under the banner’s Translations tab.

Geolocation and regulation mapping are fully automatic. You do not pick a consent mode when creating a banner — only name, origin, policy URLs, expiry, and languages. Everything else — IP resolution, country-to-regulation mapping, layout, and text adaptation — is handled by the platform.

Ultima actualizare: