Skip to content

Presentation Options

MomentScience offers multiple presentation options for displaying offer units on your website. This guide explains the available display formats and...

Overview

MomentScience offers multiple presentation options for displaying offer units on your website. This guide explains the available display formats and provides implementation instructions for each option.

Presentation Types

MomentScience offers four main presentation options to match your website design and user experience requirements.

Format Description
Single Offer Unit (SOU) A carousel-style modal popup displaying one offer at a time. Best for keeping users focused.
****Multi Offer Unit (MOU) A responsive grid-based layout showing all available offers simultaneously. Ideal for letting users compare and choose.
Custom Offer Unit (COU) Supply your own HTML and CSS per theme to fully control the Offer Unit layout and appearance.
****Embedded Offer Unit Offers are placed inline within a specific section of your webpage for a seamless experience.

Single Offer Unit (SOU)

The Single Offer Unit displays one offer at a time in a modal popup overlay with carousel navigation. It is ideal when you want to draw attention to individual offers without overwhelming the user.

  1. When triggered, the SOU appears as a modal popup overlay on your webpage
  2. Users see one offer at a time in a carousel format
  3. Users can engage with each offer by selecting positive or negative call-to-action (CTA) buttons
    1. Clicking the positive CTA opens the offer in a new tab and advances to the next offer
    2. Clicking the negative CTA advances to the next offer without claiming
  4. Users can navigate between offers using carousel controls
  5. The modal dismisses when users click the close button or reject the final offer

Enabling SOU via Dashboard

The unit type is set per theme. The Standard Theme uses SOU. To check or set SOU on the theme you use:

  1. Log in to your MomentScience dashboard
  2. Go to Integration > Moments.
  3. On the Customize Theme tab, select your theme in the Theme dropdown.
  4. In the Unit Type dropdown, select Single Offer Unit (SOU).
  5. Click Save.

Enabling SOU via Code

If you configure presentation options manually in code, make sure multi_offer_unit is set to false:

window.AdpxConfig = {
  accountId: 'YOUR_SDK_ID',
  autoShow: true,
  settings: {
    multi_offer_unit: false
  }
};

Multi Offer Unit (MOU)

The Multi Offer Unit presents all available offers at once in a responsive grid layout. It allows users to see multiple offers and choose what’s most relevant.

  1. When triggered, the MOU appears displaying all available offers in a grid layout
  2. Each offer appears as a tile with its own creative and call-to-action
  3. Clicking a CTA opens the selected offer in a new tab.

Enabling MOU via Dashboard

  1. Log in to your MomentScience dashboard
  2. Go to Integration > Moments.
  3. On the Customize Theme tab, select the theme you want to change in the Theme dropdown.
  4. In the Unit Type dropdown, select Multi Offer Unit (MOU).
  5. Click Save. The Standard Theme can’t be changed, so for that theme click Save As and save it as a new theme.
  6. If this isn’t your default theme yet, click Set Default.

Enabling MOU via Code

  1. Locate where window.AdpxConfig is defined in the code snippet.
  2. Modify it to include the settingsobject with the multi_offer_unit parameter set to true.
window.AdpxConfig = {
  accountId: 'YOUR_SDK_ID', 
  autoShow: true,
  settings: {
    multi_offer_unit: true
  }
};

Custom Offer Unit (COU)

Custom Offer Unit (COU) lets you supply your own HTML and CSS at the theme level to fully control the Offer Unit layout. This allows you to create a unique user experience while still leveraging the MomentScience Offer Unit functionality.

Enabling COU via Dashboard

  1. Log in to your MomentScience dashboard
  2. Go to Integration > Moments.
  3. On the Customize Theme tab, select the theme you want to configure in the Theme dropdown.
  4. In the Unit Type dropdown, select Custom Offer Unit (COU).
  5. Open the COU HTML/CSS tab.
  6. Enter your HTML in the HTML editor and your CSS in the CSS editor.
  7. Click Save.

Required Macros and Actions for COU

The dashboard checks your template as you edit. Save stays disabled until the HTML includes all of the following, with data-ms-custom-root on the outermost element, and both the HTML and CSS fields are filled in:

  • {{title}}
  • data-ms-custom-root
  • data-ms-action="cta"
  • data-ms-action="close"

Hovering the disabled Save button shows what is missing.

Embedded Offer Unit

Both the Single Offer Unit and Multi Offer Unit can be embedded directly into your webpage instead of appearing as a modal popup. This provides a more integrated user experience.

Enabling Embedded Mode via Dashboard

  1. Log in to your MomentScience dashboard
  2. Navigate to Integration > Moments.
  3. Click on the Theme Settings tab
  4. Find the “Embedded Mode” setting and toggle it On
  5. Configure the additional embedded settings that appear:
    • Target Element Selector: Specify the ID of the HTML element where the unit will be embedded (e.g., adpx). Enter the ID without the #.
    • Show Header: Toggle to control header visibility
    • Show Footer: Toggle to control footer visibility
    • Fill Container: Enable to make the unit expand to fill the container height
    • Show Border: Toggle to control border visibility
  6. Click Save to apply your changes

Enabling Embedded Mode via Code

  1. You can enable embedded mode by adding the embeddedconfiguration inside the settingsobject in your window.AdpxConfig.This ensures the SDK applies the correct rendering mode.

    window.AdpxConfig = {
      accountId: 'YOUR_SDK_ID', 
      autoShow: true,
      settings: {
        embedded: {
          enabled: true,
          showBorder: true,
          showHeader: true,
          showFooter: true,
          targetElement: 'adpx',
          fill_container: true
        }
      }
    };
  2. Add a <div> element where you want the offer unit to appear. Make sure the id matches the value of targetElement in the configuration:

<div id="adpx"></div>

Configuration Options

The embedded settings provide several customization options:

Parameter Type Default Description
enabled Boolean false When true, embeds the offer unit in the specified container element
fill_container Boolean false When true, the unit occupies the full height of its parent container
showBorder Boolean true Controls the visibility of the unit’s border
showHeader Boolean true Controls the visibility of the unit’s header
showFooter Boolean true Controls the visibility of the unit’s footer
targetElement String 'adpx' ID of the HTML element where the offer unit will be embedded

Next Steps

You’ve configured the presentation options for your Moments Offer Unit. As the next step, you can customize the user experience to better match your brand and product flow:

  • Customization Options Use the JavaScript SDK Customization Guideto control when offers appear, override styles, configure embedded mode, and track lifecycle events programmatically.
  • Theme Customizer: Use the MomentScience Theme Customizerto style offer units, adjust layouts, and preview changes instantly, no coding required.

For assistance with presentation options, contact help@momentscience.com.

Type to search…

↑↓ navigate↵ selectEsc close