Area: Optimizely Content Delivery API
Applies to versions: 2.9.0 and higher

Personalizing content using Optimizely Content Delivery API

Recommended reading 

How do you add content personalization to a headless solution where the tracking does not hit a controller in the presentation layer?  You can use a headless approach for content recommendations through the Content Delivery API. To do this you need to implement compatible tracking and calls to the recommendation API. See Tracking.

In a headless scenario, you can also customize the DefaultContentModelMapper and replace it with your own. See How to customize API to change data returned to clients and Serialization.

Note: The DefaultContentModelMapper is currently marked as internal, so there is a risk of unadvertised breaking changes when customizing this.

Do you find this information helpful? Please log in to provide feedback.

Last updated: Mar 24, 2021

Recommended reading