---
title: Enabling Xperience features in ASP.NET Core applications
related:
  - https://docs.kentico.com/13/developing-websites/developing-xperience-applications-using-asp-net-core.md
  - https://docs.kentico.com/13/developing-websites/developing-xperience-applications-using-asp-net-core/starting-with-asp-net-core-development.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

In Xperience, some features provided by the system need to be explicitly enabled on the side of the [front-end](https://docs.kentico.com/13/developing-websites/developing-xperience-applications-using-asp-net-core.md) ASP.NET Core application. This is an intentional design choice that allows you to enable and configure only the features you end up integrating. Individual features register additional middleware and routes; having all features enabled by default would unnecessarily impact application performance.

Features are enabled within the **ConfigureServices** method of the application's startup class. The **IServiceCollection.AddKentico** method that adds Xperience classes to the service container optionally takes an **IFeaturesBuilder** delegate where you can enable individual system features. Each feature is enabled with a corresponding _Use\*FeatureName\*_ extension method:

```csharp title="Application startup class"

public void ConfigureServices(IServiceCollection services)
{
    ...

    services.AddKentico(features =>
    {
        features.Use*FeatureName*();
    });

    ...
}

```

The following table provides an overview of all features that can be enabled:

| Feature                                                                                                                                                                                                                                                              | Extension method                                       | Description and additional notes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Page builder](https://docs.kentico.com/13/developing-websites/page-builder-development.md)                                                                                                                                                                          | UsePageBuilder<br>(Kentico.PageBuilder.Web.Mvc)        | See [Page builder development](https://docs.kentico.com/13/developing-websites/page-builder-development.md) for more details and additional configuration options.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [Content tree-based routing](https://docs.kentico.com/13/developing-websites/implementing-routing/content-tree-based-routing.md) and [alternative URLs](https://docs.kentico.com/13/developing-websites/implementing-routing/enabling-alternative-urls-for-pages.md) | UsePageRouting<br>(Kentico.Content.Web.Mvc.Routing)    | [Content tree-based routing](https://docs.kentico.com/13/developing-websites/implementing-routing/content-tree-based-routing.md) is enabled automatically by calling _UsePageRouting_. The site's routing mode also must be set to _Based on content tree_ under **Settings -> URLs & SEO -> Routing mode** in the Xperience administration application.<br>To enable the alternative URLs feature, pass a **PageRoutingOptions** object to the method and set the _EnableAlternativeUrls_ property to _true_:<br>` 
features.UsePageRouting(new PageRoutingOptions
    {
        EnableAlternativeUrls = true;
    });
 `<br>If you only want to enable alternative URLs, you need to explicitly disable the routing feature:<br>` 
features.UsePageRouting(new PageRoutingOptions
    {
        EnableAlternativeUrls = true;
        EnableRouting = false;
    });
 `<br>See [alternative URLs configuration](https://docs.kentico.com/13/developing-websites/implementing-routing/enabling-alternative-urls-for-pages.md#configuring-the-alternative-urls-editing-interface) for information about ways to further configure this feature. |
| [Scheduler](https://docs.kentico.com/13/configuring-xperience/scheduling-tasks.md)                                                                                                                                                                                   | UseScheduler<br>(Kentico.Web.Mvc)                      | Requires scheduled tasks to be enabled in **Settings -> System -> Enable scheduled tasks** within the Xperience administration.<br>You also need to configure individual site-specific scheduled tasks to run on the live site in the **Scheduled tasks** application.<br>See [Processing scheduled tasks on the live site](https://docs.kentico.com/13/configuring-xperience/scheduling-tasks/processing-scheduled-tasks-on-the-live-site.md) for more information.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [A/B testing](https://docs.kentico.com/13/on-line-marketing-features/managing-your-on-line-marketing-features/a-b-testing-pages.md)                                                                                                                                  | UseABTesting<br>(Kentico.OnlineMarketing.Web.Mvc)      | Requires A/B testing to also be enabled in **Settings -> On-line marketing -> Enable A/B testing** within the Xperience administration.<br>You also need to add logging scripts to your site's pages. See [Enabling A/B testing](https://docs.kentico.com/13/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/enabling-a-b-testing.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [Campaign logging](https://docs.kentico.com/13/on-line-marketing-features/managing-your-on-line-marketing-features/campaigns.md)                                                                                                                                     | UseCampaignLogger<br>(Kentico.CampaignLogging.Web.Mvc) | To support all campaign conversion options, logging of membership and page-related activities must be enabled. See [Logging activities](https://docs.kentico.com/13/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/configuring-activities/enabling-activity-tracking/logging-activities.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [Marketing email tracking](https://docs.kentico.com/13/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/configuring-email-marketing/enabling-marketing-email-tracking.md)                                                      | UseEmailTracking<br>(Kentico.Newsletters.Web.Mvc)      | When a recipient opens a marketing email from Xperience or clicks a link in its content, a hidden request is sent to the front-end Core site. Routes registered by the _UseEmailTracking_ method ensure that the tracking data is processed and logged into the shared Xperience database.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [User activity tracking](https://docs.kentico.com/13/on-line-marketing-features/managing-your-on-line-marketing-features/contact-management/tracking-contact-activities.md)                                                                                          | UseActivityTracking<br>(Kentico.Activities.Web.Mvc)    | Required for page-related activities that need to be logged manually in your code. See [Logging activities](https://docs.kentico.com/13/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/configuring-activities/enabling-activity-tracking/logging-activities.md) for more information.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [Web Analytics](https://docs.kentico.com/13/on-line-marketing-features/managing-your-on-line-marketing-features/web-analytics.md)                                                                                                                                    | UseWebAnalytics<br>(Kentico.OnlineMarketing.Web.Mvc)   | Requires web analytics to also be enabled using the settings in **Settings -> On-line marketing -> Web analytics** within the Xperience administration.<br>You also need to add logging scripts to your site's pages. See [Enabling web analytics](https://docs.kentico.com/13/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/configuring-web-analytics/enabling-web-analytics.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
