# 使用 Hubspot 退出弹窗

**URL:** https://meta.discourse.org/t/exit-popup-using-hubspot/149785
**Category:** Support
**Created:** [2020年四月29日 14:10 UTC](https://meta.discourse.org/t/exit-popup-using-hubspot/149785 "2020-04-29T14:10:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dunebuggie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dunebuggie/32/117408_2.png) [@dunebuggie](https://meta.discourse.org/u/dunebuggie)
#### Post date: [2020年四月29日 14:10 UTC](https://meta.discourse.org/t/exit-popup-using-hubspot/149785/1 "2020-04-29T14:10:21Z")

</div>

大家好，

**我想实现的功能：**  
创建一个退出弹窗，当访客即将离开时触发，提示他们注册以获取白皮书。我发现我们使用的 CRM 系统 HubSpot 具备创建 [退出弹窗表单](https://knowledge.hubspot.com/pop-up-forms/create-pop-up-forms#type) 的功能。

**我遇到的困难：**  
他们需要我们安装 [HubSpot 跟踪代码](https://knowledge.hubspot.com/reports/install-the-hubspot-tracking-code)。我快速查看了 `admin/site_settings`，但没能弄清楚如何安装该代码。

非常感谢您的帮助。

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [2020年六月4日 14:50 UTC](https://meta.discourse.org/t/exit-popup-using-hubspot/149785/2 "2020-06-04T14:50:57Z")

</div>

> [@dunebuggie](#):
>
> **我的挑战是：**  
> 他们需要我们安装 [Hubspot 跟踪代码](https://knowledge.hubspot.com/reports/install-the-hubspot-tracking-code)。我快速查看了一下 `admin/site_settings`，但没弄清楚该如何安装该代码。

你无法在那里输入代码，但你可以构建一个主题组件来实现，请参见此处第 5 步作为示例：[Setup HubSpot chat Integration](https://meta.discourse.org/t/hubspot-chat-integration/128777)
