# 监测代码正确部署但没有数据流入

### 1. 常见原因 <a href="#id-1-chang-jian-yuan-yin" id="id-1-chang-jian-yuan-yin"></a>

* **部分页面缺少 Ptengine 的监测代码**
  * 必须在所有要监测的页面上安装监测代码。如果您限制了监测范围，请确保目标页面已包含在内。
* **数据延迟**
  * 即使监测代码已经正确安装，数据仍然未能及时显示，这可能是由于延迟问题。
  * 安装监测代码后，数据需要最少一个访次结算的时间（默认为访次中断后30Min进行访次结算）才能反映在整体摘要或热图中。
* **域名设置错误**
  * 请在管理界面的“档案设置”中检查注册的域名是否正确。Ptengine只会监测设置的域名。
* **数据时间区间范围设置错误**
  * 请确保数据的目标时间区间是从安装监测代码的日期开始的。
* **PC网站和移动设备网站的 HTML 源码不同**
  * 请确保在移动设备网站的 HTML 源码中也安装了 Ptengine 的测量标签。
* **浏览器扩展阻止了 Ptengine**
  * 如果安装了广告拦截软件，则可能会阻止 Ptengine 的跟踪。
* **排除特定 IP 或 UA 的访问**
  * 请确保 Ptengine 没有排除特定访问。
* **网页使用了 CSP**
  * 如果网页使用了内容安全策略（CSP），但没有将 Ptengine 的域名添加到白名单中，则可能无法正确测量。

### 2. 确认数据测量方法 <a href="#id-2-que-ren-shu-ju-ce-liang-fang-fa" id="id-2-que-ren-shu-ju-ce-liang-fang-fa"></a>

实时数据确认步骤：

1. 在新标签页中打开目标页面。
2. 转到 Ptengine 管理界面的“实时”选项卡，输入测试 URL 到 URL 栏中。
3. 如果可以看到访问记录，则表示测量正常进行。


---

# Agent Instructions: 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:

```
GET https://helps.ptengine.com/cn/faq/tracking-code/no-data-after-deploy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
