Skip to main content
Once you’ve created your gold-standard demo, it’s time to Embed the demo on your marketing website or product. Embedding your demo on your marketing website is a powerful way to generate top of funnel leads, drive demand, or educate new prospects.

Embedding a demo

Follow these steps to embed your demo on a webpage:
1

Click share and select embed option

On a Product Demo, select Share. For Share via select Website embed. Select between the sharing options to embed your demo on your website or product.Embed demo options
2

Click Get Embed Code

Click Get Embed Code to copy the code snippet. Drop this code snippet into your website or product.Embed demo code

Choosing an embed type

Navattic offers three embed types. Select the one that best fits where and how you want to present your demo.
The inline embed renders the demo directly on the page, scaling to fit its parent container. Visitors see the demo immediately without needing to click anything.When to use:
  • Blog posts and content marketing pages
  • Product or feature pages where you want to showcase a workflow
  • Landing pages where the demo is the primary content
  • Tutorial or documentation pages
<iframe
  src="https://app.navattic.com/your-demo-id"
  style="border: none; width: 100%; aspect-ratio: 16 / 10;"
  allow="fullscreen"
></iframe>
Recommendation: Use inline embeds for content-heavy pages where the demo is part of the narrative. Use full page embeds for dedicated demo pages where you want an immersive experience. Use pop-up embeds for CTA buttons where you want to keep the page lightweight and let visitors choose when to engage.

Inline sizing options

When using an inline embed, you can choose how the demo scales within its container. Select a sizing strategy in the embed modal after choosing the inline embed type.
The demo fills 100% of the container width, and the height scales automatically to maintain a consistent aspect ratio. The default ratio is 16:10.When to use: Most marketing pages and landing pages. This option provides responsive width while maintaining consistent proportions across all screen sizes.
<iframe
  src="https://app.navattic.com/your-demo-id"
  style="border: none; width: 100%; aspect-ratio: 16 / 10;"
  allow="fullscreen"
></iframe>
Recommendation: Use Fixed aspect ratio (16:10) for most marketing pages — it looks great on desktop and scales down gracefully on mobile. Use Responsive when embedding inside a container with a defined height. Use Fixed dimensions only when you need exact pixel control.
For more details on how your demo content adapts to different screen sizes, see Responsive strategies.

Customizations

Follow the instructions below to enable Lazy Load, disable demo pre-loading, or manage the embed lifecycle using JavaScript. Lazy Load Overlay When the lazy load overlay toggle is selected for an embedded interactive demo, an overlay will appear over the top of the demo frame. This can be helpful to improve page load times, reduce load traffic to the demo, or provide better guidance on how to engage with the interactive demo. The default background image (the first capture in the Product Demo) as well as the call to action to launch the interactive demo can be adjusted by updating the embed code as shown in this video. Disable pre-loading demo The pop-up demo embed preloads the demo on the page so that it loads instantly when the visitor opens it. This behavior can be undesirable in some situations like, for example, when there are many demos on a page. To disable this behavior, add the data-navattic-preload="false" data attribute to the button that is opening the demo. Control lifecycle of the embed with Javascript The default embed code for the lazy-load and pop-up embed types use HTML in order to make the embed process as simple as possible. If more control over the initialization and loading of the embed is required, the embeds.js script includes the Javascript class, NavatticEmbed which includes a few methods that can be helpful for controlling the lifecycle of the embed elements:
  • NavatticEmbed.loadEmbeds(): initializes all lazy-load embeds on the page
  • NavatticEmbed.initPopup(<embed_url>, <config>): adds the pop-up embed to the page but hides it until the below method is called
    • The second argument is an object containing configuration properties for the embed. The following (optional) properties are supported:
      • title: the title that will appear in the header of the demo
      • preload: if this is set to false, the demo won’t be pre-loaded when it’s initialized. It will only start to render the demo when it’s opened. Defaults to true.
      • onClose: a callback that is triggered when the visitor closes the pop-up.
  • NavatticEmbed.openPopup(<embed_url>): opens the demo so that the modal appears overlayed on the page. This would usually be attached to a click handler on the button that would be opening the pop-up demo.

Examples

See how leading companies embed Navattic demos on their websites: