YouTube

The YouTube button opens a YouTube Business page a pop-up window where the survey taker can subscribe the company's videos. If not already signed in, the survey taker is prompted to do so.

YouTube pop-up window that allows survey takers to subscribe to the company's account.

Shortly after the pop-up loads, the button changes to its disabled state.

For information on how to implement a social link in a survey, see Social links in surveys.

Configure the link with these parameters. The values may be literal or retrieved from Data fields.

Parameter

Description

Example

username

The YouTube user name to view the company's YouTube Business page. For example, the <username> portion of this URL is: https://www.youtube.com/user/<username>

Medallia

windowWidth

Optional. Height of the pop-up window in either pixels (integer) or as a screen percentage. Default is 600 pixels.

500(pixels)
50%(percent of window)

windowHeight

Optional. Width of the pop-up window in either pixels (integer) or as a screen percentage. Default is 600 pixels.

450(pixels)
75%(percent of window)

This example retrieves the YouTube user page from the Unit data field named u_youtube_username:

<div id="social-link-config-youtube" style="visibility: hidden; display: none;">
    <span id="youtube-username">[=u_youtube_username:html]</span>
    <span id="youtube-window-height">600</span>
    <span id="youtube-window-width">600</span>
    <script type="text/javascript">
        if (!Array.isArray(window.MedalliaSocialLinks)) {
            window.MedalliaSocialLinks = [];
        }

        window.MedalliaSocialLinks.push({
            type: 'youTube',
            username: document.getElementById('youtube-username').innerHTML,
            windowHeight: document.getElementById('youtube-window-height').innerHTML,
            windowWidth: document.getElementById('youtube-window-width').innerHTML
        });
    </script>
</div>