Tagged: Optimizely

Optimizely CMS 13: What Actually Changed, and Should You Upgrade Now?

Optimizely CMS 13: What Actually Changed, and Should You Upgrade Now? - blog banner by Madhu Anbalagan

Recently, while working on an Optimizely CMS 12 implementation, our clients started asking the same question again and again:

“CMS 13 is out. Is it just another upgrade, or do we need to plan for it properly?”

Honestly, I had the same question. Most CMS 12 updates have been pretty painless – update the packages, test, deploy, done. So it’s easy to assume CMS 13 will be the same.

So we went through the release in detail against a CMS 12 solution we’re working on. We checked our code, our search, our editing setup, and our sign-in setup. This blog shares what we found, what actually changed, and how we’re advising teams on timing.

Quick background – Optimizely CMS 13 launched on March 31, 2026. Your content stays where it is. Optimizely calls this an upgrade, not a migration, and that’s true. But five things underneath the content do change, and once you know what they are, the upgrade becomes much easier to plan.

The Problem

We tend to estimate an upgrade based on the last one we did. And at first glance, CMS 13 looks like a small step from CMS 12. These were the assumptions I kept hearing (and, to be fair, making myself):

  • We’re already on CMS 12 and fairly current, so CMS 13 should be a small step.
  • Our editors know On-Page Edit, so training should be minimal.
  • Site search works today, so it’ll keep working after the upgrade.
  • SSO and logins are sorted, so identity won’t need any work.

All reasonable. But when we checked each one against CMS 13, every single one needed a second look. On-Page Edit is no longer the default. Search doesn’t carry over the way most teams expect. And sign-in does need work, even if your SSO works perfectly today.

That doesn’t make CMS 13 a bad upgrade – most of the changes are genuinely useful, and editors will like them. It just means the estimate has to cover more than the code update. If you only plan for the packages, the rest will show up later, usually at the worst possible time.

What We Checked First

Before talking about dates, we ran five quick checks on the solution. They didn’t take long, and honestly, they told us more than the release notes did.

  1. Framework and packages – What .NET version does the solution target today? List every package and add-on, and check whether it works on .NET 10. In my experience, this is where estimates slip, and it’s usually a third-party or in-house package, not Optimizely code. (I ran into exactly this with the Siteimprove plugin while moving CMS 12 to .NET 10!)
  2. Search – Search the code for Search & Navigation (most of us still call it Find). Note every place it’s used – site search, listing pages, filters, indexing jobs – and mark the ones visitors actually see. Those are the ones that matter.
  3. How editors work today – Ask the editors! Which page types and blocks do they use most? How much do they rely on On-Page Edit? That tells you which templates to move to Visual Builder first.
  4. Identity and sign-in – How do editors sign in today? Who owns SSO in your organisation? Is Opti ID already enabled, starting with the Integration environment? We learned on an earlier Opti ID project that one small environment setting can block the whole setup, so check this early.
  5. The edges – Do you run Commerce? Where does your media live? Which integrations need re-testing – analytics, personalisation, marketing tools, Siteimprove? List them now, not during testing.

Reading the results is simple. If search and identity come back clean, you’re at the easier end. If either one comes back big, that item sets your timeline – not the CMS code itself.

What Actually Changed

This was the lightbulb moment for us. Once we lined up CMS 12 and CMS 13 side by side, the work became clear.

What changedCMS 12CMS 13
.NET version.NET 6 / 8.NET 10
Default editorOn-Page EditVisual Builder
Search and deliveryGraph optional, Find supportedGraph required, Find not supported
Sign-inCMS / site SSOOpti ID setup required
AI and discoveryOpal alongside the CMSGEO built in, deeper Opal

.NET 10 is the new base

CMS 13 is built on .NET 10, which is great news for performance, security, and support. It also means every package in your solution has to work on .NET 10 before CMS 13 will run. So check your packages first – don’t start with the CMS packages and hope everything else follows.

Visual Builder replaces On-Page Edit as the default

Visual Builder is now the default editor. Editors build pages from sections and elements, with live preview and drag-and-drop. It’s a different way of working compared to filling in a fixed template in On-Page Edit.

The good news? You don’t need a new front end – Visual Builder in CMS 13 works with ASP.NET MVC as well as headless. And you don’t have to convert everything on day one (more on that in Step 3 below).

What does change on day one is the editors’ daily routine. Give them real training on your own page types and some support in the first couple of weeks. A launch-day demo isn’t enough.

Graph is no longer optional

This is the biggest technical change. Optimizely Graph is the GraphQL layer for content delivery and search. In CMS 12 it was optional; in CMS 13 it’s required. It also powers the new Content Manager and much of the AI functionality.

Search & Navigation (Find) is not supported in CMS 13. If your site search, listings, or filters are built on Find, that work has to be rebuilt on Graph. That’s real development work, and it needs proper testing – it’s not a side effect of bumping the version number.

Opti ID is now part of the setup

Opti ID is Optimizely’s single sign-in. In CMS 13 it’s part of the setup, and it’s what unlocks Opal, the Embedded DAM, and other connected services.

This isn’t just a developer task. It needs SSO planning, a review of editor roles and permissions, and time with your identity team. The nice part is that you can start Opti ID while you’re still on CMS 12, so it doesn’t have to sit on the critical path later.

