Experience Optimization-enabled templates

The Experience Optimization module provides sample page and component templates that are enabled for Experience Optimization and ready for use. You can also create your own templates.

Template location

Upon installation of the Experience Optimization module, several sample templates are added to the following folder within you SDL Tridion Sites Content Manager:

PUBLICATION\Building Blocks\Modules\Experience Optimization\Editor\Templates

Page Templates

Before you can create pages that are enabled for Experience Optimization, you need at least one Page Template that is likewise enabled for Experience Optimization. Installation of the module includes the following sample Page Templates for use with different versions of SDL Tridion Sites:

Example Experience Optimization enabled Page

This template is for use with SDL Tridion Sites 9.0 and later, and supports that product release's new schema-based Region functionality.

  • Page Schema used: SmartTarget Page Schema
  • Metadata Schema used: Experience Optimization Page Template Metadata schema

Pages you create based on this Page Template have the following default page structure, as shown on the Design tab:

New Page
     Hero
     Example1
     Example2

The three Regions come from the SmartTarget Page Schema and are defined on the Page itself (as opposed to them being defined in the Page Template's metadata, which was the case with the legacy template-based Regions).

You need to add the example Regions (and all schema-based regions) to Experience Optimization using the PowerShell New-Xoregion cmdlet. For details, refer to the SDL Tridion Sites documentation on Experience Optimization and using Powershell cmdlets to manage regions.

Example Experience Optimization enabled Page (Legacy)

This template is for use with SDL Tridion Sites 8.5, which uses DXA template-based Regions.

  • Page Schema used: none
  • Metadata Schema used: Experience Optimization Page Template Metadata schema
The metadata schema used by both Page Templates is an extension of the DXA schema for Page Template Metadata, and it provides all the metadata fields from that schema plus the following additional metadata fields:
  • A restriction on duplicate Experience Optimization promotion items (It is also possible to define this at the publication-level in the Experience Optimization Configuration Component ("use core configuration").)
  • A restriction the number of Experience Optimization items to display in the Region

Component Templates

The DXA Experience Optimization module includes the following sample Component Templates:

  • SmartTarget Article — used by schema-based Regions
  • Article [SmartTarget:Example1] and Article [SmartTarget:Example2] — two legacy Component Templates used by legacy template-based Regions

For the legacy Component Templates, the part in brackets refers to the module name and Region View Name, where "SmartTarget" corresponds to the Experience Optimization module, and "Example1" and "Example2" correspond to sample Region Views.