Content Zones
Content zones are areas throughout a website that you can define to render Personalization campaigns. The web and server-side campaign templates that you create using the Personalization UI reference these content zones within campaigns. You can define content zones globally in the globalConfig
or for a specific page type in the pageType
configuration.
This table summarizes the fields that a content zones accepts.
Field Name | Expected Value Type | Required | Description |
---|---|---|---|
name | String | Yes | The name of the content zones. Example: global_popup , product_detail_recommendations |
selector | String | No | The CSS selector for the content zones target. |
All content zones require a name
, while selector
is optional. You can still use a content zone without a selector in templates that target the glass pane, such as a popup.
Depending on the type of website, we recommend defining certain Content Zones over others to use specific global templates.
This table outlines content zones that help you use specific global templates without additional content zone configuration if mapped via the sitemap.
Content Zone | Global Template | Description |
---|---|---|
home_hero | Banner with Call-to-Action | Content zone for a hero banner on the home page |
home_recs | Einstein Content Recommendations | Content zone for recommendations on home page |
product_detail_recs_row_1 | Einstein Product Recommendations | Content zone for recommendations on a product_detail page |
product_detail_recs_row_2 | Einstein Product Recommendations | Content zone for recommendations on a product_detail page |
category_recs | Einstein Product Recommendations | Content zone for recommendations on a category page |
cart_recs_row_1 | Einstein Product Recommendations | Content zone for recommendations on the cart page |
cart_recs_row_2 | Einstein Product Recommendations | Content zone for recommendations on the cart page |
search_recs | Einstein Content Recommendations, Einstein Product Recommendations | Content zone for recommendations on the search page |
order_confirmation_recs_row_1 | Einstein Product Recommendations | Content zone for recommendations on the order confirmation page |
order_confirmation_recs_row_2 | Einstein Product Recommendations | Content zone for recommendations on the order confirmation page |
error_page_recs | Einstein Product Recommendations | Content zone for recommendations on an error page |
add_to_cart_modal_recs | Einstein Product Recommendations | Content zone for recommendations on an Add to Cart Modal |
global_popup | Exit Intent Popup with Email Capture, Exit Intent Popup | Content zone for a global popup |
global_infobar_top_of_page | Infobar With Call-To-Action, Infobar With User Attribute and Call-To-Action | Content zone for an info bar at the beginning of the page |
global_infobar_bottom_of_page | Infobar With Call-To-Action, Infobar With User Attribute and Call-To-Action | Content zone for an info bar at the end of the page |
global_slide_in | Slide-In with Call-To-Action | Content zone for slide-in messages with call-to-action |
For code samples and example content zone implementations, see: