To enjoy all our Developer Portal features, please switch to Microsoft Edge, Google Chrome or Mozilla Firefox browsers.

How to automatically embed videos to maximise your articles’ audience and inventory

Posted on by Nicolas Ferron

At no extra cost, learn how to embed contextually relevant videos in all your sections and articles, turning page views into video views and sellable inventory.

The contextual embed will help you by:

  • scaling automatically your video footprint throughout your website
  • generating significant volumes of audience and inventory

How does the contextual embed work?

Two embed scenarios:

1) You already have a related video in the article body

Add a section with extra related video content.

2) Your articles don’t contain any video content

Embed videos in articles from your own pool of content or our premium publisher network.

Step 1

Choose your ideal video placement in your html structure and control customization:

<div id="dm-contextual-embed"></div>

Step 2

Use this code sample to create your own script an adapt it in your js component:

Step 3

Don't forget to include our Javascript SDK in your project:

<script src="">

The script will scan your article title, then the Dailymotion search API will be called with the keywords on top of any specified criteria (sorting filter, playlist, latest upload, category, language, set of channels...). It finally displays one embed with the most relevant video content within your defined destination placement (see step 2) for the player and title.

Customize the script according to your needs

Our solution can be customised to fit your specific needs and KPIs. Please read our Javascript SDK documentation to learn how to modify the script behavior yourself and maximise your revenues.

Learn more about our Partner Program