GEO and Opal are built in

These two explain why Graph and Opti ID matter so much now. First, GEO – Generative Engine Optimization. CMS 13 is designed to help your content get found and cited by AI answer engines, not just traditional search. Clear, well-structured content wins here.

Second, Opal – Optimizely’s AI agents. CMS 13 connects more deeply with Opal, so agents can work with your content through Graph, help create and update drafts, and support editors inside the CMS. You don’t have to use every agent on day one, but this is clearly where the platform is heading.

Why It Matters

The root cause of most upgrade surprises here is simple: things that were optional are now required, and the default editor has changed.

Editors feel the editor change. Visitors feel the search change if search isn’t rebuilt and tested well. And the whole project feels the identity change, because Opti ID depends on people outside the dev team.

That’s why those five checks matter – they surface these items while they’re still cheap to plan for.

Don’t leave the GDPR sign-off to the end

One more thing that belongs in week one. CMS 13 introduces new data sub-processors. If your organisation follows GDPR, your Data Protection Officer (DPO) needs to review and sign that off before go-live – and in many organisations, before real content flows through the new cloud-connected parts like Graph.

This isn’t a reason to avoid CMS 13. It’s just a lead-time item, and DPO queues are rarely instant. Raise it in week one, not the week before go-live. In week one, it costs you an email. In the last week, it can cost you your launch date. The same people are usually involved in the SSO work, so raise both together.

The Upgrade Path

Optimizely lays out four steps for the CMS 13 upgrade. The first two are required; the last two are at your own pace. That split is what makes a phased plan possible.

  1. Set up Opti ID – Configure Opti ID for editors and business users, plan the SSO work with your identity provider, and move roles and permissions across. Start this first because it involves other teams. My tip from our Opti ID work: confirm Opti ID is enabled for the Integration environment before you go hunting for keys or settings – they won’t show up until it is.
  2. Switch to Graph – Move content delivery and any Find functionality onto Graph, and rework site search and filtering. Treat this as its own piece of work with its own sign-off. Test with real queries and real expected results – give content owners a list of searches they use every day and ask them to confirm the new results are right. A query that returns something isn’t the same as a query that returns the right thing.
  3. Move pages to Visual Builder at your own pace (hybrid model) – Your existing pages keep working. Convert templates in priority order, starting with the most visited and most edited. Editors use Visual Builder on converted pages while the rest of the site runs as before – no big content freeze. Keep a visible list of what’s converted and what’s not, with an owner and a date for the rest. If the list lives in someone’s head, this step will quietly never finish.
  4. Optionally set up the Embedded DAM – Every CMS 13 customer can use the Embedded DAM, so editors can find and place approved assets without leaving the CMS. If you’re new to Optimizely DAM, it needs a one-time setup and some tidying of existing media. If your current DAM setup already works, this step really is optional – do it when it helps editors, not because the upgrade forces you to.
StepRequired?Who is involved
1. Opti IDRequiredDevelopers, identity / IT, CMS admins
2. Switch to GraphRequiredDevelopers, testers, content owners
3. Visual BuilderAt your own paceDevelopers, editors, trainers
4. Embedded DAMOptionalEditors, media owners, CMS admins

So, Should You Upgrade Now?

CMS 12 still gets security updates, so this is a timing decision, not an emergency. Here’s how we talk it through with clients:

  • You want Visual Builder, GEO, or Opal for your editors – Upgrade now. Those features are the whole CMS 13 story, and waiting won’t make the Graph and Opti ID work any smaller.
  • Your search is heavily built on Find – Start now, go live later. Begin the Graph rebuild and Opti ID setup now, and schedule go-live once search is proven.
  • Your editors are in the middle of a big campaign – Plan now, upgrade after the peak. Do the five checks, the SSO work, and the DPO conversation now, and book the upgrade window for after.
  • You have add-ons with unclear .NET 10 support – Fix the packages first. An upgrade built on unmaintained packages will stall. Replace or resolve them, then re-estimate.

The one option I wouldn’t recommend is staying on CMS 12 with no plan and no date. Every new feature is being built for CMS 13 and beyond. Staying put is fine for now, but without a date, it quietly becomes the most expensive option.

Key Takeaways

  1. Start Opti ID early – It involves other teams, unlocks Opal and the Embedded DAM, and can start while you’re still on CMS 12.
  2. Test search properly – Real queries, real expected results, approved by content owners. “Search returns results” isn’t a test.
  3. Keep a visible Visual Builder conversion list – One shared list with an owner and a date for each remaining template. Review it in your regular project meeting.
  4. Rehearse on a copy of production – Back up first and run the full upgrade on a copy of production content. It’s much cheaper to find a package or content problem there than in the live window.
  5. Raise the DPO question in week one – Week one costs an email. The last week can cost the launch date.
  6. Train editors, don’t just demo – Visual Builder is a better experience, but a different one. Training on your own page types plus support in the first two weeks will decide how editors feel about this upgrade.

Final Thoughts

CMS 13 is a good upgrade. Visual Builder is easier for editors once they get used to it, Graph gives you a cleaner base for delivery and search, and GEO and Opal are where the platform is heading.

