Headless
Discover how to integrate Umbraco.Engage.Headless package with Umbraco 12.0+ for a Content Delivery API.
Umbraco Engage offers the Umbraco.Engage.Headless package for seamless integration with Umbraco 12.0 and later. This package enables access to the Headless Content Delivery API, enabling personalized content, A/B tests, and segmentation.
All Engage Analytics features are supported except:
Time on page tracking
Video tracking (workaround could be to use the Events API)
Form tracking
Search term tracking (workaround could be to use the Events API)
Requirements
To install Umbraco.Engage.Headless, ensure the following prerequisites:
Umbraco v13 is required to integrate with the Content Delivery API.
Enable the Umbraco Content Delivery API by adding the following configuration setting in the
appsettings.json
file:
Installing the Umbraco Engage Headless API
To install the Umbraco Engage Headless API, follow these steps:
Install the
Umbraco.Engage.Headless
package:
Using an IDE: Install the
Umbraco.Engage.Headless
package from NuGet in Visual Studio or JetBrains Rider.Using the command line:
Navigate to your Umbraco website root folder in your terminal.
Run the following command:
Updating Program.cs
To update the Program.cs file, follow these steps:
Open your
Program.cs
file.Add the line
.AddEngageApiDocumentation()
after.AddDeliveryApi()
. YourCreateUmbracoBuilder
method should look like this:
Rebuild and run your site.
Navigate to /umbraco/swagger in your browser.
Check for the Umbraco Engage API from the top right definition dropdown.
Last updated