Geo-targeted variants
Display a different cookie banner depending on the user's geographic location.
Overview
The Dastra consent module lets you create geo-targeted variants of your cookie banner. Each variant is a customized version of the banner (appearance, texts, exposed services) that is automatically displayed based on the user's geographic location, detected from their IP address.
This feature is useful for organizations operating across multiple countries or regulatory zones, since cookie consent obligations vary by jurisdiction (GDPR and ePrivacy in Europe, CCPA in California, LGPD in Brazil, etc.).
Variants depend on your plan: the variants drop-down is disabled if the feature is not included in your subscription.
Create a geo-targeted variant
1. Access the configuration
In the menu, click Cookie consent > Banners, then click your banner.
At the top right of the editor, open the drop-down that shows Default configuration. It lists the existing variants.
Click Create a geo-targeted variation.

2. Name the variant
Enter a descriptive name in the Geo-targetted variation label field (80 characters max), for example Banner - California (CCPA) or Banner - EEA zone.
3. Select the targeted geographic zones
In Countries or geographical regions targeted by the banner, choose the countries or regions the variant applies to. A search is available within the list.
Dastra provides two shortcuts, under Pre-select:
EU/EEE: selects all countries in the European Economic Area.
All adequate country: selects the countries recognized as adequate by the European Commission under Article 45 GDPR.
The list is organized by country and lets you target sub-national regions (for example French regions or US states). You can, for instance, create a variant specific to California within a more general banner for the United States.
4. Customize the variant
Once the variant is created, it opens in the editor. You can customize:
Templating of the banner: colors, layout, buttons;
Texts and localizations: texts adapted to the local legal context;
Services: you can restrict or extend the list of trackers presented;
Triggers: display conditions specific to the variant.
5. Disable banner display (optional)
In the section of the variant, the Disable the banner display (all cookies with default consent will be triggered) option lets you not display a banner to users in the targeted zone.
When enabled, no consent window is shown to the relevant visitors. All cookies are then triggered with their default consent, as configured for each service.
Typical use cases
European site with US traffic
EEA variant (strict opt-in) + US/California variant (CCPA opt-out)
French site with a German subsidiary
France variant + Germany variant with texts adapted to BfDI requirements
Global site with minimal compliance outside the EEA
Default global banner + EEA variant compliant with GDPR
How it works technically
Dastra detects the location from the visitor's IP address, with no configuration on your side. The location is used to choose which variant to display. The visitor's consent cookie does not contain their location, but the detected country and the IP address are recorded with the proof of consent.
Last updated
Was this helpful?