For most CMS 12 teams, my advice is simple – start. Not necessarily go live straight away, but start. Run the five checks. Kick off Opti ID. Have the DPO conversation. Scope the Graph work honestly.

That turns CMS 13 from a vague worry into a plan with a date you can defend. And as with most upgrades, the teams that do best aren’t always the fastest ones – they’re the ones whose editors feel supported on the Monday morning after go-live.

Hope this helps.

Happy Optimizing!

0

Integrating Siteimprove with Optimizely: From Accessibility Compliance to Content Excellence

Over the last few months, I’ve worked on several Optimizely solution designs involving accessibility, SEO, analytics, governance, and content quality. One integration that consistently delivers value with relatively low implementation effort is Siteimprove.
 
Most organizations initially look at Siteimprove because of accessibility requirements. However, once implemented correctly, it becomes much more than an accessibility tool. It helps content editors identify issues before publishing, improves SEO visibility, provides website analytics, and enables continuous monitoring of content quality directly within Optimizely.

 

The Problem

A common challenge with content-managed websites is that accessibility and quality checks happen too late.

The typical process looks something like this:

  1. Content editor creates a page.
  2. Page gets published.
  3. Accessibility issues are discovered later.
  4. SEO issues are identified by another team.
  5. Analytics are reviewed separately.
  6. Multiple remediation cycles follow.

By the time issues are detected, the content is already live.

For organizations operating under regulations like the European Accessibility Act (EAA), this approach introduces compliance risks. It also creates unnecessary overhead for editors and digital teams.

 

Why Siteimprove?

Siteimprove provides three key capabilities:

1. Accessibility

Automatically identifies WCAG compliance issues before content is published.

Examples include:

  • Missing alt text
  • Heading hierarchy issues
  • Color contrast violations
  • Missing labels
  • ARIA accessibility concerns

2. Search Intelligence

Siteimprove Search Pro provides:

  • Keyword monitoring
  • Competitor analysis
  • Search visibility reporting
  • Market-specific insights
  • Language-specific reporting

through integration with Google Search Console.

3. Analytics

Analytics Advanced delivers:

  • Visitor behavior insights
  • Engagement reporting
  • Content performance metrics
  • Website analytics dashboards

using a lightweight JavaScript implementation deployed through Google Tag Manager.

 

High-Level Architecture

At a high level, the integration is straightforward.

The Optimizely editor never leaves the CMS experience. Siteimprove insights are surfaced directly within the authoring environment.
 

Installing the Siteimprove Plugin

The first step is installing the Siteimprove Optimizely package.

At the time of writing, the Siteimprove Optimizely CMS 12 package is available through the Optimizely NuGet feed. The solution design referenced version 4.3.5

dotnet add package SiteImprove.Optimizely.Plugin
 

Once installed:

  1. Restart the application.
  2. Configure Siteimprove credentials.
  3. Verify plugin connectivity.
  4. Assign access permissions.

The plugin communicates securely with the Siteimprove platform using API credentials and TLS 1.2 encryption.

 

How Pre-Publish Accessibility Checks Work

This is the capability most clients get excited about.

When a content editor performs a pre-publish validation:

  • The editor creates or updates content in Optimizely.
  • The Siteimprove plugin extracts the rendered HTML.
  • The HTML payload is sent to Siteimprove for analysis.
  • Siteimprove evaluates:

Accessibility

Content quality

Policy compliance

SEO recommendations

  • Results are returned directly into the CMS interface.

Instead of discovering problems after publishing, the editor receives immediate feedback before the content becomes public.

 

Single Sign-On Integration

Many organizations want a seamless authentication experience.

A typical enterprise deployment uses Microsoft Entra ID (formerly Azure AD) as the Identity Provider and Siteimprove as the Service Provider. The integration uses SAML-based SSO.

The experience for the editor is simple:

  • User signs into Optimizely.
  • User opens Siteimprove.
  • Authentication is delegated through Entra ID.
  • Siteimprove grants access based on assigned permissions.

No additional passwords need to be managed by content editors.

 

Role-Based Access Control

One area that solution architects often overlook is governance.

Siteimprove supports role-based permissions allowing organizations to:

  • Separate administrators from editors.
  • Control access to reports.
  • Restrict configuration changes.
  • Delegate responsibilities appropriately.

In enterprise environments, user access is typically aligned with organizational roles and mapped through SSO authentication.

 

Search Pro Integration

Search Pro extends Siteimprove beyond accessibility.

Instead of simply reporting website issues, it helps digital teams understand how users discover content.

Configuration typically includes:

  • Markets
  • Languages
  • Keywords
  • Competitor domains
  • Reporting dashboards
  • Google Search Console integration

The important architectural detail is that Search Pro leverages data already gathered by Siteimprove’s crawler. No significant changes are required to the website architecture.

 

Analytics Advanced Integration

Implementing Analytics Advanced is refreshingly simple.

The solution uses Google Tag Manager to deploy the Siteimprove analytics script.

Benefits include:

  • Minimal code changes
  • Centralized tag management
  • Faster deployment
  • Controlled governance process

If your organization implements a Content Security Policy (CSP), remember to review and update the policy to permit Siteimprove analytics resources. This is often missed during implementation planning.

 

Crawling Protected Content

A question I get frequently is:

“What about authenticated pages?”

