CDN Configuration for Geo-based Routing & Consent
Hey Everyone,
We’re exploring region-based routing support for our EDS site (e.g. / → /en/uk/ for UK visitors) and wanted to get your advice on best practices for implementation — especially as this may require user consent under GDPR.
Here’s our current understanding and open questions:
- We understand automatic redirects based on geolocation require explicit user consent. We plan to use a CMP like OneTrust to collect that consent — but are unsure if the redirect logic should be implemented purely client-side after consent, or in the CDN layer.
- If handled in the CDN, can Adobe help configure this once the domain and SSL are set up? Are there templates or examples for setting up conditional geo-redirects in AEM EDS Cloud?
- If handled client-side, do we need to build a custom modal or component to prompt users for their preferred region/language? Or would OneTrust handle the interface and just pass back location data for us to act on?
- What fallback should we plan for in the event a user declines location consent (i.e., redirect to a “default” region like /en/us/)?
Any guidance or working examples for how other EDS projects have handled this would be super helpful.
Thanks in advance for your help!