How to create PopUp on a Hubspot Landing Page?

Triggering a popup form from a CTA in Hubspot is tricky. Here are two workarounds how to deal with that

Can we build a popup form in husbpot landing page... Like the form will appear only if person click on the cta??
Actually it’s very difficult to trigger javascript off of a CTA as doing so may screw up the analytics for the CTA.
You could however set the CTA to modify the URL(use a query param or # link and use that to trigger the modal) this would mean a page refresh will likely occur but it should track the click.
You can however use a normal button if you don’t care about the analytics and trigger off of that