The answer is yes, Siteimprove can crawl protected content.

Common approaches include:

Dedicated Crawl Account

Create a dedicated Entra ID service account with read-only access.

Authentication Tokens

Provide secure tokens for crawler authentication.

Authenticated Sessions

Allow Siteimprove to access protected content through configured authentication mechanisms.

This enables accessibility and quality analysis on content that isn’t publicly accessible.

 

Things Every Solution Architect Should Consider

API Rate Limits

Siteimprove applies rate limits at the API key level.

For environments with high API usage, multiple API keys can be provisioned. 

Logging Expectations

A common misconception is that Optimizely manages Siteimprove processing logs.

It doesn’t.

The plugin integration sits inside Optimizely, but operational troubleshooting often relies on Siteimprove’s own diagnostics and support processes. 

Key Rotation

API credentials should be rotated regularly.

The architecture I reviewed followed an annual rotation process. 

SSO Resilience

Always maintain at least one local administrative Siteimprove account.

If an SSO configuration issue occurs, you’ll need a break-glass account to regain access.

 

What I Like Most About This Integration

Many CMS integrations promise value but require major customization.

Siteimprove is different.

The implementation is largely configuration-driven:

  • Install the CMS plugin.
  • Configure API access.
  • Enable SSO.
  • Configure Search Pro.
  • Deploy Analytics using GTM.
  • Start improving content quality.

From an architectural perspective, the solution introduces minimal platform complexity while delivering benefits across compliance, accessibility, SEO, governance, and analytics.

 

Final Thoughts

The real value of Siteimprove isn’t the dashboard. It’s moving accessibility, SEO, and quality checks into the content creation process itself.

Editors get immediate feedback, compliance risks are reduced, and digital teams gain better visibility into search performance and user behavior without introducing significant architectural overhead.

For organizations using Optimizely DXP, Siteimprove is one of those integrations that delivers quick wins for both business stakeholders and content teams while remaining relatively lightweight from a solution architecture perspective.

And as every architect eventually learns, the best integrations are usually the ones editors barely notice because everything simply works.

Happy Optimizing!

 

0

Optimizely DXP Alert: Are You Affected by the October 2026 Node.js Security Vulnerabilities?

On October 27, 2026, Optimizely published a security advisory regarding recently disclosed Node.js vulnerabilities affecting Node.js 22.x, 24.x, and 26.x release lines. Optimizely confirmed there is currently no evidence of exploitation across Optimizely products or customer environments. 

For most SaaS customers, remediation is handled automatically by Optimizely. However, certain CMS, Commerce Connect, and Frontend Hosting customers may need to take action to ensure they receive the patched Node.js runtime.

 

 

Executive Summary

The first question many Optimizely CMS customers asked was:

“Does this affect my Optimizely CMS PaaS solution?”

According to guidance received from Optimizely Support, customers using CMS PaaS generally only need to take action if their solution proxies Node.js processes through their .NET application.

“Customer only needs to act if they proxy Node.js processes through their .NET application. They must deploy a code package with a new name or version number. The package can contain the same code that’s in production. This forces a container rebuild that picks up the patched Node.js.”

This clarification aligns with Optimizely’s published security advisory, which identifies customers proxying Node.js workloads and customers using Frontend Hosting as requiring action.

 

How to Determine Whether You Are Affected

 

Step 1: Check if Your Solution Uses Node.js

For many Optimizely CMS DXP solutions, the Node.js version is defined in:

src/[Client Repository]/dxpPlatformSettings.json
 

The nodeVersion value indicates which major Node.js runtime version will be used when DXP builds your container image.

 

Step 2: Identify the Version

Node.js Version Status
18.x End of Life – Upgrade Required
20.x End of Life – Upgrade Required
22.x Supported – Requires rebuild to receive patched runtime
24.x Supported – Requires rebuild to receive patched runtime
26.x Supported – Requires rebuild to receive patched runtime
 
Optimizely specifically notes that Node.js 18 and 20 no longer receive security updates and customers should upgrade to a supported major version before redeploying.

 

Step 3: Verify Whether Your Deployment Uses Node.js

You are most likely affected if your solution:

  • Uses Optimizely Frontend Hosting
  • Runs Next.js, React, Vue, Angular, or other Node-based applications
  • Proxies Node.js processes from an ASP.NET application
  • Uses Node.js during build or runtime execution on DXP

Optimizely identified these scenarios as requiring customer action.

 

The Fix for DXP Customers

The good news is that the fix typically does not require code changes.

Optimizely’s DXP build pipeline automatically retrieves the latest patched Node.js version for your configured major version whenever a new container image is built.

To receive the patched runtime:

  1. Create a new deployment package.
  2. Change the package name or version number.
  3. Deploy the package through the standard DXP deployment process.
  4. Allow DXP to rebuild the container image.
The deployment package may contain exactly the same application code currently running in production. The objective is simply to force a fresh container build so that the patched Node.js runtime is incorporated.
 

What About .NET Security Updates?

During discussions with Optimizely Support, customers were also directed to Microsoft’s out-of-band October 2026 .NET security updates.

If your solution includes .NET workloads, review the Microsoft guidance and evaluate whether your environment requires additional patching alongside the Node.js remediation effort.

Optimizely Support further advised:

