Implementing a custom GDPR-compliant consent system on Sentiero Luxury Villas website
Discover how I crafted a GDPR-compliant consent system for Sentiero Luxury Villas, balancing user privacy, transparency, and luxury website aesthetics.

As a web developer passionate about user privacy and transparency, I recently developed a custom consent management system for one of my client's websites, Sentiero Luxury Villas. In this article, I want to share how I've implemented a system that not only complies with the General Data Protection Regulation (GDPR) but also enhances the user experience for visitors.
Introduction
In today's digital landscape, user privacy is more important than ever. The GDPR mandates that websites obtain explicit consent from users before processing their personal data. This includes data collected through services like fonts, maps, and embedded videos.
Understanding the importance of consent
Before diving into the details, it's crucial to understand why consent is so important:
- User control: Users should have the right to decide which services they want to enable, especially if those services collect personal data.
- Transparency: Clear communication about what data is collected and how it's used builds trust between the website and its users.
- Legal compliance: Adhering to regulations like GDPR is not just about avoiding penalties; it's about respecting the privacy rights of individuals.
Services requiring consent on Sentiero Luxury Villas
The website utilizes several services to enhance user engagement:
- Google Fonts: Provides custom fonts that align with the luxury branding of Sentiero Luxury Villas.
- OpenStreetMap: Offers an interactive maps displaying nearby attractions.
- YouTube embeds: Features a promo video of the development project.
While these services enrich the user experience, they can collect personal data such as IP addresses and may set cookies, necessitating explicit user consent under GDPR.
Implementing consent management on the website
To address these concerns, I've implemented a consent management system tailored to Sentiero Luxury Villas.
Services disabled by default
- Initial state: When a user first visits the site, Google Fonts, OpenStreetMap map tiles, and YouTube embeds are disabled.
- No data collection: This ensures that no personal data is collected without the user's explicit permission.
The consent modal
Upon visiting the site, users are greeted with a clear and informative consent modal.
The consent modal presents privacy choices, including options to accept all services, accept only necessary services, or manage preferences, with a link to the privacy policy.
The modal has the following features:
- Title: "Your privacy choices"
- Message: Explains that while necessary services are required for the website to function, additional services can enhance the browsing experience. It informs users that these services may process personal information and set cookies.
- Options:
- Accept all: Enables all services.
- Accept necessary only: Only essential services remain active.
- Manage preferences: Allows users to customize which services they want to enable.
- Privacy policy link: Directs users to a detailed explanation of data handling practices.
This modal provides users with immediate options to control their data and understand how it's used.
The preferences modal
For users who want more control, the preferences modal offers more granular control.
The preferences modal allows users to manage consent for individual services such as YouTube embeds, Google Fonts, and OpenStreetMap, with clear descriptions and action buttons for saving preferences.
The modal has the following features:
- Title: "Manage service preferences"
- Introduction: Emphasizes the importance of privacy and allows users to choose specific services.
- Service categories:
- Necessary services: Essential for website functionality and cannot be disabled. These are completely anonymous.
- Marketing services:
- YouTube embeds: Users can choose to enable or disable video content.
- Functional services:
- Google Fonts: Enhances typography on the site.
- OpenStreetMap map tiles: Provides interactive maps.
- Descriptions: Each category and service includes a brief explanation of its purpose and how it affects user privacy.
- Action buttons:
- Accept all: Enables all optional services.
- Accept necessary only: Disables optional services, keeping only the essential ones active.
- Accept current selection: Saves the user's customized choices.
This modal empowers users to make informed decisions about their data on a granular level.
User empowerment and transparency
- Granular control: Users decide exactly which services to enable.
- Clear information: Explanations are provided in straightforward language to avoid confusion.
- Easy access: Users can adjust their preferences at any time through a persistent "Settings" link available on the footer.
Respecting user choices
Once the user makes their selections:
- Immediate effect: The website adjusts instantly to reflect the user's preferences.
- Reversible decisions: Users can change their minds and update their settings whenever they wish.
Benefits to Sentiero Luxury Villas
Implementing this consent management system has several advantages:
- Enhanced trust: By prioritizing transparency, users are more likely to feel comfortable and trust the website.
- Improved UX: Users who opt-in to additional services enjoy enhanced features, such as improved fonts and interactive maps.
- Legal compliance: Adhering to GDPR regulations protects both the users and the website from legal issues.
- Brand alignment: The consent system is designed to match the luxury aesthetic of the brand, ensuring a seamless experience.
Challenge: balancing compliance and UX
Ensuring the website remained functional and visually appealing, even with certain services disabled, was a critical requirement. To address this, placeholder visuals were implemented for disabled services.
For YouTube embeds, users see an elegant placeholder image accompanied by a concise notice explaining that enabling the video may involve data processing and cookies. Clear instructions guide users to manage their preferences in the Privacy Settings.
The fallback YouTube video placeholder displays a notice explaining that enabling the video may involve data processing and cookies, with instructions to adjust privacy settings.
Similarly, for maps, an overlay in the brand's primary color informs users about potential data processing when enabling map tiles, along with directions to adjust their settings. These solutions maintain the website's aesthetic while prioritizing user privacy and control.
Brand-colored placeholder overlay appears when map tiles are disabled, informing users about data processing and guiding them to manage privacy settings.
Conclusion
Implementing a GDPR-compliant consent system on Sentiero Luxury Villas was a significant step toward enhancing user privacy and trust. It demonstrates how luxury brands can responsibly manage user data without sacrificing functionality or aesthetics.
Key takeaways
- User-centric approach: Prioritizing user choice leads to a more positive user experience.
- Transparency is essential: Clear communication about data practices builds trust.
- Compliance matters: Adhering to regulations is not just legally necessary but also ethically responsible.
Experience it yourself
I invite you to visit Sentiero Luxury Villas to see the consent management system in action. Your feedback is valuable and helps me continue to improve user experiences while respecting privacy.
- Share this page