> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/widget-experiences/set-up-an-instant-access-widget.md).

# 设置即时访问组件

<a href="https://pxa.impact.com/student/activity/2359603?sid=0c0e3e5c-54c9-4435-9bee-ebcdccb7f292&#x26;sid_i=0?utm_source=app.impact.com&#x26;utm_medium=owned-platform&#x26;utm_content=&#x26;utm_campaign=help-center" class="button primary">参加 PXA 课程</a>

即时访问小组件专为电商和零售客户设计，可让您的客户推荐者及其推荐的好友轻松参与推荐计划，无需密码或身份验证。

即时访问小组件分为两种：

* “ *网站推荐小组件* ”让您的客户推荐者轻松加入推荐计划并获取分享链接。
* “ *好友小组件* ”会将被推荐的客户注册到推荐者计划中，并在对方提供电子邮件地址后发放奖励（例如折扣码）。当客户推荐者的好友点击其分享链接时，应在着陆页上显示此小组件。

如需详细了解即时访问小组件的工作方式，请参阅 [《小组件类型说明》](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/widget-experiences/widget-types-explained.md).

#### 步骤 1：在计划规则中设置小组件

首先，您需要配置即时访问小组件的外观。

{% tabs %}
{% tab title="网站推荐小组件" %}

1. 在左侧导航菜单中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%2Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg?alt=media) **\[互动] → 计划规则**.
2. 选择页面顶部的 **内容** 选项卡。
3. 在 *网站推荐小组件* 卡片，选择 **编辑**.

   <div data-with-frame="true"><figure><img src="https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fuobx2XxNWNvnWI9VxAeM%2FScreenshot%202026-05-18%20at%2009.46.08.png?alt=media&amp;token=6cd074ab-47c6-4423-ab7e-f555c639efe9" alt=""><figcaption></figcaption></figure></div>
4. 调整模板的外观和内容。
   * 有关如何使用小组件编辑器的更多信息，请参阅 [自定义程序小组件](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/widget-experiences/customize-program-widgets.md)。以下组中的组件无法添加到即时访问小组件中： *奖励*, *统计信息*, *微型网站组件*，或 *推荐*.
5. 保存对小组件所做的更改。
   {% endtab %}

{% tab title="好友小组件" %}

1. 在左侧导航菜单中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%2Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg?alt=media) **\[互动] → 计划规则**.
2. 选择页面顶部的 **内容** 选项卡。
3. 在 *好友小组件* 卡片上，选择 **编辑**.

   <div data-with-frame="true"><figure><img src="https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fb2KP4npAsfVPKK5ZZytF%2FScreenshot%202026-05-18%20at%2009.47.19.png?alt=media&amp;token=8d651c41-1e04-43a8-b341-5d1905408da2" alt=""><figcaption></figcaption></figure></div>
4. 调整模板的外观和内容。
   * 有关如何使用小组件编辑器的更多信息，请参阅 [自定义程序小组件](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/widget-experiences/customize-program-widgets.md)。以下组中的组件无法添加到即时访问小组件中： *奖励*, *统计信息*, *微型网站组件*，或 *推荐*.
5. 可选：选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-b5e1740618ed6571d97b8fed7c25a7678f85d375%2F299632fb6f4f91fbf9847471754cc6180e4284a65b4960af4c4ea472a159f552.svg?alt=media) **\[未选中复选框] 显示** 在 *好友小组件* 卡片 *自动向被推荐的好友显示*.
   * 此选项可启用自动弹出功能。自动弹出会让好友小组件在落地页上更加醒目，从而为被推荐的好友带来更吸引人的体验。
6. 保存对小组件所做的更改。
   {% endtab %}
   {% endtabs %}

#### 第 2 步：配置好友小组件以发放奖励（可选）

如果你使用好友小组件，可以将其配置为向被推荐的好友提供折扣码。为此，你需要先设置燃料箱奖励，然后配置计划规则，通过好友小组件发放此奖励。

