AI agents: the content index is at /llms.txt. Every page is also available as Markdown — send the request header Accept: text/markdown, or append .md to the page URL.
Xperience Docs
  • Community Questions & Answers (opens in a new tab)
  • Contact support (opens in a new tab)

Cookie consent

We use necessary cookies (opens in a new tab) to run our website and improve your experience while browsing. Additional cookies are only used with your consent. You may revoke your consent on the Cookies Policy (opens in a new tab) page or in your browser at any time.

Configure (opens in a new tab)
  • Documentation
    Administration interface basicsDevelopers and adminsBusiness usersChangelogGlossary
  • Guides
    Welcome to Xperience by KenticoAdministration interface basicsCustomer journeysDigital marketingConfigurationDevelopmentArchitectureUpgrade to Xperience by Kentico
  • Training
    For AdminsFor Business usersFor DevelopersFor Solution architects
  • API Examples
    ConfigurationContent managementDevelopmentDigital marketing
  • Changelog
    Documentation updatesSecurity advisories

Activities and contacts

  • Introduction to activities and contacts
  • Enable activity tracking
  • Define custom activities in Xperience
  • Log custom activities from the client side
  • Log custom activities from the server side
  • Hide builder content from visitors who have not consented to tracking
  • Implement cross-site activities
  • Add a custom field to the Contact profile
  • Learn more about contacts and activities

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#⁠ (opens in a new tab), .NET Core⁠ (opens in a new tab), Dependency injection⁠ (opens in a new tab), and the MVC pattern⁠ (opens in a new tab).

  • 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⁠ (opens in a new tab) of the Training guides repository.

The main branch⁠ (opens in a new tab) of the repository provides a starting point to code along with the guides.

The code samples in this guide are for .NET 8⁠ (opens in a new tab) only.

They come from a project that uses implicit using directives⁠ (opens in a new tab). You may need to add additional using directives to your code if your project does not use this feature.

← Previous page

1 of 9

Mark complete and continue →