# Allow non-gated video embed in builders

**URL:** <https://forum.mautic.org/t/allow-non-gated-video-embed-in-builders/11659>\
**Category:** Ideas and Feature Requests\
**Created:** [November 14, 2019, 7:22pm UTC](https://forum.mautic.org/t/allow-non-gated-video-embed-in-builders/11659 "2019-11-14T19:22:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [November 14, 2019, 7:22pm UTC](https://forum.mautic.org/t/allow-non-gated-video-embed-in-builders/11659/1 "2019-11-14T19:22:58Z")

</div>

My idea is: it should be possible to have both gated and un-gated videos embedded via the builder

I think these groups of people would benefit from this idea: Marketers who are tracking but not gating their video content

Why I think they would benefit from this idea: Sometimes you may not want to gate the video. At present you would have to manually embed the video which is not a great user experience when building the landing page or email.

Ideally we should either have an option in the existing video slot to say whether it should be either not tracked at all, tracked, or gated. Then the relevant options are offered. Alternatively, a separate slot type which allows tracked but not gated video.

Any code or resources to support this idea: Originally raised on Github here: [https://github.com/mautic/mautic/issues/4031](https://github.com/mautic/mautic/issues/4031)

Are you willing to work on this idea?: N/A just raising issue here for visibility

What skills and resources do you need to explore this further? Development/UX

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [November 19, 2019, 3:37pm UTC](https://forum.mautic.org/t/allow-non-gated-video-embed-in-builders/11659/2 "2019-11-19T15:37:49Z")

</div>

A post was split to a new topic: [Problems with forums](https://forum.mautic.org/t/problems-with-forums/11726)

---

<div class="post-metadata">

**Author:** ![namratasaun](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/namratasaun/32/2801_2.png) [@namratasaun](https://forum.mautic.org/u/namratasaun)\
**Post date:** [December 16, 2020, 10:10am UTC](https://forum.mautic.org/t/allow-non-gated-video-embed-in-builders/11659/3 "2020-12-16T10:10:25Z")

</div>

any update on non-gated videos?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [December 16, 2020, 2:45pm UTC](https://forum.mautic.org/t/allow-non-gated-video-embed-in-builders/11659/4 "2020-12-16T14:45:02Z")

</div>

You can add video to a page, even non-gated one.

```auto
<video width="640" height="360" data-mautic-video="true">
    <source type="video/mp4" src="https://example.tld/video.mp4" />
</video>

```

Or The Mautic WP plugin does it by using this code:

```auto
[mautic type="video" data-mautic-video="true" src="https://www.youtube.com/watch?v=QT6169rdMdk" width="640" height="320"]

```

But the problem is - you can start automations on this. The video view event is saved, but you can’t filter nor use in a campaign step.

The only benefit is - you can create reports listing the video views.

Joey

---

<div class="post-metadata">

**Author:** ![namratasaun](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/namratasaun/32/2801_2.png) [@namratasaun](https://forum.mautic.org/u/namratasaun)\
**Post date:** [January 4, 2021, 7:45am UTC](https://forum.mautic.org/t/allow-non-gated-video-embed-in-builders/11659/5 "2021-01-04T07:45:12Z")

</div>

> [@joeyk](#):
>
> ```auto
> <video width="640" height="360" data-mautic-video="true">
> <source type="video/mp4" src="https://example.tld/video.mp4" />
> </video>
> 
> ```

I want to add video to a email not a page using the builder

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [January 4, 2021, 7:57am UTC](https://forum.mautic.org/t/allow-non-gated-video-embed-in-builders/11659/6 "2021-01-04T07:57:47Z")

</div>

You can’t play a video in an Email, nor you can use iframes.  
The nature of email technology doesn’t make it possible to do so.  
You could do it with AMP, but Mautic doesn’t support it yet.

Common solution is, that you can add a thumbnail of the video as an image and by clicking on the image you’d play the video on a landing page.

Joey

---

<div class="post-metadata">

**Author:** ![namratasaun](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/namratasaun/32/2801_2.png) [@namratasaun](https://forum.mautic.org/u/namratasaun)\
**Post date:** [January 4, 2021, 8:33am UTC](https://forum.mautic.org/t/allow-non-gated-video-embed-in-builders/11659/8 "2021-01-04T08:33:34Z")

</div>

thanks a lot @joeyk  
you are always there to help!

---

<div class="post-metadata">

**Author:** ![IonutOjicaDe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ionutojicade/32/7383_2.png) [@IonutOjicaDe](https://forum.mautic.org/u/IonutOjicaDe)\
**Post date:** [June 8, 2023, 10:43pm UTC](https://forum.mautic.org/t/allow-non-gated-video-embed-in-builders/11659/9 "2023-06-08T22:43:45Z")

</div>

The issue is solved in 2015: [Removes iframe restriction from builders allowing Youtube, etc by alanhartless · Pull Request #443 · mautic/mautic · GitHub](https://github.com/mautic/mautic/pull/443)  
And improved in 2016: [Enable video attributes in Froala by escopecz · Pull Request #2211 · mautic/mautic · GitHub](https://github.com/mautic/mautic/pull/2211)

Tested now and … it works !

Entered inside a text-slot:

```auto
<div class="video-container1">
 <div class="video-container2">
  <iframe class="video" title="Am creeat un email cu conţinut dinamic" src="https://www.youtube.com/embed/_1iwXeHjCZc?feature=oembed" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen> </iframe>
 </div>
</div>

```

that get´s modified to:

```auto
<div class="video-container1">
 <div class="video-container2">
  <span class="fr-gatedvideo fr-dvi fr-draggable" contenteditable="false" style="">
   <iframe class="video" title="Am creeat un email cu conţinut dinamic" src="https://www.youtube.com/embed/_1iwXeHjCZc?feature=oembed" allowfullscreen=""> </iframe>
  </span>
 </div>
</div>

```

And the video is visible on the landing page (not in the editor (legacy editor) ).
