All Collections
Custom Annotations
Add a MailChimp Form to a Video
Add a MailChimp Form to a Video
Patrick Farley avatar
Written by Patrick Farley
Updated over a week ago


  1. Copy the Embed Code for your MailChimp List.

  2. Add an iframe annotation to your HapYak project.

  3. Click the HTML tab. Replace the default HTML with the HTML TEMPLATE below.

  4. Replace the line “<!-- Replace this line with your Mailchimp embed code -->” with your Mailchimp embed code.

  5. Click Submit.

  6. Resize the iframe to fit the embedded Mailchimp form. Click Done.


By default the form will be shown for 3 seconds. You can ensure the form is on screen longer by doing one of the following.

  1. Increase the Duration

  2. Set Pause: Y

  3. Set Gate: Y (Note: Set either Pause or Gate, not both)

HTML Template

<!DOCTYPE html>
<meta charset="utf-8">
<title>MailChimp Widget for HapYak</title>
<link rel="stylesheet" type="text/css" href="//">
  .hy_widget_content {zoom:1.2;}
  <div class="hy_widget">
    <div class="hy_widget_typeformTop">Click here when done.
      <button onclick="resumeVideo()">Resume Video</button>
    <div id="hy_post_target">
      <iframe id="hy_post_target_iframe" name="hy_post_target_iframe"></iframe>
    <div id="hy_widget_content">
      <!-- Replace this line with your Mailchimp embed code -->
<script src="//"></script>
<script type="text/javascript" src="//"></script>
$(document).ready(function() {

  //this can be manually changed to your desired height


  hapyak.context.addEventListener('iframeshow', function () {
    //dynamically ensure the iframe will fit the form
    hapyak.context.height = document.body.querySelector('.hy_widget').offsetHeight;

    //ensure the widget is visible - probably not needed
    //this is needed if the iframe isn't configured to pause or gate
    $(".hy_widget").hover(function() {

function initForm() {
  //make all frames post to our frame so they don't escape
  $("form").attr("target", "hy_post_target_iframe");
  //hide the form and show the post destination on submit
  $("form").submit(function() {

function resumeVideo() {
  //remove the pause-on-hover
  $(".hy_widget").unbind('mouseenter mouseleave')
  //hide the form
  //resume the video

Please Note: this is a Proof of Concept only provided to show the possibilities of the HapYak Platform and should not be taken as an offer to create, edit or maintain custom integration or development.

Did this answer your question?