# Youtube video tracking in choice experiment

**URL:** https://forum.surveyengine.com/t/youtube-video-tracking-in-choice-experiment/259
**Category:** Experiments
**Created:** [1 July 2025 12:54 UTC](https://forum.surveyengine.com/t/youtube-video-tracking-in-choice-experiment/259 "2025-07-01T12:54:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Addya3](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Addya3](https://forum.surveyengine.com/u/Addya3)
#### Post date: [1 July 2025 12:54 UTC](https://forum.surveyengine.com/t/youtube-video-tracking-in-choice-experiment/259/1 "2025-07-01T12:54:41Z")

</div>

I included a YouTube video in my attributes, and it plays correctly; however, I keep getting error in my html code when I try to disable the next button before the video is watched.  
I embed the video with iframe :   
]]\> then I  
added validation script for youtubeAPI:

 Has anyone used youtube video on surveyEngine before? How did you do it?

---

<div class="post-metadata">

### Author: ![benno](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.surveyengine.com/benno/32/3_2.png) [@benno](https://forum.surveyengine.com/u/benno)
#### Post date: [12 August 2025 11:27 UTC](https://forum.surveyengine.com/t/youtube-video-tracking-in-choice-experiment/259/2 "2025-08-12T11:27:15Z")

</div>

The video tutorial forces respondent’s to watch the entire video before they click through.

If you just want to include a video - that’s very easy.

1. Create a text element

2. switch to code view with the \</\> button to right in the formatting

3. Paste in the embed code from your video hoster - e.g. youtube or vimeo

This will work out of the box.

You
