> For the complete documentation index, see [llms.txt](https://helps.ptengine.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helps.ptengine.com/cn/faq/tag-and-domain.md).

# 代码/域名

域名怎么填、URL 怎么被归并、参数会不会影响统计——这类问题的答案在这里。

***

## 你遇到的是哪种情况 <a href="#pick-your-symptom" id="pick-your-symptom"></a>

| 症状                            | 看这篇                                                                                           |
| ----------------------------- | --------------------------------------------------------------------------------------------- |
| 不清楚主域名和子域名该怎么填                | [主域名与子域名的区别](https://helps.ptengine.com/cn/faq/tag-and-domain/domain-main-vs-sub.md)          |
| 某个域名装了代码却收不到数据                | [关于不支持的域名](https://helps.ptengine.com/cn/faq/tag-and-domain/excluded-domains.md)              |
| `/about` 和 `/about/` 被算成了两个页面 | [URL末尾带有“/”的页面未合并的情况](https://helps.ptengine.com/cn/faq/tag-and-domain/url-trailing-slash.md) |
| URL 里出现没见过的 `ptengine_*` 参数   | [Ptengine的参数列表](https://helps.ptengine.com/cn/faq/tag-and-domain/ptengine-parameters.md)      |

***

## 域名设置的基本原则 <a href="#domain-basics" id="domain-basics"></a>

* 填入主域名后，**其下所有子域名默认都在监测范围内**（填 `mysite.com`，`sp.mysite.com` 也会被统计）
* 想把各域名的数据**分开**看 → 每个域名建一个独立档案
* 想把各域名的数据**合并**看 → 在同一个档案里添加多个域名，并做好[跨域设置](https://helps.ptengine.com/cn/insight/setting/cross-domain.md)

***

## 相关页面 <a href="#related-pages" id="related-pages"></a>

* [档案名称和域名设置](https://helps.ptengine.com/cn/start-guide/quick/domain-setting.md)
* [添加域名](https://helps.ptengine.com/cn/insight/setting/add-domain.md)
* [URL 合并](https://helps.ptengine.com/cn/insight/setting/url-unification.md)
* [URL使用规则](https://helps.ptengine.com/cn/faq/insight-setting/url-rules.md)
