> 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/start-guide/othertag.md).

# 其他安装方法

没法直接改网站 HTML 的情况下，可以通过建站工具或标签管理器来部署 Ptengine 基础代码。

{% hint style="info" %}
这里说的“标签”指的是 **GTM 等标签管理器里的 tag**。Ptengine 自己那段代码本站统一叫**基础代码**。
{% endhint %}

***

## 你的网站是哪种 <a href="#pick-your-platform" id="pick-your-platform"></a>

| 用的是                       | 看这篇                                                                                                               |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| Google Tag Manager        | [Google Tag Manager 中的标签设置](https://helps.ptengine.com/cn/start-guide/othertag/tag-gtm.md) —— 支持 Ptengine 自动生成并发布 |
| WordPress                 | [在 WordPress 中安装基础代码](https://helps.ptengine.com/cn/start-guide/othertag/tag-wordpress.md) —— 改主题文件或用插件           |
| Adobe Dynamic Tag Manager | [Adobe Dynamic Tag Manager标签设置](https://helps.ptengine.com/cn/start-guide/othertag/tag-adobe-dtm.md)              |
| Shopify（推荐：装应用）           | [Ptengine for Shopify 应用安装](https://helps.ptengine.com/cn/start-guide/othertag/tag-shopify-app.md)                |
| Shopify（手动部署代码）           | [Shopify 如何部署代码](https://helps.ptengine.com/cn/start-guide/othertag/tag-shopify.md)                               |

***

## 能直接改 HTML 的话，还是首选直接改 <a href="#prefer-direct-install" id="prefer-direct-install"></a>

通过标签管理器部署虽然方便，但多一层加载会带来两个代价：

* **数据完整性略降** — 标签管理器自身加载失败或延迟时，会漏掉部分数据
* **容易出现闪烁** — 页面编辑类体验尤其明显，见 [闪烁现象及应对方法](https://helps.ptengine.com/cn/faq/experience-edit/anti-flicker.md)

能直接写进 `<head>` 的，按 [基础代码的安装方法](https://helps.ptengine.com/cn/start-guide/quick/tag-setup.md) 来。

***

## 装完之后 <a href="#after-install" id="after-install"></a>

* 确认有没有正常触发：[确认基础代码是否正常发送](https://helps.ptengine.com/cn/faq/start-guide/check-tag-firing.md)
* 装了但没数据：[基础代码正确部署但没有数据流入](https://helps.ptengine.com/cn/faq/tracking-code/no-data-after-deploy.md)
* 用标签管理器时的各种坑：[标签设置常见问题](https://helps.ptengine.com/cn/faq/tracking-code/tag-setting-faq.md)
