> 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>

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

</details>

<details>

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

选择您希望如何处理操作撤销和修改。

* **使用待付款项页面处理退单：** 如果您希望在 [impact.com 界面](https://help.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.
