Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
PersonalizeCloud Portal
Sitecore Personalize
        • Getting started
        • Using traffic allocation and variant traffic assignment
        • Target a webpage
        • Apply a condition
        • Apply a segment
        • Use a decision model
    • SitecoreAI experiments
    • Using the experiment list
    • Manage experiment details
    • Set automated post-test actions
    • Set up email notifications
    • Duplicate, delete, and view details
  • Using client-side JavaScript
  • Glossary
  1. Introduction to experiments in Sitecore Personalize
  1. Sitecore Personalize
  2. Introduction to experiments in Sitecore Personalize
  3. Introduction to web experiments in Sitecore Personalize

Getting started with web experiments

This topic describes how to get started building a web experiment. We recommend that you complete these steps in the following order:

  1. Create a web experiment and add a variant using an out-of-the-box web template or custom code.

  2. Apply any of the following options to the web experiment:

    • Target a webpage to set the area of your website where you want the experiment to run. You can also add JavaScript to determine the context in which the experiment should execute.

    • Apply a condition to filter the visitors that see the experiment based on real-time behavior.

    • Apply a segment to configure the experiment to only run for a certain segment of guests.

    • Associate a decision model with your experiment to recommend dynamic offers or content.

  3. Compose the API request to apply further personalization using dynamic data.

  4. Insert the web experiment in your HTML by specifying in the JavaScript editor where in the Document Object Model (DOM) you want the offer or content to display.

  5. Preview the web experiment in your organization's website.

  6. Add a primary goal to the web experiment. Sitecore Personalize uses the metrics of the primary goal to measure variant performance when determining a leading or winning variant.

  7. Start the experiment. After the experiment runs for 24 hours, you can see how the variants are performing against each other on the Performance dashboard.

If you have suggestions for improving this article, let us know!

Documentation Assistant

This assistant uses AI to generate responses based on Sitecore documentation. While it has access to official sources, answers may be incomplete or inaccurate and should not be considered official advice or support.
Powered by
k
kapa.ai
Protected by reCAPTCHA

© Copyright 2026, Sitecore A/S or a Sitecore affiliated company.
All rights reserved.

Privacy policySitecore Trust CenterTerms of use