CMS + CMP + Graph
How to integrate Optimizely Content Management System with Optimizely Content Marketing Platform and Optimizely Graph.
Optimizely Content Management System (CMS) can fetch data from Optimizely Content Marketing Platform (CMP) asset metadata when integrated with Optimizely Graph. If you use CMP, you also have access to Optimizely Graph and can fetch metadata from it instead of relying on the CMP API.
Note
Starting in November 2024, you should use the Optimizely Graph-supported version of this integration for optimal performance.
Click the integration NuGet package to download and install the package and use the following steps:
- Update the existing
EPiServer.Cms.WelcomeIntegration
packages to version 1.4.0. - Install
EPiServer.Cms.WelcomeIntegration.Graph
. - Configure
GraphClient
inappsettings.json
."Optimizely": { "ContentGraph": { "GatewayAddress": "<https://cg.optimizely.com">, "SingleKey": "SINGLE_KEY_FROM_CMP", "QueryPath": "content/v2", "UseHmacKey": false } }
- Ensure there is
services.AddDAMUi(o => o.Enabled = true)
call inStartup.cs
. - Add
services.AddDAMGraphIntegration();
call toStartup.cs
. - If you do not already have a CMS-to-Graph integration, then add this configuration in
appsettings.json
. (If you do, you already have it.)The"Optimizely": { "ContentGraph": { "GatewayAddress": "<https://cg.optimizely.com">, "AppKey": "APPKEY", "Secret": "SECRET", "QueryPath": "content/v2" } }
AppKey
andSecret
let you read and write to a CMS schema. However, the CMP+Graph integration uses different schema which is now available with the CMS keys. - Configure the following code in
appsettings.json
.Or in"EPiServer": { "Cms": { "CMPGraph": { "SingleKey": "SINGLE_KEY_FROM_CMP" } } }
Startup.cs
.services.Configure<CMPGraphOptions>(options => { options.SingleKey = "YOUR_KEY_FROM_CMP"; });
Updated 15 days ago