Module: Data protection
1 of 13 Pages
Introduction to data protection
This module takes a detailed look at Data protection in Xperience by Kentico, diving into complex examples.
We’ll go over how to build all of the following:
- A mapping between consents and custom cookie levels
- A widget allowing visitors to consent to different cookie levels
- A tracking consent banner to accept all consent levels at once
- A Page builder section that hides its contents from visitors who have not consented to tracking
- An identity collector to gather contacts associated with a given email
- A data collector to collect personal information associated with provided contacts
- A data eraser to remove all data associated with provided contacts
Some of the materials in this module are not exclusive, and may look familiar if you’ve already completed other modules.
Prerequisites
This module’s hands-on materials require the following:
- Familiarity with C#, .NET Core, Dependency injection, and the MVC pattern.
- A running instance of Xperience by Kentico, preferably 29.6.1 or higher.
Some features covered in the Training guides may not work in older versions.
- Basic experience using Page Builder widgets.
The example presented in this Data protection series is a valid implementation of data protection for Contacts in Xperience by Kentico. (Note that it does not cover the collection and erasure of Members and their associated data.)
You can copy-paste the code samples into your own solution.
However, if you choose to do so, make sure to consult your legal team to determine whether the implementation, texts, and consent levels meet the requirements of your region and market.
Code samples
You can find a project with completed, working versions of code samples from this module and others in the finished branch of the Training guides repository.
The main branch of the repository provides a starting point to code along with the guides.
The code samples in this guide are for .NET 8 only.
They come from a project that uses implicit using directives. You may need to add additional using
directives to your code if your project does not use this feature.