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.
What it does
This extension makes sure YouTube videos embedded in your Digioh campaign behave nicely when users navigate between pages or close the campaign. It’s fully automatic once enabled — no manual actions are needed by the end user.
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:
- Navigate to your profile dropdown > extensions.
- Install the Stop or Remove YouTube Videos extension (Under Campaign User Interface)
- Go to the campaign editor, open Campaign Options, and add the following Campaign Metadata: youtube_videos : true

- And that’s it! Make sure to publish both your campaign and the extension 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)