> For the complete documentation index, see [llms.txt](https://docs.exoclick.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.exoclick.com/tutorials/zh/jiao-cheng/fa-bu-shang-jiao-cheng/how-implement-push-notifications.md).

# 推送通知：如何实现推送通知广告位

ExoClick 现已提供推送通知广告格式。在本平台导览中，我们将向您展示如何创建一个推送通知广告位。

## 如何设置推送通知广告位 <a href="#how-to-set-up-a-push-notification-a-d-zone" id="how-to-set-up-a-push-notification-a-d-zone"></a>

{% stepper %}
{% step %}

### 创建广告位

在您的管理面板中，进入 Publisher 下的‘**网站与广告位**’，然后点击‘**新建广告位**’。下拉菜单会显示您的网站列表，请选择您想启用推送通知的网站。

<figure><img src="/files/b8793dc3bfe3ceca8df94b617a3bb3d1095f1d2f" alt=""><figcaption></figcaption></figure>

这将打开广告格式选择页面。点击下拉菜单‘**原生**’，选择‘**推送通知**’，然后点击‘**下一步**’。
{% endstep %}

{% step %}

### 选择集成方式

现在您需要决定希望如何收集选择接收用户，以向其发送推送通知。共有三个选项：

如果您希望在发送推送通知时使用自己的域名，可以在两种实现方式之间选择。您可以在‘**直接**’和‘**直接 + 软性询问提示**’之间选择：

* **直接**：这将在您的网站上向用户显示一个选择接收框（Direct）。在该框中，用户可以选择‘**允许**’或‘**阻止**’推送通知

<figure><img src="/files/fac580dfa743c66e096af1907ef2e8e1cc0f107e" alt=""><figcaption></figcaption></figure>

* **直接 + 软性询问提示**：这是一个两步流程，会在您的网站上连续显示两个选择接收框。第一个（Soft-ask）会询问用户是否希望接收推送通知，在该框中用户可以选择‘**不，谢谢**’或‘**允许。**’如果用户点击允许，将出现第二个框（Direct），用户可以在其中选择‘允许’或‘阻止’。要实现这一点，请选择 Direct 并开启 Soft-Ask Prompt 按钮

<figure><img src="/files/22fdd4a461372b9950969641878346ffad662bca" alt=""><figcaption></figcaption></figure>

如果使用 ExoClick 的域名，则只有一种实现方式：

* **托管**：这将在您的网站上仅显示软性询问框，询问用户是否希望接收推送通知，在该框中用户可以选择‘不，谢谢’或‘允许’。

<figure><img src="/files/5e9af9f10a1db4024185c5bccb92a424e6a11826" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
在软性询问框中，如果用户点击‘**不，谢谢**’框，他将在 2 天后自动再次被重新定向。如果您采用直接实现方式，如果用户点击‘阻止’按钮，他将永远不会再次被定向。
{% endhint %}

**使用您自己的域名**：这将带来更高的订阅率，因为您网站的直接用户正在选择接收。发送推送通知时，您的域名将显示在通知框中。

**使用 ExoClick 的域名**：这对发布商有利，因为用户不会将推送通知与发布商联系起来，而是与 ExoClick 广告网络联系起来。推送通知广告中将显示 Exoclick 的域名。此方法还允许您通过其他网络以及 ExoClick 为您的网站实现推送通知。阅读 [这篇博客文章中](https://www.exoclick.com/push-notifications/) 以获取详细说明。
{% endstep %}

{% step %}

### 软性询问提示自定义

当勾选‘**使用默认值**’框时，您将看到下方显示的设置。

<figure><img src="/files/87992190dff8e08e7df7905eea525dd4dae56505" alt=""><figcaption></figcaption></figure>

当‘**使用默认值**’框未勾选时，您可以自定义以下设置：

* **位置：** 在这里您可以选择软性询问提示框在用户屏幕上显示的位置，选项有：
  * **垂直**：顶部、中部、底部
  * **水平**：左侧、中间或右侧
* **延迟**：我们建议将其设置为 5 秒以内，这样用户到达您的网站后就能立即看到软性询问提示框

您还可以编辑框中显示的文本，替换提供的默认文本： **行动号召**, **描述**, **确认按钮文本**, **拒绝按钮文本**

{% hint style="info" %}
默认文本托管在 ExoClick 的服务器上，并提供 12 种语言：英语、西班牙语、法语、德语、意大利语、葡萄牙语、捷克语、匈牙利语、克罗地亚语、斯洛伐克语、俄语和中文。文本将自动以终端用户浏览器设置的语言显示。如果您输入自己的文本，软性询问提示框将始终以您输入的语言显示，而不会触发我们设置的默认语言。
{% endhint %}
{% endstep %}

{% step %}

### 生成广告位代码

一旦您点击‘**创建**’后，广告位代码会自动为您生成，这样您就可以复制并粘贴到您的网站中。

<figure><img src="/files/736309f3f0fbd5c5928c605aa4a313276f7f5a1b" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
您必须将提供的 **worker.js** 文件放在您网站目录的根文件夹中，以确保其正常运行。
{% endhint %}
{% endstep %}

{% step %}

### 统计数据

一旦订阅者选择接收推送通知，首次广告最多可能会有 2 小时延迟才会送达。

此后，订阅者每 3 小时会收到一条推送通知广告，例如，用户在早上 7 点订阅，他会在早上 7 点到 9 点之间收到第一条广告

因此，在查看统计数据时请考虑这一点。

{% hint style="warning" %}
推送通知无法在 Safari 和 Mobile Safari 浏览器上运行，也无法在任何非 HTTPS 网站上运行。
{% endhint %}

如果您在设置推送通知广告位时遇到任何问题，请联系您的客户经理或客户成功专员 [这里](https://www.exoclick.com/contact/).
{% endstep %}
{% endstepper %}


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.exoclick.com/tutorials/zh/jiao-cheng/fa-bu-shang-jiao-cheng/how-implement-push-notifications.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