“We do not have a specific recommendation regarding the timing of the upgrade. However, since this issue involves a security vulnerability, we recommend upgrading as soon as feasible. Ultimately, your organization will need to assess and accept the associated risks based on your own security requirements and policies.”

This is a sensible approach. While no active exploitation has been reported by Optimizely, security-related rebuilds and upgrades are typically best scheduled as part of the next available maintenance window while following your organization’s risk management process.

Hope this helps.

Happy Optimizing!

0

Optimizely Forms Returning 301 on Submission? The Real Cause Was an AntiForgery Token Conflict

Sometimes a form submission issue looks like a routing problem, a redirect issue, or even a load-balancer misconfiguration. In our case, the browser showed a 301 response during Optimizely Forms submission, but the actual root cause was much deeper.
 
Recently, while working on an Optimizely CMS 12 implementation, we encountered a strange issue where Optimizely Forms stopped submitting successfully after introducing AntiForgery token support for custom forms. At first glance, it appeared to be a standard redirect problem. However, after investigating the application logs and working with Optimizely Support, the underlying issue turned out to be an AntiForgery token validation conflict.
 
 

The Problem

As part of a security enhancement initiative, we introduced AntiForgery token support for custom forms within the solution.

The implementation included: AntiForgeryController.cs to generate and manage AntiForgery tokens for custom APIs and forms.


[Route("api/antiforgery")]

public class AntiForgeryController : ControllerBase

{

private readonly IAntiforgery _antiforgery;
private readonly string _antiForgeryToken;


public AntiForgeryController(IAntiforgery antiforgery, IConfiguration configuration)

{

_antiforgery = antiforgery;
_antiForgeryToken = configuration["AntiForgeryToken"];

}


[HttpGet("token")]

public IActionResult GetToken()

{

var tokens = _antiforgery.GetAndStoreTokens(HttpContext);


Response.Cookies.Append(

_antiForgeryToken,

tokens.RequestToken!,

new CookieOptions

{

HttpOnly = false,

Secure = true,

SameSite = SameSiteMode.Strict

});


return Ok(new

{

token = tokens.RequestToken

});

}
}

Shortly after deployment, users reported that Optimizely Forms were no longer submitting successfully.

The behaviour was unusual:

  • Form submissions failed intermittently.
  • Browser Developer Tools showed a 301 response during form submission.
  • Optimizely Forms that previously worked without issues could no longer be submitted.
  • Removing the AntiForgery implementation immediately restored functionality.

This clearly indicated that the issue was related to the newly introduced security implementation.

 

Initial Investigation

Our first assumption was that the problem was related to:

  • URL rewriting
  • Redirect rules
  • Front Door configuration
  • Reverse proxy settings
  • Form endpoint routing

However, none of these areas revealed any issues.

The turning point came when reviewing the application exception logs.

The logs contained the following error:

One or more errors occurred.
 
The required antiforgery request token
was not provided in either form field
“__RequestVerificationToken”
 
or header value
 
“AntiForgeryToken”
 

Further examination showed the exception being raised from Optimizely Forms security validation.
 
System.AggregateException
 
EPiServer.Forms.Internal.Security
.DefaultAntiForgeryValidator.Validate()
 
Microsoft.AspNetCore.Antiforgery
.AntiforgeryValidationException

At this point, it became clear that the 301 response was merely a symptom. The actual failure was occurring during AntiForgery validation.

 

Understanding the Root Cause

Optimizely Forms already includes built-in AntiForgery protection.

When we introduced a custom AntiForgery implementation, we unintentionally created a conflict between:

Custom AntiForgery Token
and
 
Optimizely Forms AntiForgery Validation
 

The Optimizely Forms submission pipeline expected to receive a valid request verification token using its own validation mechanism.

Instead, the request validation process encountered a mismatch and failed with:

AntiforgeryValidationException
 
because the required token was not available in one of the expected locations:
 
__RequestVerificationToken
 
or
 
AntiForgeryToken header
 
As a result, the form submission was rejected before reaching the normal processing pipeline.

The Resolution

The fix was surprisingly simple.

We aligned the AntiForgery configuration so that Optimizely Forms could correctly locate and validate the expected request token.

Configuration update: appsettings.json

{
“AntiForgeryToken”: “RequestVerificationToken”
}

After correcting the AntiForgery configuration and validating the token flow:

  • Optimizely Forms submissions started working again.
  • No further 301 submission issues occurred.
  • Standard Optimizely Forms security validation executed successfully.
  • Custom forms continued to function as expected.

Happy Optimizing!

 
0

Optimizely CMS 12 on .NET 10: Fixing a Siteimprove TypeMismatchException

Recently, while upgrading an Optimizely CMS 12 solution from .NET 8 to .NET 10, we encountered a frustrating exception that initially looked like a CMS compatibility issue. After several rounds of troubleshooting with Optimizely Support, dependency analysis, debugging, and elimination testing, the root cause was eventually traced back to the Siteimprove Optimizely plugin.

This blog shares the journey, findings, root cause, and final resolution to help others who may encounter the same problem during their CMS 12 modernization efforts.

The Upgrade Journey

As part of our modernization initiative, we upgraded:

  • Optimizely CMS from 12.34.3 to 12.34.5
  • Application runtime from .NET 8 to .NET 10
  • Supporting CMS packages and dependencies
  • Development environment to Visual Studio 2026

