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

I have a WordPress site (external site) with a pre-existing button that currently links to nothing. I’ve created a pop up CTA that I would like to apply to this button; however, I’m not sure how to apply the snippet HubSpot provided for external URLS.

Does anyone know how to do this?