> For the complete documentation index, see [llms.txt](https://developers-apps-in-toss.toss.im/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers-apps-in-toss.toss.im/guide/zh/marketing/pixel.md).

# 关联 Toss Ads Pixel

如果你正在使用 Toss Ads，可以在 App in Toss 小程序中安装 Toss Pixel 来收集转化事件。基于收集到的数据，可以优化广告效果。

{% hint style="info" %}
**Toss Pixel 仅在 Web 环境中运行**

不支持 React Native 环境。
{% endhint %}

### 在控制台中设置

要开始像素联动，需先在 Toss 广告控制台中发放转化跟踪代码。

#### 1. 登录 Toss 广告控制台

请使用收到的账号登录 Toss 广告控制台。

#### 2. 创建转化跟踪代码

请选择 广告工具 > 转化及跟踪联动 菜单。

请生成转化跟踪代码。转化跟踪代码以广告账号为单位发放。

请复制已生成的转化跟踪代码 ID。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://developers-apps-in-toss.toss.im/guide/zh/marketing/pixel.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
