# Google Tag Manager 中的标签设置

## Google Tag Manager 中的标签设置

### 如何在 Google Tag Manager (GTM) 中实施 Ptengine 基本标签

🔍 确认 GTM 的使用

❗️ 请确认目标网站是否使用 GTM。

🚫 如果未安装，需要提前注册和安装 GTM。

🔗 [标签管理器的配置和安装](/cn/start-guide/othertag/tag-gtm.md)请参考此页面。

## **快速设置步骤**

点击「实施」按钮（产品页面）

选择「在 Google Tag Manager 中快速设置」

选择关联到 GTM 的 Google 账户

确认 Ptengine 的访问信息并继续

选择并发布 GTM 账户和容器

通过安装状态确认测试确认完成

确认 GTM 的自动配置项目

## **手动设置步骤**

💡 手动设置的优点：可以精细指定配置位置

也请参考以下视频。

从 Ptengine 复制标签💡 可从产品页面或基本设置获取

请点击 Google Tag Manager 内的「添加新标签」。

选择「标签配置」→「自定义 HTML」

粘贴复制的标签

触发器设置🔧 所有页面或 URL 指定

为标签起一个清晰的名称并保存

指定环境为「Live」并发布

在 Ptengine 中执行安装确认测试

✅ 无论采用哪种设置方法，最后都要在 Ptengine 中执行安装确认测试，以确保正确安装。


---

# 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/othertag/tag-gtm.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.
