Skip to main content

Create a variant for a web experiment using custom code

Abstract

Details how to create a variant for a web experiment using custom code.

If you are familiar with HTML, CSS, and JavaScript, you can create a web experiment variant using custom code.

To create a web experiment variant using custom code:

  1. On the Build screen, click Add Variant. A pane displays a list of web templates, customized for your organization.

  2. Click the Add custom code link. The code editor displays.

  3. Use custom code on the relevant HTML, CSS, or JavaScript tabs.

  4. Compose the API response using FreeMarker.

  5. Click Save. The Build screen displays.