Embedding Videos

Generate an Ours Privacy video embed, choose Inline or Popup display, and paste the player into any page on your site.

Use this page to generate an embed snippet and put the player on a page.


Copy the embed snippet

  1. Open the video from the Videos list and select Embed.
  2. Choose Inline player or Popup lightbox. For Popup, choose whether the lightbox opens from the video thumbnail, a text link, time on page, or a shared URL.
  3. Adjust the player color, aspect ratio, and playback options. The snippet updates as you change them. Every option is listed in Embed configuration.
  4. To collect an email or show a CTA, configure one interaction under Engagement. Choose when it appears, what it shows, and whether a visitor must complete it before continuing. See Video Lead Capture.
  5. If you have a custom domain configured, pick it from the domain selector above the snippet so the player and assets load from your own domain.
  6. Choose Copy embed code.
  7. Paste the snippet into your page's HTML where you want the player to appear.
The Embed tab with Popup lightbox selected, the Lightbox trigger menu, player appearance controls, and generated embed code

The snippet is available once the video finishes processing. Before then, the Embed tab explains that the code is not ready yet.


Choose a display mode

Use Inline when the player belongs in the page content. The player appears in place, and visitors start playback from its play control. This is the default.

Use Popup when you want the same player to open in a lightbox above the page. Choose one of four launch methods:

  • Thumbnail renders the video's poster as an accessible play button.
  • Text link renders a link with text you choose.
  • Time on page opens the lightbox after a delay from 1 to 300 seconds, once per browser session.
  • URL parameter opens the lightbox when the page URL includes the video's generated ours-video value.

Thumbnail and Text link work well for an explainer, testimonial, or product video that should be available without reserving room for the full player. Time on page works for a campaign or announcement that should appear after a visitor has had time to orient themselves. URL parameter works when an email, ad, or page link should open a specific video on arrival. Use Inline when the player itself is part of the page's primary content.

The Thumbnail button and Text link can receive keyboard focus and open from the keyboard. In the lightbox, visitors can use the close control, select the backdrop, or press Escape to return to the page. Focus returns to the launch control after the lightbox closes. For Time on page, focus returns to the page element the visitor was using before the lightbox opened.

Note: Thumbnail and Text link playback follow a visitor action, so the player requests sound as it opens. Time on page and URL parameter start muted because they do not follow a visitor action. Browser, device, and operating-system settings can still block autoplay.


What the snippet contains

The snippet is a short block of HTML that loads the hosted player in a frame on your page, plus optional data for search engines. In Popup mode, it also loads an Ours Privacy-hosted script that manages the selected launch method and opens the player in a lightbox. Paste the complete snippet as copied.

It needs no build step, so it works in any CMS or page builder that accepts an HTML block: Webflow, WordPress, Squarespace, Wix, Shopify, HubSpot CMS, Ghost, Framer, Drupal, BigCommerce, Adobe Experience Manager, Sitecore, Duda, and Weebly among them. The website platform directory lists the exact location on each platform.

Because the player goes in page content rather than your site's <head>, it does not depend on being able to add a site-wide script. A video can work on a platform where tracking cannot be installed.

The frame sizes itself to the width of whatever you paste it into, so the player scales on mobile with no styling on your side. It is sized for a 16:9 player. If you picked a different aspect ratio, the snippet needs a one-number edit, described in Embed configuration.

Note: Your settings are baked into the snippet at the moment you copy it. If you change the player color, aspect ratio, or Engagement interaction later, copy the snippet again and replace the one on your page.


Structured data for search engines

SEO schema is on by default. It adds a VideoObject block to the snippet describing the video's title, description, poster image, upload date, and file URL, which lets search engines recognize the page as containing a video.

The title and description come from the video's fields in the dashboard, so fill those in before you copy the snippet. Turn the option off if your CMS already emits VideoObject data for the page and you want to avoid a duplicate block.


Serving from your own domain

By default the player and video files load from a shared Ours Privacy domain. With a custom domain configured, the domain selector lets you generate a snippet that serves both from your own domain instead. This keeps every request on your domain, which matters if your site is configured to block content loaded from other companies' domains. Your web team will know whether that applies to your site.


Verify playback

After pasting the snippet:

  1. Load the page and confirm the player or selected launch control appears.
  2. For Inline, start the video and confirm audio and captions work. For Popup, use the selected launch method and confirm the lightbox opens and begins playback.
  3. If you use Popup, press Escape after opening it and confirm focus returns to the launch control or prior page element.
  4. If you have the Ours Privacy Web SDK on the page, check that engagement events arrive in Video Analytics within a few minutes.
The pasted embed playing on a page, with a caption line on screen and the control bar in the player color set in the dashboard

If the player area is blank, first confirm the video shows Ready in the dashboard. If it does, your site may be blocking content loaded from the player's domain, which is a setting your web team controls. Send them the domain shown in the snippet.


Next steps

How is this guide?

On this page