Most of the upgrade activities went smoothly. We successfully resolved issues related to:

  • TinyMCE initialization
  • Language Manager gadget visibility
  • Dependency scanning problems
  • .NET 10 compatibility adjustments

However, another issue surfaced immediately after the upgrade.

The Exception

Whenever editors attempted to open any block in the CMS editor, Optimizely threw the following exception:

EPiServer.Core.TypeMismatchException:
 
Content with id ‘1652_3366’ is of type
‘Castle.Proxies.LinkBlockModelProxy’
 
which does not inherit required type
 
‘EPiServer.Core.PageData’
 
The exception originated from:

EPiServer.Core.Internal.DefaultContentLoader.Get<T>()
 

and appeared before any custom block code was executed.

At first glance, this looked like:

  • Database corruption
  • Content type mismatch
  • Invalid content references
  • CMS core regression

All reasonable assumptions.

Unfortunately, all of them turned out to be wrong.

Initial Investigation

The first suspicion was corrupt CMS data.

Optimizely Support referenced earlier cases where similar exceptions were caused by invalid fkContentTypeID values in the database. They recommended comparing content records between healthy and failing environments.

To validate this theory, we:

  • Restored multiple database backups
  • Created fresh blocks
  • Tested newly created content
  • Verified content type mappings

Surprisingly, the issue persisted even on fresh databases.

This effectively ruled out data corruption as the primary cause.

 

The Breakthrough

During the investigation, Optimizely’s development team performed deeper tracing and discovered something interesting.

Their analysis revealed:

“It’s a bug in the package SiteImprove.Optimizely.Plugin which subscribes to contextChange and gets PageData for all content without checking the type.”

This was the clue we needed.

The Siteimprove plugin was making an assumption that all CMS content could be safely treated as:

PageData
But when editors opened blocks, the content being processed was actually:
 
LinkBlockModel or another block type.

Under .NET 10 and the newer CMS version, this incorrect type handling became visible and resulted in:

TypeMismatchException instead of silently passing through.
 

The Root Cause

The Siteimprove Optimizely integration was subscribing to content context change events.

During those events, it attempted to retrieve content using logic that effectively expected: PageData for every content item.

The plugin did not properly verify whether the content was:

  • PageData
  • BlockData
  • MediaData
  • Other CMS content types

before casting or loading it.

Confirming the Cause

One of the most valuable debugging techniques during upgrades is dependency isolation.

We tested by removing the Siteimprove package entirely.

The result was immediate.

The TypeMismatchException disappeared. 

Even Optimizely support confirmed that after retesting, the exception was no longer reproducible once the problematic plugin code path was removed.

At this stage the evidence was conclusive.

The upgrade itself was not the root cause.

The Siteimprove plugin was.

The Fix

After engaging Siteimprove support and raising a GitHub issue, their development team investigated and released an updated package:

SiteImprove.Optimizely.Plugin 4.3.5

The updated version addressed the compatibility issue.

After upgrading and smoke testing, the problem was resolved.
 
Happy Optimizing!
 
 
0

Optimizely Opti ID Integration: Why the API Key Was Missing from the DXP Management Portal

While working on an Optimizely CMS 12 Opti ID integration recently, we ran into an issue that initially appeared to be related to SSO authentication but turned out to be an environment-specific configuration requirement.

The Problem

We needed to configure API key authentication for an Optimizely integration. However, when accessing the DXP Management Portal (PaaS Portal), the expected API key details were not visible.

At the same time, the team was investigating issues accessing the Admin Center and Support Portal through Opti ID SSO, which made it seem like the problems might be related.

What We Learned

After engaging Optimizely Support, the key piece of information was that:

The API for local configuration only works for the Integration environment. To view and use the API key configuration within the DXP Management Portal, Opti ID must first be enabled for the Integration CMS environment.[docs.devel…mizely.com]

This was not immediately obvious and explained why the API key details were not appearing even though the environment was otherwise accessible.

Resolution

Once Opti ID was enabled for the Integration environment:

  • The DXP Management Portal began displaying the API key details.
  • We were able to retrieve the required credentials.
  • The API key was configured in the application.
  • Functional testing could proceed successfully.

As confirmed during testing:

We have enabled Opti ID for the integration environment and the PaaS portal now shows the API key details. We configured the API key details in our code and started testing the functionality.

Key Takeaways

When working with Optimizely Opti ID integrations:

  1. Verify that Opti ID is enabled for the Integration CMS environment before attempting to retrieve API key details.
  2. If API keys are missing from the DXP Management Portal, check environment configuration first.
  3. Avoid assuming SSO authentication issues and API key visibility issues have the same root cause.
  4. Engage Optimizely Support early when certificate or authentication behavior appears inconsistent.
  5. Complete API key validation in Integration before promoting any configuration to higher environments.

Final Thoughts

A simple environment prerequisite prevented the API credentials from being displayed, and identifying that dependency quickly moved the team from investigation back into testing.

Happy Optimizing!

0

Optimizely CMS 12 and .NET 10 Upgrade: Resolving a TinyMCE Dependency Injection Exception

