Sunday, 29 November 2026

WordPress to Sitecore XM Cloud Migration: An Architect's Blueprint

November 29, 2026 0

 


The WordPress site was fine. That was the problem. It worked well enough that nobody questioned it, until the organization needed three regional sites, a second language, governed publishing, and personalization the marketing team could run without a developer. By then the install had dozens of active plugins, a page builder nobody wanted to touch, and a custom theme where business logic lived inside template files.

This post covers how I approach a WordPress to Sitecore XM Cloud migration (now branded SitecoreAI): what to decide before writing code, how to move content, where AI-assisted tooling helps, and how to protect SEO with a phased rollout.

Why move at all (and when you shouldn't)

WordPress is a good CMS. For a single-brand marketing site with a small team, it's often the right call and I'd tell a client that. The case for SitecoreAI starts when the requirements stop being about publishing pages and start being about running a digital platform.

The drivers I see most often are multisite governance (many brands or regions on one content platform with shared components), workflow and role-based access that holds up in an audit, and moving off self-managed hosting and plugin patching onto a SaaS platform where Sitecore manages the CMS infrastructure. Headless delivery through Experience Edge and GraphQL, with a Next.js front end, gives you CDN-backed delivery and lets the front-end team work independently of the CMS.

Personalization needs a clear-eyed answer. SitecoreAI includes embedded page-level personalization in Pages, based on audience conditions. Deeper behavioral targeting, experimentation and unified customer profiles come from Sitecore Personalize and Sitecore CDP, which are separate products with separate licensing. Integration platforms like Sitecore Connect are licensed separately too. Set those expectations in the first workshop, not the third sprint.



Step 1: Assessment and planning

Most migration problems I've cleaned up were planning problems in disguise. Before anyone opens a terminal, answer three questions: what's the business goal (replatform as-is, or redesign at the same time), what's in scope (every page, or only what earns traffic), and what does "done" mean.

Write acceptance criteria up front: content parity rules, redirect coverage, Core Web Vitals targets, accessibility level, and who signs off. Agree on content freeze windows with the editorial team early. They will push back, and the freeze plan needs negotiating, not announcing.

Decide the cutover model now too. A big-bang launch and a phased, proxy-based rollout lead to different architectures, and you can't easily switch halfway through.

Step 2: Audit the WordPress site

The audit is where you find out what the site really is, as opposed to what everyone remembers it being. Inventory pages, posts, custom post types, taxonomies, media, custom fields (ACF is the usual suspect), forms, shortcodes, menus, plugins, SEO metadata from Yoast or Rank Math, and the full URL list including what's indexed in Search Console.

Pull the URL list from three places: the sitemap, a crawl, and analytics. They never agree. The pages that only show up in analytics are the forgotten landing pages that still get paid traffic, and they're exactly what breaks after launch.

Then map structures to Sitecore. An illustrative mapping:



For every plugin and custom feature, make one call: migrate, redesign, replace, or retire. A surprising share of plugins exist to patch over something WordPress lacked, like caching, security hardening or redirects. Those mostly retire. The ones with business logic need real design work.

Step 3: Set up the SitecoreAI environment

Provision the project and environments through the Sitecore Cloud Portal and the deploy tooling, set up SSO and roles, and connect your repository so builds deploy through CI/CD rather than from someone's laptop.

Then design the content architecture before migrating a single item. Create site collections and sites, a base page template carrying SEO and navigation fields, page templates per content type, and datasource templates per component. Use inheritance aggressively. The fastest way to make content migration painful is to build templates ad hoc while the migration scripts are already running.

On the front end, start from the current Next.js starter using the Content SDK (the successor to JSS for new projects), and serialize your templates and renderings with Sitecore Content Serialization so they're in source control. Content items stay out of serialization, except reference data you genuinely need in every environment.



Step 4: Data migration and content transfer

This is where most of the effort goes, and where shortcuts hurt most.

4.1 SitecoreAI Pathway

Sitecore introduced Pathway as an AI-assisted migration capability for moving existing sites into SitecoreAI. As I understand the publicly described workflow, it analyzes an existing site, helps map its content and structure to SitecoreAI templates and components, and produces output you review before it goes live. Check the current Pathway documentation for which sources it supports, whether WordPress is among them, and what it does with structured fields versus rendered pages.

Treat its output as a first draft. Don't expect it to reproduce plugin behavior, shortcode logic or ACF relationships. Validate a sample field by field before running at volume.



4.2 Exporting WordPress content as XML

The built-in WordPress export (Tools → Export) produces a WXR file, which is RSS-based XML with WordPress namespaces. Each piece of content is an <item>:

<item>
 <title>Annual Partner Summit</title>
 <link>https://example.com/events/annual-partner-summit/</link>
 <wp:post_id>482</wp:post_id>
 <wp:post_type><![CDATA[event]]></wp:post_type>
 <wp:status><![CDATA[publish]]></wp:status>
 <wp:post_name><![CDATA[annual-partner-summit]]></wp:post_name>
 <content:encoded><![CDATA[<p>Join us...</p>[gallery ids="12,15"]]]></content:encoded>
 <category domain="category" nicename="events">
 <![CDATA[Events]]></category> <wp:postmeta> <wp:meta_key><![CDATA[event_date]]>
 </wp:meta_key> <wp:meta_value><![CDATA[20260614]]></wp:meta_value>
 </wp:postmeta>
</item>

A few things trip people up. Media items are their own <item> entries with post_type of attachment, linked to posts by ID, so you need to resolve relationships yourself. ACF data lands in wp:postmeta as raw values: dates as Ymd strings, relationship fields as serialized PHP arrays, images as attachment IDs. Yoast metadata is in postmeta too (keys like _yoast_wpseo_title). And content:encoded contains unrendered shortcodes, as in the gallery above, so whatever you migrate has to decide what each shortcode becomes.

Validate the export: compare counts per post type with the WordPress admin, filter out drafts and private items, and check large exports weren't truncated.

4.3 AI-assisted migration with a Claude Skill and Sitecore MCP

This is the approach I find most useful for the messy middle: content that's too varied for a rigid script but too voluminous to rebuild by hand. To be clear about what's verified and what's proposed: Sitecore provides an MCP server that exposes SitecoreAI operations to MCP-compatible AI clients. Which operations are available (reading, creating or updating content and pages, for example) depends on the server version and your permissions, so list the tools in your own environment rather than assuming. The workflow around it below is my proposed design, not a Sitecore product feature.



The Skill is the part that makes this repeatable. It's a folder with a SKILL.md that holds the rules every run must follow, so you're not re-explaining the content model in every session. An excerpt from the kind of Skill I'd write:

# WordPress → SitecoreAI migration rules
 ## Mapping
    - post_type "event" → template "Event Page" under /Home/Events
    - meta event_date (Ymd) → field "Event Date" (Sitecore date format)
    - yoastwpseo_title → "Meta Title"; if empty, use <title>; never invent one
    - category nicename → Taxonomy item lookup by name; if missing, STOP and report
 ## Transforms
    - [gallery ids="..."] → Gallery component, images resolved by attachment ID
    - Unknown shortcode → leave in place, add to report, do not guess
 ## Safety
    - Target only the environment named in the run config
    - Before creating, look up by source ID stored in field "Legacy WP ID"; update instead of
    duplicating
    - Never publish; leave items in the draft workflow state - Log: WP ID, Sitecore item        path/ID, action, warnings

The "Legacy WP ID" field does a lot of work. It gives you duplicate prevention on re-runs, a trace from every Sitecore item back to its source, and an easy way to build the redirect map later. Add it to your base template early.

Run small batches against a non-production environment. The model handles judgment calls a script handles badly, like splitting a long body into components or cleaning page-builder markup. It shouldn't be trusted blindly. Every batch gets a validation pass, and nothing gets published without an editor approving it through workflow.

On security: give the MCP connection a dedicated account with the narrowest role that works, keep it away from production until the process is proven, and don't put credentials in the Skill. Remember that content passed through the model goes to an external service, so check data handling with your security team before running anything sensitive.

Step 5: Design and component development

Don't recreate WordPress templates one-to-one. Group existing pages into a few real layouts and break those into components: hero, rich text, card grid, CTA banner, accordion. Each component gets a datasource template, and each maps to a Next.js component in your Content SDK app.

Authors build pages in Sitecore Pages, the visual editor for SitecoreAI. It replaces the Experience Editor workflow from XP/XM, so any old habits around Experience Editor customization don't carry over. Test your components in Pages early. A component that renders fine on the live site but is awkward to edit in Pages will generate support tickets for years.

Bake in accessibility (semantic HTML, focus states, contrast) and responsive behavior at the component level. Fixing them per page later is far more expensive.

Step 6: Integrations and functionality

Evaluate each plugin and integration on its own. Forms get rebuilt with Sitecore Forms or a CRM-native embed. Analytics and consent move into the Next.js app. Search becomes Sitecore Search or another service, which is its own project. Authenticated areas need a proper identity design; there's no "members plugin" equivalent.

Custom business logic that lived in functions.php usually becomes a Next.js API route, a serverless function, or a call to an existing enterprise service. Keep API keys server-side and plan for the third-party service being down: timeouts, fallbacks, and logging that tells you which integration failed.

Step 7: SEO, redirects and the phased rollout

URL mapping and 301s

Build a URL map from the audit's combined URL list: old URL, new URL, status (kept, changed, consolidated, retired). Keep URLs identical where you can. It's the cheapest SEO protection there is.

In SitecoreAI, SXA-based headless sites support redirect map items that the Next.js middleware applies; for very large sets, some teams handle redirects at the CDN or edge instead. Either way, test for chains (A → B → C) and loops, and point retired content to the closest relevant page rather than dumping everything on the homepage, which search engines tend to treat as a soft 404.

Carry over titles, descriptions, canonicals and Open Graph data from the WordPress SEO plugin. Generate the sitemap and robots.txt from the new site, add structured data where the old site had it, and resubmit the sitemap in Search Console at launch.

Reverse proxy for a phased migration

Big-bang launches concentrate all the risk on one weekend. A reverse proxy lets you move sections over gradually under the same domain.



The routing table decides which paths go to the new app. You migrate /events/*, flip the rule, monitor, then do the next section. If something breaks, flipping the rule back is your rollback.

None of this comes with SitecoreAI. You build and run it, usually on your CDN or edge platform. The hard parts are the details: cache keys and purge rules for two origins, cookies and consent that must work on both sides, shared header and footer navigation that has to link correctly across both systems during the transition, and making sure WordPress pages don't keep canonicals pointing at old paths. Log which origin served each request so you can trace issues, and monitor 404s and 5xx per origin.

Final cutover is when the routing table defaults to SitecoreAI. Keep WordPress read-only and reachable internally for a few weeks. Someone will ask about a page you forgot.

const WORDPRESS_BASE_URL = “Wordpress URL”;
const MAX_REDIRECTS = 5;

function normalizeWordPressPath(pathname: string): string {
let path = pathname || “/”;
// Remove staging prefix: /staging/5474/...
path = path.replace(/^/staging/\d+(?=/|$)/i, “”) || “/”;
// Remove Sitecore site+locale prefix: /lng-consultancy/en/banking -> /banking
path = path.replace(/^/lng-consultancy/[a-z]{2}(?=/|$)/i, “”) || “/”;

// Optional locale-only fallback: /en/banking -> /banking
path = path.replace(/^/[a-z]{2}(?=/|$)/i, “”) || “/”;
if (!path.startsWith(“/”)) path = /${path};
if (path === “”) path = “/”;
// Add trailing slash for WP page permalinks (not files)
const looksLikeFile = /.[a-zA-Z0-9]+$/.test(path);
if (!looksLikeFile && path !== “/” && !path.endsWith(“/”)) {
path = ${path}/;
}
return path;
}

function buildProxyHeaders(req: Request, wpBase: URL): Headers {
const headers = new Headers();
const passThroughHeaders = [
“accept”,
“accept-language”,
“user-agent”,
“content-type”,
“authorization”,
// intentionally not forwarding cookie
];

for (const h of passThroughHeaders) {
const v = req.headers.get(h);
if (v) headers.set(h, v);
}
headers.set(“x-forwarded-proto”, “https”);
headers.set(“x-forwarded-host”, wpBase.host);
headers.set(“x-forwarded-server”, wpBase.host);
return headers;}
function rewriteLocationHeader(
responseHeaders: Headers,
requestUrl: URL,
wpBase: URL
): Headers {
const headers = new Headers(responseHeaders);
const location = headers.get(“location”);
if (!location) return headers;
try {
const locUrl = new URL(location, wpBase.origin);
if (locUrl.host === wpBase.host) {
headers.set(
“location”,
${requestUrl.origin}${locUrl.pathname}${locUrl.search}${locUrl.hash});
}
} catch {
// ignore invalid location header
}
return headers;
}
async function fetchWordPressWithRedirects(
initialUrl: string,
req: Request,
proxyHeaders: Headers
): Promise<Response> {
const method = req.method.toUpperCase();
const isGetOrHead = method === “GET” || method === “HEAD”;
if (!isGetOrHead) {
// Body must be read once from cloned request
const requestBody = await req.arrayBuffer();
return fetch(initialUrl, {
method,
headers: proxyHeaders,
body: requestBody,
redirect: “manual”,
});
}
let currentUrl = initialUrl;
for (let i = 0; i < MAX_REDIRECTS; i++) {
const res = await fetch(currentUrl, {
method,
headers: proxyHeaders,
redirect: “manual”,
});
const location = res.headers.get("location");
const isRedirect = res.status >= 300 && res.status < 400 && !!location;
console.log(
  '[router] WP fetch ${i + 1}: ${currentUrl} -> status=${res.status}${
    location ?  location=${location} : ""
}'
);
if (!isRedirect || !location) return res;
currentUrl = new URL(location, currentUrl).toString();
}
return fetch(currentUrl, {
method,
headers: proxyHeaders,
redirect: “manual”,
});
}
export default async function handler(req: Request, context: Context) {
const requestUrl = new URL(req.url);
const wpBase = new URL(WORDPRESS_BASE_URL);
const proxyReq = req.clone();
const sitecoreResponse = await context.next();
if (sitecoreResponse.status !== 404) return sitecoreResponse;
try {
const normalizedPath = normalizeWordPressPath(requestUrl.pathname);
const wpUrl = new URL(
${normalizedPath}${requestUrl.search},
wpBase.origin).toString();
const proxyHeaders = buildProxyHeaders(proxyReq, wpBase);
const wordpressResponse = await fetchWordPressWithRedirects(
  wpUrl, proxyReq,  proxyHeaders
);
const responseHeaders = rewriteLocationHeader(
  wordpressResponse.headers,  requestUrl,  wpBase
);
return new Response(wordpressResponse.body, {
  status: wordpressResponse.status,  headers: responseHeaders,
});
} catch (error) {
console.error(“[router] WordPress proxy error:“, error);
return sitecoreResponse;
}
}
export const config = {
path: “/*“,
};

Step 8: Testing and QA

Compare old and new side by side. Crawl both sites and diff the results: URLs, status codes, titles, descriptions, canonicals, H1s. Run visual regression on key templates. Spot-check content on a sample from every content type, not just the homepage.

Pre-production checklist:



QA almost always misses the publishing path. Test that an author's change in Pages actually reaches the live site, including cache behavior, and how long it takes. "It's in the CMS but not on the site" is the most common post-launch ticket I see on headless builds.

FAQ

How long does a WordPress to SitecoreAI migration take?

A typical migration may take roughly 4–12 weeks depending on size, content complexity, integrations, custom functionality and design work. Multi-site enterprise programmes take longer.

Will the migration affect SEO?

A well-planned migration aims to preserve SEO, but temporary ranking fluctuations are common and outcomes can't be guaranteed. URL mapping, 301s, preserved metadata, a fresh sitemap and close monitoring in Search Console and analytics are what protect you.

Will there be downtime?

The goal should be zero or minimal downtime. Parallel environments, a phased proxy rollout and a rehearsed cutover get you close.

Will existing rankings drop because we changed CMS?

Changing CMS doesn't in itself lose rankings. Changed URLs, lost metadata and broken internal links do. A phased proxy rollout keeps unmigrated WordPress URLs live while sections move over, which limits how much changes at once.

Final thoughts

The teams that do well treat this as building a platform, not moving pages. Spend the time on the content model and component architecture, because everything after that, migration tooling included, gets easier or harder based on those decisions. AI-assisted migration earns its place on the varied, messy content, as long as the rules are written down and a person approves what goes live. And unless the site is small, phase it.

If you're planning a similar move, start with the audit and the URL inventory this week. They'll tell you how big the project really is.

Tuesday, 24 November 2026

SitecoreAI Component Personalization, Part 2: Testing, Activation, and Analytics

November 24, 2026 0

 


A team I worked with saved their decision table, published the page, and announced the campaign was live. Two days later the analytics were empty. Nobody had clicked Start personalization. Saving, publishing, and starting are three separate actions in SitecoreAI, and skipping any one of them means visitors never see your variants.

In Part 1, we designed the decision model: inputs, ordered rules, and variants. This part takes that configuration through testing, custom values, publishing, activation, analytics, and maintenance, step by step.

Before you begin

Component personalization is part of SitecoreAI's phased rollout, so the UI and availability can vary by environment.

Prerequisites

You need:

  • A component with a saved decision table and configured variants (covered in Part 1).
  • Visitor profiles you can test with, including at least one with incomplete data.
  • An agreed business KPI and an owner for the analytics review.
  • A named person who can start and pause personalization in production.

How it works


Three states are easy to blur together: a saved draft, a published page, and started personalization. Visitors only receive variants once the page is published and personalization is started. When something "isn't working" right after launch, check those two first.

Step 1: Test rules against visitor profiles

A rule that can match isn't enough. Because evaluation stops at the first match, you need to confirm that the intended rule wins when several could apply.

  1. Open the component's decision table.
  2. Select the option to test personalization rules.
  3. Choose a visitor profile.
  4. Run the test.



  5. Review which rule matches and the resulting variant.
  6. Repeat with the other scenario profiles.

Build your test set around these five scenarios:

Scenario

What it catches

Matches the first rule

Basic matching works

Matches a later rule

Earlier rules don't capture it by mistake

Could match more than one rule

Rule-order problems

Matches no rule

The fallback is shown

Incomplete or missing data

Assumptions about data availability

The overlap scenario finds the most bugs. A profile interested in SUV , should view SUV detail, not the broader General rule.

Test the fallback

Always include a no-match profile. When no rule matches, SitecoreAI shows the original component. Check that it suits your whole visitor population and doesn't carry campaign content meant for a narrower group.

Step 2: Create and test custom values

Custom values are JavaScript-based inputs that combine profile data, behavior, and calculated logic. Here's an illustrative pattern based on Sitecore's documented example, returning the last country user visited from in the visitor's latest session:

javascript

(function() {
  const selectedCountries = "[[countries | multienum(IN, US, UK) | { required: true }]]";
  const visitorCountry = profile?.sessions?.[0]?.geolocation?.country ?? "";

  if (!visitorCountry) {
    console.log("Visitor geolocation country is not available in the profile.");
    return false;
  }

  const countriesArray = selectedCountries.split(",");
  const isCountryMatched = countriesArray.includes(visitorCountry);

  console.log(`Visitor geolocation country: ${visitorCountry}, Selected countries: ${countriesArray}, Match found: ${isCountryMatched}`);
  return isCountryMatched;
})();

Confirm the runtime context and data shape in your environment before adapting it. The null and type checks aren't optional. Plenty of profiles have no sessions, and returning an explicit null is safer than assuming complete data.

Create the custom value

  1. In the decision table, add a Custom value input.
  2. Select Create new.
  3. On the Custom Values page, enter a name.
  4. Add the JavaScript, or use Code Assistant to generate a starting point.



  5. Add a description and tags.
  6. Select the return type: String, Number, Boolean, Date, or Array.
  7. Save.

Test it

  1. Open the custom value and select Test.
  2. Load a profile by client ID or profile ID, or generate a test profile where that's available.
  3. Run the test and inspect the response.



    >


     

  4. Repeat with a profile that has no sessions, and confirm you get null, not an error.

Review Code Assistant output carefully

Code Assistant turns a natural-language prompt into JavaScript. Be specific about which fields to inspect, any time window, the conditions, and the expected return type including null. Sitecore warns that generated responses can vary and may not always be accurate. Treat the output as a first draft from a junior developer: read every line and test it against several profiles.

Publish the custom value

  1. Open the custom value.
  2. Select Publish and confirm.
  3. Check that its status is Published.
  4. Return to the decision table and select it as an input.

A saved draft isn't automatically available as a published input. If you can't select a custom value in the table, check its status first.

Step 3: Review and publish the page

Before publishing, check that:

  1. Each variant renders correctly.
  2. Text and imagery fit the intended scenario.
  3. Links and CTAs go to the right place.
  4. Mobile and desktop layouts both work.
  5. The original component is a valid no-match experience.
  6. This component doesn't conflict with other personalized areas on the page.

Then publish the page through your normal Page builder workflow.

Publishing doesn't start personalization. That's the next step.

Step 4: Start personalization

  1. Open the component personalization controls.
  2. Review the saved rules and variants.
  3. Select Start personalization.

     

  4. Confirm if prompted.
  5. Verify the personalization status.



Before you click in production, confirm you're on the right page and component and that the latest intended version is published. For time-sensitive campaigns, agree the start time with the campaign owner.

Step 5: Review analytics

Once visitors start seeing live variants, analytics become available.

  1. Open the personalization analytics for the component.
  2. Review rule execution counts and percentages.


  3. Ask these questions:
    • Which rule matches most often?
    • Are visitors reaching the targeted scenarios?
    • Is one rule capturing far more traffic than expected?
    • Are some variants getting almost no exposure?

Rule execution tells you about matching, not business impact. Compare it against the KPI you agreed before launch, such as CTA engagement. Without a KPI, you can claim activity, not success.

A rule capturing far more traffic than expected is usually a sign that it's too broad or sits too high in the table.

Step 6: Pause and maintain

Campaigns expire and data changes, so schedule reviews.

To stop an active personalization, use the documented pause control. Tell the content and campaign owners first, so everyone knows visitors will see the original component.

For each review, check:

  1. Is the campaign still valid?
  2. Are the profile attributes and conditions still populated?
  3. Do custom values still return the expected type?
  4. Have any rules become overlapping or redundant?
  5. Is the original component still the right fallback?
  6. Does the analytics picture still match the intended audience?

After any change, rerun your profile test scenarios and repeat the publish and start steps as the workflow requires.

Troubleshooting

The expected variant isn't displayed

Check in this order:

  1. Is personalization started?
  2. Is the page published?
  3. Does the profile contain the required data?
  4. Does the visitor satisfy every input in the rule?
  5. Is an earlier rule matching first?
  6. Is the intended variant configured and saved?

A custom value isn't available in the decision table

Check that it's published, has the expected return type, and exists in the environment you're working in.

A custom value returns null

Look at the test profile for missing sessions, missing traits, unexpected data types, or wrong assumptions about array order.

Analytics are empty

Confirm personalization is live and visitors are reaching it, then confirm you're looking at the right site, component, and scope.

Real project tips

Personalization doesn't create missing data. If country or an event-derived value isn't on the profile, no rule can target it reliably. Validate the data foundation before you touch the decision table.

Document every custom value. Record its business meaning, inputs, return type, null behavior, owner, and test cases. Without this, one team changes shared logic that another team's component depends on.

Remember page versions. Component personalization is shared across page versions, so a rule edit can affect the live version. Agree a change process before anyone edits rules on a draft.

Release checklist

Before starting a component personalization in production:



Summary

Component personalization is a small decisioning system attached to a component, and it needs to be operated like one. Test against representative profiles, validate the fallback, review custom JavaScript, publish the page, start personalization, and judge results against a real KPI.

Across both parts, the approach is the same: design the decision model carefully, then run it with testing, activation, measurement, and clear ownership.

Demo

To see these steps in practice, watch my webinar below. It includes a full demo of SitecoreAI personalization.



References

Component personalization

Thursday, 12 November 2026

SitecoreAI Component Personalization, Part 1: Decision Tables and Rule Design

November 12, 2026 0

 


A business owner asks for "a different hero banner for visitors from India." Simple enough. Two weeks later the request has grown: India on mobile, India on desktop, US on mobile, and returning visitors anywhere. Then someone notices that Indian mobile visitors are seeing the generic India banner, not the mobile one. Nothing is broken. The rules are just in the wrong order.

Component personalization in SitecoreAI is built for this kind of requirement: change one component while the rest of the page stays the same. This guide covers the design half of the work, step by step: choosing the scope, defining inputs, building and ordering rules, and configuring variants. Part 2 will cover testing, publishing, activation, analytics, and custom-value governance.

Before you begin

Sitecore documents component personalization as a phased rollout. Confirm it's enabled in your environment before you include it in a delivery commitment.

Prerequisites

Confirm each of these before creating a single rule:

  1. Environment availability: component personalization is enabled for your organization.
  2. Site implementation: your site setup and front-end integration support it.
  3. Visitor data: the profile attributes and conditions you plan to target are actually populated.
  4. Component design: you know which component changes and which variants each scenario needs.
  5. Fallback experience: you've decided what visitors see when no rule matches.
  6. Success measure: the business has agreed on a KPI, such as CTA click-through or form starts.

Item 3 causes the most rework. A country rule is only as reliable as the location data behind it. VPNs, proxies, and network routing all affect it, so treat inferred location as a strong hint, not a guarantee.

How it works



Everything revolves around the decision table, which has three parts:

  • Inputs: the visitor data used during evaluation. Each input is a column.
  • Rules: rows of comparisons that decide whether a visitor matches a scenario.
  • Outputs: the component variant mapped to each rule.

The detail developers most often miss is that evaluation stops at the first match. Rule order isn't a visual preference in the editor. It's part of the business logic.

Step 1: Decide between component and page personalization

Before opening Page builder, decide on the scope.

  1. Write down exactly what changes for the target visitor.
  2. If it's one component (a message, image, CTA, or content block), start with component personalization.
  3. If several parts of the page must change together as one coordinated experience, use page personalization instead.

Requirement

Better starting point

Change only the homepage hero for one country

Component

Change a banner CTA for returning visitors

Component

Use a custom calculated value to pick a banner variant

Component

Change hero, navigation emphasis, and product grid together

Page

Deliver one coordinated page experience to a visitor group

Page

Don't pick component personalization just because it feels more flexible. I've seen teams personalize four components independently, then struggle to explain why a visitor saw a India hero next to a US promotion. When parts of a page must agree, use page personalization.

Step 2: Select the component

  1. Open the page in Page builder.
  2. Select the component, for example a Page Header or promotional banner.
  3. In the component context toolbar, select Add personalization rules to component.


The decision-table dialog opens for that component.

Rules and variants apply to this component instance only. They don't automatically personalize every component of the same type across the site.

Watch out for page versions

Sitecore documents that component personalization is shared across page versions. Edit the rules in one version and the change applies to the others, including the live version.

A draft version or another language is not a safe sandbox. Coordinate rule changes with whoever owns the live experience.

Step 3: Define decision-table inputs

Inputs define what the rules can evaluate. SitecoreAI supports three types.

Profile data uses attributes already stored on the visitor profile, such as country, city, or channel. Use it when the targeting value already exists.

Input:  Country
Rule:   Country equals IN
Output: India campaign banner

The IN value is illustrative. Use the value format your environment's profile data actually supplies. Check a real profile under Optimization > Profiles before you type any values into a rule.

Conditions are true/false evaluations, either out-of-the-box or custom. "Is this a returning visitor?" is a typical example. Use a condition when the logic already exists as something reusable.

Custom values are JavaScript-based inputs that combine attributes, behavior, and calculated logic into one value, such as high, medium, or low intent. Use them only when profile data and conditions can't express the requirement. Part 2 covers them in detail.

Configure the inputs

  1. In the decision-table dialog, open the Builder tab.
  2. Select Create new table, or clone an existing table as a starting point.


  3. Choose the input type: Profile data, Condition, or Custom value.


  4. Select the attribute, condition, or custom value.


  5. Configure its details where prompted.
  6. Select Save.
  7. Use Add column to add more inputs.


Inputs in the same rule are combined with AND. Country = IN and Device type = mobile means the visitor must match both. There's no OR inside a row. If you need OR, that's a separate rule.

Step 4: Create personalization rules

Each row in the table is a rule.

  1. In the first row, select Add.
  2. For each input column, choose a comparator.
  3. Enter the comparison value.


  4. Confirm the comparison.
  5. Select Add Rule to create more rows.
  6. Save the decision table when the rule set is ready.


A regional mobile campaign might look like this:

CountryDevice typeResult
INmobileIndia mobile banner
INdesktopIndia desktop banner
USdesktopUS desktop banner

Rule order is priority

Now consider this order:

  1. Country = IN AND Device = mobile
  2. Country = IN AND Device = desktop
  3. Country = US AND Device = desktop

An Indian mobile visitor matches rules 1 and 2. Evaluation runs top to bottom, so rule 1 wins. Swap rules 1 and 2, and every Indian mobile visitor gets the generic Indian banner. That's exactly the bug from the opening of this post.

The rule of thumb: most specific first, broadest last. When I review a decision table, I don't just check that each row is correct. I check every pair of rows for overlap and ask which one a visitor matching both would see.

Step 5: Configure component variants

After saving the decision table, configure the variant for each rule in Page builder.

  1. Select the rule you want to configure.


  2. Choose how the variant starts:
    • Duplicate original: start from a copy of the original component.
    • Hide component: show nothing for this rule.
    • Swap component: replace it with another compatible component.


  3. Update the content and design for that variant.
  4. Use the preview control to inspect the result.
  5. Repeat for each rule.

Don't forget the original component. It's shown whenever no rule matches, which for a regional campaign is most of your traffic. Review it with the same care as the variants.

Step 6: Save and review the draft

  1. Save and close the decision table.
  2. Review the component's personalization status.
  3. Confirm every rule maps to the intended variant.
  4. Confirm the original component still works as the fallback.
  5. Preview each variant and check content, layout, links, and responsive behavior.

At this point the personalization is a draft. Saving the decision table doesn't make it live for visitors. Part 2 covers publishing and activation.

Common mistakes

Designing rules before checking the data. If the attribute isn't populated, the rule never matches.

Broad rules above specific ones. The broad rule captures visitors first and the specific variant never shows.

Expecting OR within a row. Columns in a row are always AND.

Treating a non-live page version as isolated. Personalization is shared across versions, including live.

Architect's design checklist

Before handing the configuration to testing, confirm:

  1. Inputs are based on data that actually exists.
  2. Multiple inputs are intentionally combined with AND.
  3. Rules are ordered from most specific to broadest.
  4. Overlapping rules have been reviewed in pairs.
  5. The original component is a valid fallback.
  6. Variants preserve accessibility, responsive behavior, and working links.
  7. Page-version implications have been discussed with content owners.
  8. The business owner agrees on the target audience and KPI.

A valid decision table can still produce the wrong experience. Walk through visitors who match several rules and visitors who match none.

Summary

Component personalization lets you vary one component without touching the rest of the page, and it's built on three things: inputs, ordered rules, and variants. Most of the important decisions happen before activation. Pick the right scope, confirm the data exists, order overlapping rules deliberately, and give the original component the same attention as the variants.

In Part 2, we'll take this configuration through testing, publishing, activation, analytics, and the operational controls that keep it maintainable.

Demo

To see these steps in practice, watch my webinar below. It includes a full demo of SitecoreAI personalization.



References

Component personalization

Tuesday, 27 October 2026

Build Reusable Audiences with SitecoreAI Audience Builder

October 27, 2026 0

 


On one project I reviewed, the marketing team had five personalization variants targeting "Personal loan interested visitors." Each variant defined that group slightly differently. One checked an affinity, one checked recent page views, two checked both with different time windows, and one had been copied from a test and never cleaned up. Nobody could say which was right, because there was no single definition to point at.

Audience Builder in SitecoreAI solves this by letting you define a visitor group once and reuse it. This guide walks through the full workflow step by step: create, define, estimate, inspect, set live, and verify membership.

Before you begin

Audience and Insights is being rolled out in phases, so confirm Audiences is available under Optimization in the environment you're working in.

Prerequisites

You need:

  • Access to Optimization in a SitecoreAI environment with Audience and Insights enabled.
  • Reliable VIEW and IDENTITY events, plus identity rules and affinities configured. My earlier guides cover both.
  • A written business definition of the audience you want to build, agreed with whoever will use it.

That last item matters more than any UI setting.

Why use Audience Builder

An audience is not a saved filter. It's a reusable definition that SitecoreAI evaluates against profile data and, once live, records as membership on matching profiles.

That gives you one place to define "returning customers" or "EV-interested visitors," and one place to fix it when the definition changes.

How it works


The key distinction is between Draft and Live. In Draft, you're editing and refining rules. Once Live, SitecoreAI evaluates profile data against those rules and saves membership on profiles that match.

The step developers usually misjudge is the last one. Membership is evaluated several times a day, not instantly. If you set an audience live and immediately check your test profile, it probably won't be there yet.

Step 1: Create the audience

  1. In SitecoreAI, open Optimization.
  2. Select Audiences.
  3. Click Create audience.




  4. Enter a descriptive name.




  5. Click Create.

The audience opens in Audience Builder with Draft status.

Name it for its business purpose:

  • Returning Customers
  • Campaign Visitors
  • Interested in Electric Vehicles
  • High-Intent Product Visitors

Avoid names like Audience1 or Rule_Test_Final. The name is often the only documentation other teams see.

Step 2: Define the audience in business terms

Before adding a rule, write one sentence describing who belongs in the audience. For example:

Visitors who showed interest in suv vehicles and recently viewed product content.

Then translate that sentence into conditions. I do this on paper (or in the ticket) before opening the builder. It surfaces gaps early, such as "what counts as recently?" or "do we have an affinity for suv?", while they're still cheap to resolve.

Step 3: Add audience rules

Audience Builder organizes data into attribute groups:

  • Profile
  • Sessions
  • Events
  • Traits

An attribute is a field from one of these groups. A rule is the condition a profile must satisfy.

  1. Open the draft audience.
  2. Select an attribute group.
  3. Choose the attribute.
  4. Set the comparator and value.


     

  5. Add further rules or rule groups as your business definition requires.

A simple example combining three groups:

Language = EN 
AND Last Seen At is in the past 2 days 
AND Page View Event is = Sedan

The attributes you see depend on the data your environment actually collects. If an attribute you expected is missing, that's usually a data-collection gap rather than an Audience Builder issue. Check the profile first.

Keep related conditions together. Another developer should be able to read the audience without reverse-engineering the logic.

Step 4: Estimate the audience size

Never set an audience live without this step.

  1. Open the audience and review the rules.
  2. In the right pane, locate Audience size.
  3. Click the calculate icon.


  4. Wait for the calculation to finish. It can take a few minutes.
  5. Review Estimated profiles.

Treat the number as a sanity check against your business definition. If "High-Intent Product Visitors" comes back larger than your total monthly traffic, something in the logic is too broad. The opposite also happens: an estimate of zero often means a value doesn't match the underlying data, such as Electric in the rule and electric in the affinity taxonomy.

I like to write down the expected rough size before calculating. It forces you to have an opinion, which makes a wrong result much easier to spot.

Step 5: Edit, reorder, or delete rules

While the audience is in Draft, you can change it freely.

To edit a rule:

  1. Open the audience.
  2. Locate the rule.
  3. Change the attribute, comparator, or value.
  4. Save.
  5. Recalculate the estimate.

To delete a rule, remove it and recalculate.

To reorder rules or rule groups, arrange them so related conditions sit together. Order helps people understand and maintain the definition, especially once you have several rule groups.

To delete an audience, follow your organization's process. An audience other teams rely on shouldn't disappear without notice.

Step 6: Inspect the definition

The visual builder is easy to read, but it isn't the whole story. Before going live, check what SitecoreAI actually generated.

  1. Open the audience.
  2. Click the ellipsis in the top-right of Audience Builder.
  3. Select View code.


SitecoreAI shows generated code and a JSON representation of the audience. Use this to confirm the rule structure, especially how rule groups relate to each other. Inspect mode is also available for examining the configuration and its rule groups, and it's the first thing I open when troubleshooting a complex audience.

My review sequence before go-live:


Each layer catches a different mistake. The generated definition catches logic that looks right visually
but groups differently than intended.

Step 7: Set the audience live

  1. Open the draft audience.
  2. Confirm all rules are complete.
  3. Review the estimated size one last time.
  4. Click Set live.
  5. Change Schedule time when the audiance will update. You can select 6,8,12 or 24 hours.
  6. Click Apply  


The status changes from Draft to Live. SitecoreAI calculates an initial estimate and then evaluates profiles against the rules several times during the day, saving membership on matches.

If you need to change a live audience, pause it first. Don't treat a live audience like a draft. After making changes, re-check the estimate and set it live again.

Step 8: Verify membership on a profile

Going live isn't the finish line. Confirm the audience is actually matching the profiles you expect.

  1. Open Optimization > Profiles.
  2. Find a profile that should match.
  3. Open the profile details.
  4. Use Inspect to review audience membership.


Allow time for evaluation before checking. If membership is missing, compare the profile's underlying data with the rules, not the other way around.

Troubleshooting

The audience is far too large

Check whether:

  1. Rules use the intended attribute group.
  2. Conditions are broader than the business definition.
  3. Rule groups have the logical relationship you intended. Confirm this in View code.
  4. Selected values are correct.

An expected profile isn't a member

Start with the profile, not the audience:

  1. Is the required event present?
  2. Is the required profile attribute populated?
  3. Is the expected affinity there?
  4. Does the profile satisfy every rule?
  5. Is the audience actually live, and has evaluation had time to run?

Changes aren't appearing

Check the lifecycle state. A live audience must be paused before you modify it. After changes, validate the estimate and set it live again.

Common mistakes

Going live without checking the estimate. A technically valid audience can still describe the wrong people.

Building on an unstable taxonomy. If affinity or event values are inconsistent, the audience rules become impossible to maintain.

Editing a live audience directly. Pause first.

Expecting instant membership. Evaluation runs several times a day. Set expectations with the business before launch.

Duplicating audiences. If the same group is needed in several places, build one audience and reuse it.

Real project tips

Treat audiences as governed configuration, not ad-hoc segments. For each one, record:

  • Business purpose
  • Owner
  • Data dependencies
  • Rule logic
  • Expected approximate size
  • Downstream consumers
  • Review cadence

A simple shared table is enough. When an affinity value gets renamed or an event changes, the "data dependencies" column tells you exactly which audiences to retest.

Summary

Audience Builder turns profile data into reusable visitor groups, but the tool is the easy part. The real work is making sure every audience maps to a clear business requirement, depends on reliable data, and gets validated before it goes live. The workflow I follow every time:

Create → Define → Estimate → Inspect → Set live → Verify membership

When that becomes routine, audiences stay a governed part of your SitecoreAI architecture instead of a growing list of segments nobody trusts.

References

Audiences | Sitecore Documentation