# 基本标签的安装方法

## 基本标签的安装方法

### **什么是基本标签**

要使用Ptengine，需要在测量目标页面上安装特定代码。此代码称为"基本标签"或简称"标签"，是包含项目ID的JavaScript代码。

通过在网站上安装此基本标签，您可以收集数值数据、利用热力图了解客户、实施弹窗、AB测试和个性化等一系列措施。

实施非常简单，让我们立即安装标签，以改善网站的用户体验和转化率！

### **标签安装方法（推荐）**

建议将标签直接安装在网站的HTML中。

如果在Shopify上使用Ptengine，请不要直接在HTML中安装，请参考Shopify的设置步骤。

具体步骤如下：

**基本设置和标签获取**

访问目标项目，点击"实施"按钮。或者，点击项目名称旁边的齿轮图标中的"基本设置和标签获取"，然后进入分析代码设置。

**复制基本标签**

复制基本标签。为防止错误，建议使用复制按钮。

**访问HTML**

访问要测量的网站或页面的HTML。

**粘贴**

找到`head`标签，将复制的标签粘贴到其中。保存更改并重新加载页面。

## 🎦操作视频

### **【相关文章】**

如果直接在HTML中安装困难，可能会发生[闪烁（闪烁现象）](/cn/start-guide/quick/tag-setup.md)，请注意。

如果在同一页面上安装多个Ptengine标签，将无法正确测量数据。每页只应安装一个标签。如果仍无法正确测量，请查看[此文章](/cn/start-guide/quick/tag-setup.md)。

请不要忘记[注册域名](/cn/start-guide/quick/tag-setup.md)。

有关其他安装方法，请参考[此文章](/cn/start-guide/quick/tag-setup.md)。


---

# 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/start-guide/quick/tag-setup.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.
