How to use the Button trigger code snippet as a 'external url'

@AntonThank you for your reply.

My knowledge of any code is very minimal haha. So this is a bit overwhelming for me.

Can I add the modal-box code in the html header or wont that work?

Im trying to get the same result when using the hubspot button but with an html text link or a button from a theme linking to an exernal url.
When I add the code snippet as a URL im getting this error message so i know im doing somehting wrong.

I think im totally overlooking something haha. sorry for my lack of knowlegde about code. We can not really adjust any code on the website only add code in the html header and footer section.