Exit popup using Hubspot

Hi team,

Here’s what I’m trying to do:
Create a pop-up that triggers when a visitor is about to exit, asking for them to register in order to get a whitepaper. I found that the CRM that we use- Hubspot, has the functionality to create an exit popup form.

Here’s my challenge:
They’re need us to install the Hubspot tracking code. I took a quick look at admin/site_settings, but couldn’t figure out how I can install the code.

Any help would be much appreciated.

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