How to trigger custom code on the "webinar started" event

This article explains how to use the 'webinar started' event to run custom code as soon as your webinar begins.

You will need:

Open the editor for your Webinar broadcast page (1).

Click Settings (2).

Scroll down and click Edit header code or Edit footer code (3).

In the popup window that appears, insert your code inside the addEventListener function using the template below:
<script>
  document.addEventListener('start_webinar', function () {  
    // insert your code here     
    console.log('the webinar started')   
  }) 
</script>

Click Save (4).

To check if everything is working correctly, click the preview icon to open the page in preview mode.

The code inside the addEventListener function will trigger once the countdown reaches zero.

After confirming the trigger works, return to the editor and click Save (5) to save the changes. Once the changes are saved, the old version of the page cannot be restored.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.