{% hint style="info" %}
**注意：** 如果你的计划已经设置了燃料箱奖励，则可以编辑 [现有奖励](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/advocate-program/advocate-rewards/set-up-a-fuel-tank-reward.md) 并更改 *访问类型* 至 **即时访问** 而不是。
{% endhint %}

1. 设置 [油箱奖励](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/advocate-program/advocate-rewards/set-up-a-fuel-tank-reward.md).
   * 油箱用于上传专属折扣，impact.com 会在好友小组件中显示这些折扣。
2. 在左侧导航菜单中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%2Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg?alt=media) **\[互动] → 计划规则**.
3. 选择页面顶部的 **计划行为** 选项卡。
4. 找到向被推荐好友发放奖励的计划规则，然后选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fut4jbWXPGIqKlOpfrxol%2Fadvocate_edit.svg?alt=media\&token=3a645b22-237b-429e-be28-5a4d92fab66c) **\[编辑操作]**.

   <div data-with-frame="true"><figure><img src="https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FgH9l0ls6qyirX5CI1yUH%2FScreenshot%202026-05-18%20at%2009.59.05.png?alt=media&amp;token=7232b7df-d38e-44d2-a613-cebaa1b1632a" alt=""><figcaption></figcaption></figure></div>
5. 确保该操作向 **好友** 发送 **奖励和电子邮件**，然后选择 **下一步**.
6. 在 *编辑奖励* 页面顶部，选择 **使用预配置的奖励**.

   <div data-with-frame="true"><figure><img src="https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-0c279d2b9565e090b9d307487a89253949ea82d5%2F7922f00a4660ca4be39e63403b51343ac0eeb85dd15e6497e15fc10536d22c1e.jpg?alt=media" alt=""><figcaption></figcaption></figure></div>
7. 在 *奖励* 下拉列表中，选择你创建的油箱奖励。
8. 选择 **下一步**，然后检查该操作并选择 **保存**.

#### 第 3 步：安装小组件

恭喜！即时访问小组件已准备就绪。最后一步是生成代码片段，并将其嵌入购买后落地页、结账流程，或你希望参与者访问小组件的其他位置。

{% tabs %}
{% tab title="网站推荐小组件" %}

1. 在顶部导航栏中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户个人资料] → 设置**.
2. 在左侧的 *推荐者设置*下方，选择 **安装**.
3. 在小组件下拉列表中，选择你创建的即时访问小组件之一。
4. 选择要为哪种类型生成代码片段： **嵌入式小组件** 或 **弹出式小组件**.
   * 嵌入式小组件会直接显示在网页中。
   * 参与者点击指定按钮或链接后，弹出式小组件会在弹出窗口中加载。
5. 复制生成的代码片段，然后将其添加到你的电子商务平台或落地页中。
   {% endtab %}

{% tab title="好友小组件" %}
{% hint style="info" %}
**如果好友小组件使用自动弹出功能，请跳过此步骤：** 并非所有好友小组件都需要执行此步骤。 [通用跟踪标签 (UTT)](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/tracking/javascript-tag-tracking/tracking-with-universal-tracking-tag-utt.md) 会自动在网页上加载设置为 *自动向被推荐好友显示*的好友小组件。如果好友小组件启用了此选项，你可以跳过此步骤。
{% endhint %}

如果使用的好友小组件未启用自动弹出功能，UTT 将不会自动加载该小组件，因此你需要生成代码片段并将其放置在页面上。

1. 在顶部导航栏中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户个人资料] → 设置**.
2. 在左侧的 *推荐者设置*下方，选择 **安装**.
3. 在 *显示小组件* 部分中，选择 **即时访问** 作为要显示的小组件类型。
4. 从小组件下拉列表中，选择好友小组件。
5. 选择 **嵌入式小组件** 显示类型。
6. 复制生成的代码片段，然后将其添加到好友将访问的页面中。
   {% endtab %}
   {% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/widget-experiences/set-up-an-instant-access-widget.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
