Youtube Video Handler Extension

What you'll learn:

  • What the YouTube extension does to manage videos during navigation and campaign close.

  • How to enable the extension using Campaign Metadata and the Extensions menu.

  • Best practices for embedding YouTube videos so they work correctly with the extension.

Note: If this is your first time embedding a YouTube video on a Digioh campaign, we recommend reviewing How to Add a YouTube Video to a Digioh Campaign

What it does

The YouTube Video Handler Extension allows Digioh campaigns to control embedded YouTube videos inside a campaign. This extension enables features such as automatically pausing videos when a campaign closes or when a visitor navigates between pages of a campaign.

Use this extension when your campaign contains embedded YouTube videos, and you want Digioh to manage playback behavior automatically.

Here’s what it does behind the scenes:

  • Detects if your campaign includes a YouTube video.

  • Pauses the video when users change pages within the campaign.

  • Removes the video when the campaign is closed, helping to stop the video and clean up resources.

How to enable this extension

To activate this extension for your campaign, follow these steps:

  1. Navigate to your profile dropdown > extensions.
  2. Go to Campaign User Interface and install the Stop or Remove YouTube Videos extension.Digioh Extensions page showing the “Stop or Remove YouTube Videos” extension with the Install button highlighted.
  3. Click Publish > Publish to Your Site.Digioh Extensions page showing the Publish menu with the Publish to Your Site option selected to push extension changes live.
  4. Go back to your campaign editor and go to Settings > Campaign Settings > Campaign Metadata Campaign and toggle it on.Digioh campaign settings panel showing the Campaign Metadata section highlighted within the campaign configuration options.
  5. Add the following Campaign Metadata:
    1. Ket: youtube_videos
    2. Value: trueCampaign Metadata settings showing the key youtube_videos set to true in a Digioh campaign.
  6. And that's it! Make sure to publish your campaign in order for these changes to go live.

Important notes

  • Your YouTube video must be embedded using an iframe in the format:
    https://www.youtube.com/embed/...

  • To allow pausing, make sure your YouTube iframe includes this parameter:
    enablejsapi=1
    (e.g., https://www.youtube.com/embed/VIDEO_ID?enablejsapi=1)

Want to get more from Digioh?

Get the playbooks leading brands use to convert more visitors into revenue.

Browse the Playbooks ?

Platform Tour

See what else you can do with Digioh in our self-guided platform tour.

Take the Tour ?

Still Need Help?

Connect with our team for technical help.

Message Support