# 事件/转化常见问题

## 访次数据为什么与事件数据不同 <a href="#fang-ci-shu-ju-wei-shen-me-yu-shi-jian-shu-ju-bu-tong" id="fang-ci-shu-ju-wei-shen-me-yu-shi-jian-shu-ju-bu-tong"></a>

### 归因逻辑 <a href="#gui-yin-luo-ji" id="gui-yin-luo-ji"></a>

事件数：当设置的事件发生时，都会发送一次事件包并收集。\
访次数：当用户开始访次，且在访次结算前再次访问，无论多少次均记为1个访次。

用户很有可能在一个访次内触发多个同样的事件，所以访次数≤事件数是正常现象。

## 设置了转化和页面组，但数据流入不正常 <a href="#she-zhi-le-zhuan-hua-he-ye-mian-zu-dan-shu-ju-liu-ru-bu-zheng-chang" id="she-zhi-le-zhuan-hua-he-ye-mian-zu-dan-shu-ju-liu-ru-bu-zheng-chang"></a>

1. 转化和页面组在设置后才会积累数据。请确认观测的时间区间正确。
2. 用户的访问并没有结束，Ptengine默认的访次结算时间为30Min，部分数据会在访次结算后显示。
3. 如果无法确认转化数据，则可能是因为在设置了转化的页面上未安装分析代码。另外，Ptengine的转化是基于访问次数记录的。即使有用户在一次访问中进行了多次转化，也只会计算一次。
4. 如果跨越域名到达转化页面，则可能存在跨域问题。跨域时，会话会被中断，因此需要进行[跨域设置](/cn/faq/insight-setting/cross-domain-other.md)来连接跨域会话。

## 可视化事件设置了但没有数据流入 <a href="#ke-shi-hua-shi-jian-she-zhi-le-dan-mei-you-shu-ju-liu-ru" id="ke-shi-hua-shi-jian-she-zhi-le-dan-mei-you-shu-ju-liu-ru"></a>

**事件正确设置的情况下**\
时间延迟——如果事件已正确设置，则数据通常会在大约2小时内反映在管理界面上。\
观测的时间区间可能不正确。几乎所有Insight功能都是在设置后开始积累数据的。如果数据未反映，请检查所选期间。\
事件设置后，基本上5分钟后开始测量。

\
**代码没有正确部署的情况下**\
常见设置错误\
a. 想要测量的页面和测量范围不匹配。上述截图中的源=事件设置时使用的URL，元素=指定元素的选择器，测量范围=事件测量范围的页面条件。例如，想要测量以下三个URL，但是如果将测量范围指定为包含“<https://www.aaa.com/event/”的页面，则2）和3）不会包含在测量范围内。> 1)<https://www.aaa.com/event/> 2)<http://www.aaa.com/event/> 3)<https://aaa.com/event\\>
b. 指定的元素在页面上不存在或位置已更改。如果指定为事件的元素在页面上不存在或位置已更改，则之前设置的事件将无法监测。

\
💡 **解决方法——设置不正确的情况下**\
a. 测量范围不匹配。请再次确认您指定的测量范围与实际要测量的页面URL是否匹配。有关匹配规则的详细信息，请参阅以下文章：关于匹配规则。如果不匹配，请删除事件并重新设置。※目前无法对已设置的事件进行修改

b. 指定的元素在页面上不存在。在这种情况下，请重新设置。


---

# 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/others/event-conversion-faq.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.
