Show / Hide Table of Contents

Optimizely CMP

Optimizely CMP is one of many DAM systems for which there is out-of-the-box support.

Prerequisites

  1. Optimizely CMS 12 (PaaS)
  2. Optimizely CMP (or the DAM product separately) with Graph enabled

Configuring the image provider

using AdaptiveImages.CMP;
using AdaptiveImages.Initialization;
using Microsoft.Extensions.DependencyInjection;

public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddCms()
                .AddAdaptiveImages()
                .AddOptimizelyCmp(new CmpSettings(
                    graphEndpoint: "https://cg.optimizely.com/content/v2?auth={auth key}",
                    clientId: "{REST API client ID}",
                    clientSecret: "{REST API client secret}",
                    reportUsage: true));
    }
}

FAQ

Why does it require access to both Graph and the REST API?

Graph is used to search for images. The REST API is used to report usage back to CMP and to retrieve metadata not available in Graph.

How does usage reporting work?

When content is published, usage is reported back to CMP.

When content is deleted (i.e. cleared from "Trash") the usage is removed from CMP.

Current usages are listed under "Usages" when viewing an asset in the DAM library, i.e. through cmp.optimizely.com.

Note: Usage reporting is currently supported for AdaptiveImage and SingleImage properties. It is currently not supported for IList<T> properties.

☀
☾
In this article
Back to top
Documentation applies to: Adaptive Images 2.x
☀
☾