Integrate modules into your pages
Once you’ve created your final request URL, you’ll integrate it into your site. First, you’ll choose where in the sales path your attach modules should appear. Then you’ll choose how to display them: as an overlay on the page or embedded in an iframe.
You can use attach modules to display more than one line of business as additional options for your users. The standard setup lets you choose a primary line of business, which displays in a card format, and one or more secondary lines of business in a single message they can click through for more options. In addition, if your business needs require more than one primary line of business display, you can do that with embedded modules.
Regardless of how and when the module is displayed, when the user interacts with the results, their selection will open in a new tab.
Choose a flow location
For each purchase path you enable, you’ll want to think through where the right place is for your users to encounter the attach modules.
Pre-purchase
On landing pages and within the in-purchase path, flexible modules highlight ancillary product offerings. They can also be used without a link to your template site, as a priming message to raise awareness of the available options.
Post-purchase
Use either flexible or recommendations modules—or both—to suggest additional product offerings. When you overlay a flexible module, it can prime the user to consider further purchase from embedded recommendations.
Pick a display option
You can set your attach modules to display as an overlay that shifts the user’s focus to a new window, or embedded within the page itself.
Overlay treatment
The overlay option provides a focused view of the module by highlighting it over the webpage. The user can interact with the module or disengage by either clicking the close (X
) button or clicking outside of the module.
To use this module, include the Javascript code within the <body>
tag of the HTML.
Embedded treatment
An embedded attach module provides an integrated view, allowing the user to see and interact with the results based on the URL’s position on the page.
To set up this module, you’ll include the Javascript code within the <body>
tag of the HTML and add a div
element.
Additional settings for embedded modules
You’ll also need to check the referrer policy—tracking information of where the click came from—because that value sets the height of the iframe the embedded module displays in. The page the module is integrated on must be set with the referrer policy value origin-when-cross-origin
to display correctly.
Not sure what the referrer policy value is on the page you’re integrating to? Here’s how to check.
- Open the page where the embedded attach module will be integrated using any web browser.
- Right click on the page and click Inspect to open the developer tools.
- In the tools pane, go to the Network tab, then reload the page.
- On the Network tab, search for the page domain. There, you’ll see page headers for the referrer policy—for example:
<meta name="referrer" content="origin-when-cross-origin" />