Exit popup using Hubspot

You cant’ enter the code there, but you can build a theme component to do that, see the step 5 here as example, HubSpot chat integration