Module: Activities and contacts
1 of 9 Pages
Introduction to activities and contacts
This module takes a detailed look at contacts and their activities in Xperience by Kentico, exploring practical examples.
We’ll explore each of the following processes:
- Enabling activity tracking
- Conditionally rendering tracking scripts based on consent
- Logging custom activities, both from the server side and the client side
- Conditionally hiding the contents of page builder sections based on consent
- Logging activities from an external site
- Adding custom fields to the Contact object
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.
- Basic experience using Page Builder sections.
- Familiarity with the concepts of consents and data protection.
- Some of the samples require that you have completed the Data protection series
- 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.
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.