Embed Hubspot script.

I need to place a button on each page that will trigger the following code:

<div class="meetings-iframe-container" data-src="https://app.hubspot.com/meetings/mkubica?embed=true"></div> 
<script type="text/javascript" src="https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js"></script> 

I’m not even sure where to start. Please help.

Thanks

Michael

Hi,

Wix Code is about expanding your sites components functional abilities.
Therefore, the HTML is not exposed, and there’s no way to modify it using Wix Code.

Please contact Wix Support , and submit a feature request if needed.

Liran.

You may want to check our blog article on this…

https://www.crannog.scot/crannog-chronicles/using-hubspot-on-wix

As Liran pointed out, Wix Code doesn’t really allow adding HTML to a page. However, if you really need to embed the script that you posted, you might consider the HtmlComponent . For information on how to use it, refer to the article Working with the HTML Element in Wix Code . If you need to “talk” to the hubspot script, you can send messages back and forth as described in this article.