Framework upgrades often expose hidden compatibility issues that have remained dormant for years. While upgrading one of our Optimizely CMS solutions to .NET 10, we encountered a runtime exception that initially appeared to be a dependency injection problem but ultimately turned out to be an outdated TinyMCE package.

This post documents the issue, the investigation journey, and the surprisingly simple fix.

The Problem

After upgrading our solution to:

  • .NET 10
  • Optimizely CMS 12.34.4

the application failed during startup with the following exception:

AggregateException: One or more errors occurred.
 
Unable to resolve service for type
‘EPiServer.ServiceLocation.ServiceAccessor<EPiServer.Cms.TinyMce.Core.TinyMceConfiguration>’
while attempting to activate
‘DXP.Core.Model.TimelineBlockXhtmlStringEditorDescriptor’.

 

The exception pointed to our custom TinyMCE editor descriptor:

[EditorDescriptorRegistration(
TargetType = typeof(XhtmlString),
EditorDescriptorBehavior = EditorDescriptorBehavior.OverrideDefault,
UIHint = UIHint)]
public class TimelineBlockXhtmlStringEditorDescriptor
: XhtmlStringEditorDescriptor
{
public const string UIHint =
"TimelineBlockXhtmlStringEditorDescriptor";
 
public TimelineBlockXhtmlStringEditorDescriptor(
ServiceAccessor<TinyMceConfiguration> tinyMceConfiguration)
: base(tinyMceConfiguration)
{
}
public override void ModifyMetadata(
ExtendedMetadata metadata,
IEnumerable<Attribute> attributes)
{
// custom implementation
}
}

At first glance, it looked like a service registration or dependency injection issue.

Environment Details

The key package versions at the time were:

  • Optimizely CMS 12.34.4
  • EPiServer.CMS.TinyMce 4.8.3
  • .NET 10

The application had been working correctly before the framework upgrade, which made the issue particularly challenging to diagnose.

Initial Investigation

Our TinyMCE registration was straightforward:

services
.AddCmsAspNetIdentity<ApplicationUser>()
.AddCms()
.AddTinyMce();

and custom configuration was registered using:

services.Configure<TinyMceConfiguration>(config =>
{
// custom TinyMCE settings
});

Everything appeared to be configured correctly.

Testing on Alloy

To isolate the problem, we reproduced similar TinyMCE configuration in a clean Alloy solution running on .NET 10.

The result:

  • CMS started successfully

  • TinyMCE loaded correctly

  • No dependency injection errors

This immediately suggested the problem was not a generic Optimizely or .NET 10 issue.

Reviewing Custom Editor Descriptors

Since the exception referenced:

TimelineBlockXhtmlStringEditorDescriptor

we spent considerable time reviewing:

  • Editor descriptor registrations
  • Dependency injection registrations
  • Startup ordering
  • TinyMCE configuration extensions

Everything looked valid.

Checking Service Registration Order

We also reviewed whether .NET 10 had introduced behavioural differences in service registration and startup initialization.

Multiple registration orders were tested:

services.AddCms();
services.AddTinyMce();
services.Configure<TinyMceConfiguration>();

and

services.Configure<TinyMceConfiguration>();
services.AddCms();
services.AddTinyMce();

No change.

The Root Cause

After eliminating configuration and dependency injection possibilities, attention shifted to package compatibility.

EPiServer.CMS.TinyMce 4.8.3

Although the package had worked successfully before the upgrade, it was clearly not behaving correctly in the .NET 10 environment.

The Fix

We upgraded TinyMCE from:

EPiServer.CMS.TinyMce 5.0.3

After upgrading:

  • Application started successfully
  • TinyMCE initialized correctly
  • Dependency injection exception disappeared
  • Custom editor descriptors continued to work
  • CMS editor experience was fully restored

Happy Optimizely!

0

Optimizely : Missing Language Manager Gadget Fix in CMS 12 After Upgrading to .NET 10

Recently, while upgrading an Optimizely CMS solution to .NET 10, we came across an issue where the Language Manager gadget completely disappeared from CMS Edit Mode.

The application was functioning normally, content editing worked as expected, and there were no build or startup errors. However, editors noticed that the Language Manager gadget was no longer available.

What made the issue difficult to troubleshoot was the complete absence of meaningful error messages.

In this blog, I will walk through the issue, the troubleshooting journey, and the simple configuration change that ultimately resolved it.

Environment

The affected solution was running the following versions:

  • .NET 10
  • Optimizely CMS 12.34.4
  • EPiServer.CMS.UI 12.34.4
  • EPiServer.Labs.LanguageManager 5.5.3

Immediately after the upgrade, the Language Manager gadget disappeared from the CMS editing interface.

Symptoms

Editors reported the following:

  • Language Manager gadget missing from Edit Mode
  • Gadget not available in the “Add Gadgets” list
  • Reinstalling the package did not help
  • Browser cache clearing had no effect
  • Application started successfully without errors

The issue was consistent across environments and users.

Initial Checks

As part of the troubleshooting process, we verified the obvious areas first.

Verify Package Installation

The Language Manager package was installed correctly.

<PackageVersion Include="EPiServer.Labs.LanguageManager" Version="5.5.3" />

No package restore issues were identified.

Verify Language Configuration

We confirmed that all required languages were enabled within Optimizely Admin Mode.

