# Google Analytics

Add a YouTube video to a Dashboard

Step-by-step guide

There are two gadgets that allow for video embedding.  The Rich Text gadget and the IFrame gadget.  The Rich Text gadget allows the video to exist alongside other content, like a description, images, etc., where as the IFrame gadget only includes the embedded video.

First we need to locate the video you wish to include.  For purposes of this KB article, we will use https://www.youtube.com/watch?v=a96zrspadpM

  1. Go to the desired video on YouTube
  2. Right click on the video and select 'Copy embed code'

To include the video alongside other content in a Rich Text gadget:

  1. In the iGrafx Platform Dashboard, click on '+ Add New Gadget'
  2. Select 'Rich Text'
  3. Select 'Configure Now'
  4. Give the Gadget a title (unless you like Rich Text)
  5. Click on the '<>' (Source code) button in the Contents window
  6. Paste the copied embed code into the Source code edit box.  It will look something like:

    <iframe width="854" height="480" src="https://www.youtube.com/embed/a96zrspadpM" frameborder="0" allowfullscreen></iframe>
  7. If you wish to modify any of the IFrame settings, like width and height do it now
  8. Click OK
  9. Click 'Save Changes'

To include the video in an IFrame gadget:

  1. In the iGrafx Platform Dashboard, click on '+ Add New Gadget'
  2. Select 'IFrame'
  3. Select 'Configure Now'
  4. Give the Gadget a title (unless you like IFrame)
  5. Paste the copied embed code into the URL box.  It will look something like:

       <iframe width="854" height="480" src="https://www.youtube.com/embed/a96zrspadpM" frameborder="0" allowfullscreen></iframe>
  6. Edit the pasted code so only the URL is included

       https://www.youtube.com/embed/a96zrspadpM
  7. Click 'Save Changes'


If you try and include the direct link to the YouTube video, rather than using the 'Copy embed code' approach - you will likely see a message from YouTube saying that "This content can't be shown in a frame".