Skip to main content
An embedded space is a designated banner or sidebar area on your app or website that displays the targeted content of a Messaging campaign. It defines the placement and dimensions of the message, not the message itself.

Prerequisites

Running a Messaging campaign in an embedded space requires an API key from MX. If you didn’t obtain one during the onboarding process, contact Support.

Creating an Embedded Space

To create an embedded space, log into the Intelligence Platform and navigate to Messaging > Embedded Spaces, then select the Create a space button and follow the prompts.

Creating a Messaging Campaign for an Embedded Space

To create a Messaging campaign for an embedded space:
  1. Log into the Intelligence Platform and navigate to Messaging.
  2. Select the Create Message button.
  3. Follow the prompts. When you reach the product selection screen, choose Embedded.
  4. Continue following the prompts until finished.

Using the Embedded Space Code

Embedded space code is the snippet of implementation code you add to your website to connect a page’s banner area to an embedded space. The campaign message can be loaded in any location able to access the MX user_id field. If a message is located in multiple places, you need to maintain the same dimensions across locations. If a user is targeted for multiple campaigns, they’re displayed according to the priority that was set when you created the campaign. The embedded space code is in HTML and JavaScript. Here’s an example:

Embedded Banner Target Fields