Since multilingual content was configured correctly, the problem was clearly elsewhere.

What Was Causing the Issue?

After working with Optimizely Support, the investigation pointed towards a .NET build configuration setting that was affecting assembly discovery.

The application itself was running correctly, but dependency information required by certain Optimizely add-ons was being trimmed during the build process.

Because of this, Language Manager was not being initialized correctly, resulting in the gadget disappearing from the CMS UI.

The tricky part was that there were:

  • No compilation errors
  • No startup failures
  • No obvious exceptions

The feature simply disappeared.

The Fix

The issue was resolved by adding the following property to the project file:

<PropertyGroup>
<TrimDepsJsonLibrariesWithoutAssets>false</TrimDepsJsonLibrariesWithoutAssets>
</PropertyGroup>
 

After adding the setting:

  1. Rebuild the solution
  2. Redeploy the application
  3. Restart the site

The Language Manager gadget immediately became visible again.

Happy Optimizing! 
0

Unlock AI-Ready Experiences with Optimizely

Over the past few months, almost every customer conversation has shifted from SEO to AI readiness.

The questions are no longer just:

“How do we rank higher on Google?”

They’re becoming:

“How do we make sure ChatGPT, Copilot, Gemini, or Claude can find and understand our content?”

If you’re running an Optimizely website, the good news is that you don’t need a complete redesign. A few small improvements can make your content much easier for AI systems to discover and consume.

In this post, I’ll walk through a few simple changes we’ve been discussing with customers, including:

  • Upgrading the Stott Security RobotHandler
  • Adding an llms.txt file
  • Structuring content for AI
  • Improving metadata
  • Preparing your Optimizely implementation for the next generation of search

Why AI Readiness Matters

Search engines return links.

LLMs return answers.

That means AI systems need to understand your content, not just crawl it.

If your website has:

  • messy content
  • outdated metadata
  • poor internal linking
  • no structured information

then AI assistants have a harder time understanding what your organization actually offers.

Fortunately, most of these improvements are things we should already be doing.

Step 1 – Upgrade Stott Security RobotHandler

We are currently using Stott.Security.Optimizely.RobotsHandler 3.x – CMS PaaS 12 

There isn’t necessarily anything wrong with version 3, but if you’re actively maintaining your solution, it’s worth upgrading to the latest release to benefit from ongoing fixes, compatibility improvements, and newer Optimizely support.

Updating is straightforward.

Remove the old package:

dotnet remove package Stott.Security.Optimizely.RobotsHandler

Install the latest version:

dotnet add package Stott.Security.Optimizely.RobotsHandler

After upgrading, verify that:

  • robots.txt is still generated correctly
  • your sitemap is referenced
  • custom rules still work
  • different environments behave as expected

It only takes a few minutes but keeps an important part of your site’s crawl configuration up to date.

Step 2 – Add an llms.txt File

You have probably heard about llms.txt recently.

Think of it as the AI equivalent of a sitemap.

While it isn’t an official web standard today, more organizations are publishing one to help AI systems discover their most important content.

A simple example looks like this:

# Contoso

Website:
https://contoso.com

Documentation:
https://contoso.com/docs

Products:
https://contoso.com/products

Support:
https://contoso.com/support
 

For smaller websites, a static file is perfectly fine.

For enterprise Optimizely implementations with thousands of pages, I’d recommend generating it dynamically so it always reflects your published content.

That’s something I’ll cover in a future post.

Step 3 – Structure Your Content

This is probably the biggest opportunity.

Many websites still publish pages that contain multiple unrelated topics, huge blocks of text, and headings like:

Learn More

AI models love structure.

Instead, organize pages with:

  • meaningful headings
  • summaries
  • FAQs
  • bullet lists
  • tables where appropriate

Good content structure helps humans and AI alike.

Step 4 – Don’t Ignore Metadata

Metadata is still important.

Make sure every page includes:

  • Page title
  • Meta description
  • Canonical URL
  • Open Graph tags
  • Schema.org structured data

Structured data gives AI additional context about your pages, products, articles, events, and organization.

Step 5 – Review Your Sitemap

Your XML sitemap should always be current.

Remove:

  • unpublished pages
  • redirects
  • expired content

Include:

  • important landing pages
  • articles
  • product pages
  • documentation

This benefits traditional search engines and AI crawlers alike.

Step 6 – Improve Internal Linking

One thing that’s often overlooked is internal linking.

If every page exists in isolation, AI has to work harder to understand the relationships between your content.

Instead, connect related pages naturally.

For example:

  • Blog → Product
  • Product → Documentation
  • Documentation → FAQ
  • FAQ → Support

These relationships help both users and AI navigate your website more effectively.

Step 7 – Expose Content Through APIs

If you’re building AI-powered experiences, don’t stop with web pages.

Optimizely already provides excellent options for exposing structured content, including:

  • Content Delivery API
  • Content Graph
  • Search & Navigation indexes

These services make it much easier to build Retrieval-Augmented Generation (RAG) applications and AI assistants that provide grounded responses based on your content.

Most of these are relatively small changes, but together they make your content significantly easier for AI systems to understand and surface.

As AI continues to change how people discover information, preparing your Optimizely website today will put you in a much stronger position tomorrow.

Happy Optimizing!

0