> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/tracking/mobile-app-tracking/set-up-a-mobile-app.md).

# 设置移动应用

<a href="https://pxa.impact.com/student/activity/1117597?sid=0c0e3e5c-54c9-4435-9bee-ebcdccb7f292&#x26;sid_i=0?utm_source=app.impact.com&#x26;utm_medium=owned-platform&#x26;utm_content=tra-350&#x26;utm_campaign=help-center" class="button primary">参加 PXA 课程</a>

如果你计划在移动应用中跟踪事件，则需要在 impact.com 平台中进行配置。

#### 创建移动应用跟踪器

在你可以在 impact.com 上为其添加跟踪器之前，你需要先有一个已创建并可在应用商店中安装的应用。

1. 从顶部导航栏中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户资料] → 设置**.
2. 在右侧，位于 *跟踪*，选择 **移动应用**.
3. 在右上角，选择 **添加移动应用**.
4. 在……上 *移动应用设置* 界面中，请填写以下各部分中的字段：

<details>

<summary>移动应用信息参考</summary>

* **名称：** 为你的应用添加名称。
* **代码：** 添加自定义代码作为 `事件类型 ID` ，用于应用发送转化数据时。（例如：123、456、789）。
* **平台：** 指定应用平台。
* **其他版本：** 如果你已为其他平台创建了移动应用跟踪器，可以在旁边的框中选择它们 *其他版本*.
* **Bundle ID（iOS）/ 包名（Android）：** 输入你的应用的唯一标识符（例如， `com.example.application`).
* **SHA256 指纹（Android）：** 输入应用签名证书的 SHA256 指纹（例如， `14:6D:E9:83:C5:73:06:50...` 等）。
* **团队 ID（iOS）：** 输入用于标识你应用的两部分字符串（例如 `ABC123.com.example.application`).
* **App ID（iOS）：** 输入你应用的唯一 iTunes 标识符（例如，该应用的 iTunes 标识符为 *iBooks* 应用是 `364709193`)
* **下载 URL：** 输入可直接下载该应用的网址，应用可从 App Store（iOS）或 Play Store（Android）下载。

</details>

<details>

<summary>退货处理参考</summary>

选择你希望如何处理动作撤销和修改。

* **使用“待支付”页面处理退货：** 如果你想在 [impact.com 界面](/brand/zh/what-would-you-like-to-learn-about/platform-features/actions-and-payouts/payouts/approve-reverse-and-modify-pending-payouts-for-actions.md)中处理动作修改，请选择此选项。
* **自动化退货处理（高级）：** 如果你想使用 API、FTP 或 SMTP 来自动处理动作修改，请选择此选项，并选择以下自动化方法之一：
  * **使用系统 Web 服务（API）：** 使用我们的 API 直接向 impact.com 提交转化数据。你需要账户的 API 访问凭据。
  * **上传文件到系统 FTP 服务器：** 使用我们的 FTP 服务器以 CSV 文件提交转化数据。
  * **从你自己的 FTP 服务器拉取文件：** 使用你自己的 FTP 服务器，并让 impact.com 拉取你的转化数据。我们需要以下信息：
    * **服务器 URL** — 选择正确的协议前缀并输入服务器 URL。
    * **用户名** — 输入 impact.com 可用于访问你的 FTP 服务器的用户名。
    * **密码** — 输入 impact.com 可用于访问的 FTP 账户密码。
    * **端口** — 输入连接到 FTP 服务器时要使用的端口。
    * **目录** — 输入 impact.com 可以找到该文件的目录（例如， `/impact/returns`).
  * **将文件通过电子邮件发送到系统 SMTP 服务器：** impact.com 将提供一个唯一的电子邮件地址，你可以将 CSV 附件形式的转化数据发送到该地址。

</details>

<details>

<summary>高级设置参考</summary>

如果你想添加高级设置，请选择 **显示高级设置**.

* 如果你想添加订单 ID（OID）重复，请切换 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FiZjM1xY8o3v1iR3Zaysd%2FToggle.svg?alt=media\&token=b1550d48-bba9-4e81-8604-bc12370c5caa) **\[开启切换] 指定 OID 重复窗口**，然后添加重复窗口。
* 如果你想添加客户成本，请切换 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FiZjM1xY8o3v1iR3Zaysd%2FToggle.svg?alt=media\&token=b1550d48-bba9-4e81-8604-bc12370c5caa) **\[开启切换] 添加客户成本**，然后选择你希望如何加入客户成本。
* 如果你想添加开放式锁定，请切换 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FiZjM1xY8o3v1iR3Zaysd%2FToggle.svg?alt=media\&token=b1550d48-bba9-4e81-8604-bc12370c5caa) **\[开启切换] 通过 Web 服务或批量文件上传更新状态来锁定动作**.

</details>

5. 选择 **保存并继续** 以继续配置可付费事件。
6. 该 *可付费事件* 页面是你可以配置希望为其支付佣金的应用事件的地方。

<details>

<summary>可付费事件参考</summary>

* **应用安装：** 安装会默认被跟踪并可付费。（如果你使用第三方 MMP，则需要将应用安装作为应用内事件上报，如下方选项所述。）
* **应用内事件：** 配置你将为其支付佣金的应用内事件：
  * **事件显示名称** — 输入一个描述性的事件显示名称，它将显示在你的模板条款中。
  * **事件代码** — 输入 impact.com 将从你的 MMP 接收的区分大小写的事件代码。
  * **归因规则** — 选择 *安装*，这将把归因给推动应用首次安装的合作伙伴，或者 *最后点击*，这将把归因给在转化前推动应用最后一次引荐点击的合作伙伴。

</details>

7. 选择 **保存**.

#### 管理你的移动应用跟踪器

你可以通过多种方式管理现有的移动应用跟踪器：

<details>

<summary>编辑移动应用跟踪器</summary>

1. 从顶部导航栏中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户资料] → 设置**.
2. 在右侧，位于 *跟踪*，选择 **移动应用**.
3. 在你想要编辑的跟踪器旁边，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FMLtRUwWz0pujlfmYWOgg%2FMoreVN.svg?alt=media\&token=03a3c355-a347-4207-baf7-c44fadf6d080) **\[更多] → 查看/编辑**.
4. 进行你想要做的更改。
5. 选择 **保存**.

</details>

<details>

<summary>向跟踪器添加更多可付费事件</summary>

1. 从顶部导航栏中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户资料] → 设置**.
2. 在右侧，位于 *跟踪*，选择 **移动应用**.
3. 在你想要为其添加处置代码的跟踪器旁边，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FMLtRUwWz0pujlfmYWOgg%2FMoreVN.svg?alt=media\&token=03a3c355-a347-4207-baf7-c44fadf6d080) **\[更多] → 管理事件**.
4. 在右上角，选择 **添加事件**.
5. 在……旁边 *应用内事件*，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-6282f271b7521383385339243690b303086736d9%2F3b5a585dd2895bdf1c30d1236c72ba590dddd18717863b27074c8d313d05ae20.svg?alt=media) **\[添加另一个事件]**.
   * 输入 **事件显示名称**. 这是将显示在合同和模板条款中的名称。
   * 输入 **事件代码**. 这是当被跟踪事件发生时，你的应用会传递的代码。
   * 选择 **归因规则** 从下拉菜单中。你可以按安装或最后一次点击为事件归因。
6. 选择 **保存**.

</details>

<details>

<summary>向移动跟踪器添加处置代码</summary>

1. 从顶部导航栏中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户资料] → 设置**.
2. 在右侧，位于 *跟踪*，选择 **移动应用**.
3. 在你想要为其添加处置代码的跟踪器旁边，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FMLtRUwWz0pujlfmYWOgg%2FMoreVN.svg?alt=media\&token=03a3c355-a347-4207-baf7-c44fadf6d080) **\[更多] → 处置代码**.
4. 在右上角，选择 **添加处置代码**.
5. 在……旁边 *处置代码*，选择或输入你想使用的代码。
   * 如果你想使用常用代码，请从下拉菜单中选择。
   * 如果你想创建自己的代码，请在旁边输入名称 *处置名称*.
6. 在……旁边 *状态变更*，选择你希望向推动该动作的合作伙伴显示的内容。
7. 在……旁边 *动作变更*，选择在选中此代码时将发生的动作（如有）。
8. 选择 **保存**.

</details>

<details>

<summary>删除移动跟踪器</summary>

1. 从顶部导航栏中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户资料] → 设置**.
2. 在右侧，位于 *跟踪*，选择 **移动应用**.
3. 找到你想删除的移动跟踪器，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FMLtRUwWz0pujlfmYWOgg%2FMoreVN.svg?alt=media\&token=03a3c355-a347-4207-baf7-c44fadf6d080) **\[更多] →** **删除**.
4. 阅读警告消息，然后选择 **我已理解，继续**.

</details>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/tracking/mobile-app-tracking/set-up-a-mobile-app.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
